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

Add domain prop for the PolarRadiusAxis component #3349

Merged
merged 3 commits into from
May 30, 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
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
Loading