Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default props comment for YAxis #4111

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions reflex/components/recharts/cartesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ class YAxis(Axis):

alias = "RechartsYAxis"

# The orientation of axis 'left' | 'right'
# The orientation of axis 'left' | 'right'. Default: "left"
orientation: Var[LiteralOrientationLeftRight]

# The id of y-axis which is corresponding to the data.
# The id of y-axis which is corresponding to the data. Default: 0
y_axis_id: Var[Union[str, int]]

# The range of the axis. Work best in conjuction with allow_data_overflow.
domain: Var[List]
# Specify the padding of y-axis. Default: {"top": 0, "bottom": 0}
padding: Var[Dict[str, int]]


class ZAxis(Recharts):
Expand Down
8 changes: 4 additions & 4 deletions reflex/components/recharts/cartesian.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class YAxis(Axis):
Union[Literal["left", "right"], Var[Literal["left", "right"]]]
] = None,
y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
domain: Optional[Union[List, Var[List]]] = None,
padding: Optional[Union[Dict[str, int], Var[Dict[str, int]]]] = None,
data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
hide: Optional[Union[Var[bool], bool]] = None,
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
Expand Down Expand Up @@ -464,9 +464,9 @@ class YAxis(Axis):

Args:
*children: The children of the component.
orientation: The orientation of axis 'left' | 'right'
y_axis_id: The id of y-axis which is corresponding to the data.
domain: The range of the axis. Work best in conjuction with allow_data_overflow.
orientation: The orientation of axis 'left' | 'right'. Default: "left"
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
padding: Specify the padding of y-axis. Default: {"top": 0, "bottom": 0}
data_key: The key of data displayed in the axis.
hide: If set true, the axis do not display in the chart.
width: The width of axis which is usually calculated internally.
Expand Down
Loading