Skip to content

Commit

Permalink
Add domain prop for the PolarRadiusAxis component (reflex-dev#3349)
Browse files Browse the repository at this point in the history
  • Loading branch information
TG199 authored and benedikt-bartscher committed Jun 3, 2024
1 parent 83d4d8c commit 90e1710
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reflex/components/recharts/polar.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ class PolarRadiusAxis(Recharts):
# Valid children components
_valid_children: List[str] = ["Label"]

# The domain of the polar radius axis, specifying the minimum and maximum values.
domain: List[int] = [0, 250]

def get_event_triggers(self) -> dict[str, Union[Var, Any]]:
"""Get the event triggers that pass the component's value to the handler.
Expand Down
2 changes: 2 additions & 0 deletions reflex/components/recharts/polar.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ class PolarRadiusAxis(Recharts):
],
]
] = None,
domain: Optional[List[int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
Expand Down Expand Up @@ -533,6 +534,7 @@ class PolarRadiusAxis(Recharts):
tick: The width or height of tick.
tick_count: The count of ticks.
scale: If 'auto' set, the scale funtion is linear scale. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold'
domain: The domain of the polar radius axis, specifying the minimum and maximum values.
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 90e1710

Please sign in to comment.