From 14e69976de221423a8a44d34b003d723c87eb284 Mon Sep 17 00:00:00 2001 From: carlosabadia Date: Tue, 8 Oct 2024 13:52:41 +0200 Subject: [PATCH 1/2] default props comment for YAxis --- reflex/components/recharts/cartesian.py | 6 +++--- reflex/components/recharts/cartesian.pyi | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/reflex/components/recharts/cartesian.py b/reflex/components/recharts/cartesian.py index 06ca80dc5f..cddfc76236 100644 --- a/reflex/components/recharts/cartesian.py +++ b/reflex/components/recharts/cartesian.py @@ -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. 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): diff --git a/reflex/components/recharts/cartesian.pyi b/reflex/components/recharts/cartesian.pyi index e7b186f6fd..4ae7445596 100644 --- a/reflex/components/recharts/cartesian.pyi +++ b/reflex/components/recharts/cartesian.pyi @@ -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, @@ -464,9 +464,9 @@ class YAxis(Axis): Args: *children: The children of the component. - orientation: The orientation of axis 'left' | 'right' + orientation: The orientation of axis 'left' | 'right'. Default: "left" 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. + 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. From d95a902f28e5c0c6b119d4a83d3d9dedddceddc3 Mon Sep 17 00:00:00 2001 From: carlosabadia Date: Tue, 8 Oct 2024 16:25:58 +0200 Subject: [PATCH 2/2] axis id --- reflex/components/recharts/cartesian.py | 2 +- reflex/components/recharts/cartesian.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/components/recharts/cartesian.py b/reflex/components/recharts/cartesian.py index cddfc76236..fa6cfd5888 100644 --- a/reflex/components/recharts/cartesian.py +++ b/reflex/components/recharts/cartesian.py @@ -155,7 +155,7 @@ class YAxis(Axis): # 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]] # Specify the padding of y-axis. Default: {"top": 0, "bottom": 0} diff --git a/reflex/components/recharts/cartesian.pyi b/reflex/components/recharts/cartesian.pyi index 4ae7445596..297641d01f 100644 --- a/reflex/components/recharts/cartesian.pyi +++ b/reflex/components/recharts/cartesian.pyi @@ -465,7 +465,7 @@ class YAxis(Axis): Args: *children: The children of the component. orientation: The orientation of axis 'left' | 'right'. Default: "left" - y_axis_id: The id of y-axis which is corresponding to the data. + 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.