Skip to content

Commit

Permalink
default props comment for XAxis (#4110)
Browse files Browse the repository at this point in the history
* default props comment for XAxis

* axis id
  • Loading branch information
carlosabadia authored and simon committed Oct 23, 2024
1 parent 8a63b5d commit 254734b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
16 changes: 8 additions & 8 deletions reflex/components/recharts/cartesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,20 @@ class XAxis(Axis):

alias = "RechartsXAxis"

# The orientation of axis 'top' | 'bottom'
# The orientation of axis 'top' | 'bottom'. Default: "bottom"
orientation: Var[LiteralOrientationTopBottom]

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

# Ensures that all datapoints within a chart contribute to its domain calculation, even when they are hidden
include_hidden: Var[bool] = LiteralVar.create(False)
# Ensures that all datapoints within a chart contribute to its domain calculation, even when they are hidden. Default: False
include_hidden: Var[bool]

# The range of the axis. Work best in conjuction with allow_data_overflow.
domain: Var[List]
# The angle of axis ticks. Default: 0
angle: Var[int]

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


class YAxis(Axis):
Expand Down
12 changes: 7 additions & 5 deletions reflex/components/recharts/cartesian.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ class XAxis(Axis):
] = None,
x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
include_hidden: Optional[Union[Var[bool], bool]] = None,
domain: Optional[Union[List, Var[List]]] = None,
angle: Optional[Union[Var[int], int]] = 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 @@ -298,10 +299,11 @@ class XAxis(Axis):
Args:
*children: The children of the component.
orientation: The orientation of axis 'top' | 'bottom'
x_axis_id: The id of x-axis which is corresponding to the data.
include_hidden: Ensures that all datapoints within a chart contribute to its domain calculation, even when they are hidden
domain: The range of the axis. Work best in conjuction with allow_data_overflow.
orientation: The orientation of axis 'top' | 'bottom'. Default: "bottom"
x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
include_hidden: Ensures that all datapoints within a chart contribute to its domain calculation, even when they are hidden. Default: False
angle: The angle of axis ticks. Default: 0
padding: Specify the padding of x-axis. Default: {"left": 0, "right": 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

0 comments on commit 254734b

Please sign in to comment.