cell component wrapper

This commit is contained in:
pourhakimi 2025-01-21 22:52:40 +02:00
parent 4dc106545b
commit 4d06edd8ce
2 changed files with 16 additions and 0 deletions

View File

@ -70,6 +70,8 @@ _SUBMOD_ATTRS: dict = {
"Label",
"label_list",
"LabelList",
"cell",
"Cell"
],
"polar": [
"pie",

View File

@ -241,9 +241,23 @@ class LabelList(Recharts):
# The stroke color of each label. Default: "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
legend = Legend.create
graphing_tooltip = GraphingTooltip.create
label = Label.create
label_list = LabelList.create
cell = Cell.create