Skip to content

Commit

Permalink
default props comment for Brush
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosabadia committed Oct 8, 2024
1 parent af83161 commit 3f0488e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
22 changes: 11 additions & 11 deletions reflex/components/recharts/cartesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,40 +192,40 @@ class Brush(Recharts):

alias = "RechartsBrush"

# Stroke color
# Stroke color. Default: rx.color("gray", 9)
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 9))

# The fill color of brush.
# The fill color of brush. Default: rx.color("gray", 2)
fill: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 2))

# The key of data displayed in the axis.
data_key: Var[Union[str, int]]

# The x-coordinate of brush.
# The x-coordinate of brush. Default: 0
x: Var[int]

# The y-coordinate of brush.
# The y-coordinate of brush. Default: 0
y: Var[int]

# The width of brush.
# The width of brush. Default: 0
width: Var[int]

# The height of brush.
# The height of brush. Default: 40
height: Var[int]

# The data domain of brush, [min, max].
# The original data of a LineChart, a BarChart or an AreaChart.
data: Var[List[Any]]

# The width of each traveller.
# The width of each traveller. Default: 5
traveller_width: Var[int]

# The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time
# The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time. Default: 1
gap: Var[int]

# The default start index of brush. If the option is not set, the start index will be 0.
# The default start index of brush. If the option is not set, the start index will be 0. Default: 0
start_index: Var[int]

# The default end index of brush. If the option is not set, the end index will be 1.
# The default end index of brush. If the option is not set, the end index will be calculated by the length of data.
end_index: Var[int]

# The fill color of brush
Expand Down
18 changes: 9 additions & 9 deletions reflex/components/recharts/cartesian.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -653,15 +653,15 @@ class Brush(Recharts):
stroke: The stroke color of brush
fill: The fill color of brush
data_key: The key of data displayed in the axis.
x: The x-coordinate of brush.
y: The y-coordinate of brush.
width: The width of brush.
height: The height of brush.
data: The data domain of brush, [min, max].
traveller_width: The width of each traveller.
gap: The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time
start_index: The default start index of brush. If the option is not set, the start index will be 0.
end_index: The default end index of brush. If the option is not set, the end index will be 1.
x: The x-coordinate of brush. Default: 0
y: The y-coordinate of brush. Default: 0
width: The width of brush. Default: 0
height: The height of brush. Default: 40
data: The original data of a LineChart, a BarChart or an AreaChart.
traveller_width: The width of each traveller. Default: 5
gap: The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time. Default: 1
start_index: The default start index of brush. If the option is not set, the start index will be 0. Default: 0
end_index: The default end index of brush. If the option is not set, the end index will be calculated by the length of data.
style: The style of the component.
key: A unique key for the component.
id: The id for the component.
Expand Down

0 comments on commit 3f0488e

Please sign in to comment.