Skip to content

Commit 9c7136b

Browse files
LendemorAlek Petuskey
authored and
Alek Petuskey
committed
Make domain props work for y_axis (#3652)
1 parent eaa26d4 commit 9c7136b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

reflex/components/recharts/cartesian.py

+3
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ class YAxis(Axis):
152152
# The id of y-axis which is corresponding to the data.
153153
y_axis_id: Var[Union[str, int]]
154154

155+
# The range of the axis. Work best in conjuction with allow_data_overflow.
156+
domain: Var[List]
157+
155158

156159
class ZAxis(Recharts):
157160
"""A ZAxis component in Recharts."""

reflex/components/recharts/cartesian.pyi

+2
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ class YAxis(Axis):
366366
Union[Var[Literal["left", "right"]], Literal["left", "right"]]
367367
] = None,
368368
y_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
369+
domain: Optional[Union[Var[List], List]] = None,
369370
data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
370371
hide: Optional[Union[Var[bool], bool]] = None,
371372
width: Optional[Union[Var[Union[int, str]], str, int]] = None,
@@ -493,6 +494,7 @@ class YAxis(Axis):
493494
*children: The children of the component.
494495
orientation: The orientation of axis 'left' | 'right'
495496
y_axis_id: The id of y-axis which is corresponding to the data.
497+
domain: The range of the axis. Work best in conjuction with allow_data_overflow.
496498
data_key: The key of data displayed in the axis.
497499
hide: If set true, the axis do not display in the chart.
498500
width: The width of axis which is usually calculated internally.

0 commit comments

Comments
 (0)