Skip to content

Commit b88ffca

Browse files
authored
Add Defs to recharts components (#6322)
1 parent 96c4487 commit b88ffca

File tree

1 file changed

+13
-1
lines changed
  • packages/reflex-components-recharts/src/reflex_components_recharts

1 file changed

+13
-1
lines changed

packages/reflex-components-recharts/src/reflex_components_recharts/charts.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ class BarChart(CategoricalChartBase):
206206
"Legend",
207207
"GraphingTooltip",
208208
"Bar",
209+
"Defs",
209210
]
210211

211212

@@ -228,6 +229,7 @@ class LineChart(CategoricalChartBase):
228229
"Legend",
229230
"GraphingTooltip",
230231
"Line",
232+
"Defs",
231233
]
232234

233235

@@ -272,6 +274,7 @@ class ComposedChart(CategoricalChartBase):
272274
"Area",
273275
"Line",
274276
"Bar",
277+
"Defs",
275278
]
276279

277280

@@ -294,6 +297,7 @@ class PieChart(ChartBase):
294297
"Legend",
295298
"GraphingTooltip",
296299
"Pie",
300+
"Defs",
297301
]
298302

299303
on_mouse_down: EventHandler[no_args_event_spec] = field(
@@ -360,6 +364,7 @@ class RadarChart(ChartBase):
360364
"Legend",
361365
"GraphingTooltip",
362366
"Radar",
367+
"Defs",
363368
]
364369

365370
@classmethod
@@ -435,6 +440,7 @@ class RadialBarChart(ChartBase):
435440
"Legend",
436441
"GraphingTooltip",
437442
"RadialBar",
443+
"Defs",
438444
]
439445

440446

@@ -462,6 +468,7 @@ class ScatterChart(ChartBase):
462468
"Legend",
463469
"GraphingTooltip",
464470
"Scatter",
471+
"Defs",
465472
]
466473

467474
@classmethod
@@ -501,7 +508,12 @@ class FunnelChart(ChartBase):
501508
)
502509

503510
# Valid children components
504-
_valid_children: ClassVar[list[str]] = ["Legend", "GraphingTooltip", "Funnel"]
511+
_valid_children: ClassVar[list[str]] = [
512+
"Legend",
513+
"GraphingTooltip",
514+
"Funnel",
515+
"Defs",
516+
]
505517

506518

507519
class Treemap(RechartsCharts):

0 commit comments

Comments
 (0)