wrap cell component for recharts
This commit is contained in:
parent
6e546526b4
commit
f1ad128232
@ -70,6 +70,8 @@ _SUBMOD_ATTRS: dict = {
|
|||||||
"Label",
|
"Label",
|
||||||
"label_list",
|
"label_list",
|
||||||
"LabelList",
|
"LabelList",
|
||||||
|
"cell",
|
||||||
|
"Cell",
|
||||||
],
|
],
|
||||||
"polar": [
|
"polar": [
|
||||||
"pie",
|
"pie",
|
||||||
|
@ -242,8 +242,23 @@ class LabelList(Recharts):
|
|||||||
stroke: Var[Union[str, Color]] = LiteralVar.create("none")
|
stroke: Var[Union[str, Color]] = LiteralVar.create("none")
|
||||||
|
|
||||||
|
|
||||||
|
class Cell(Recharts):
|
||||||
|
"""A Cell component in Recharts."""
|
||||||
|
|
||||||
|
tag = "Cell"
|
||||||
|
|
||||||
|
alias = "RechartsCell"
|
||||||
|
|
||||||
|
# The presentation attribute of a rectangle in bar or a sector in pie.
|
||||||
|
fill: Var[str]
|
||||||
|
|
||||||
|
# The presentation attribute of a rectangle in bar or a sector in pie.
|
||||||
|
stroke: Var[str]
|
||||||
|
|
||||||
|
|
||||||
responsive_container = ResponsiveContainer.create
|
responsive_container = ResponsiveContainer.create
|
||||||
legend = Legend.create
|
legend = Legend.create
|
||||||
graphing_tooltip = GraphingTooltip.create
|
graphing_tooltip = GraphingTooltip.create
|
||||||
label = Label.create
|
label = Label.create
|
||||||
label_list = LabelList.create
|
label_list = LabelList.create
|
||||||
|
cell = Cell.create
|
||||||
|
Loading…
Reference in New Issue
Block a user