From d99c40a7634e012c41d6e4460f5e54898cbed1e2 Mon Sep 17 00:00:00 2001 From: Kelechi Ebiri <56020538+TG199@users.noreply.github.com> Date: Thu, 30 May 2024 17:14:50 +0100 Subject: [PATCH] Add domain prop for the PolarRadiusAxis component (#3349) --- reflex/components/recharts/polar.py | 3 +++ reflex/components/recharts/polar.pyi | 2 ++ 2 files changed, 5 insertions(+) diff --git a/reflex/components/recharts/polar.py b/reflex/components/recharts/polar.py index 25669574038..ade6f72c80a 100644 --- a/reflex/components/recharts/polar.py +++ b/reflex/components/recharts/polar.py @@ -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. diff --git a/reflex/components/recharts/polar.pyi b/reflex/components/recharts/polar.pyi index e2186eca0d7..a5fe60d9924 100644 --- a/reflex/components/recharts/polar.pyi +++ b/reflex/components/recharts/polar.pyi @@ -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, @@ -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.