Add domain prop for the PolarRadiusAxis component (#3349)

This commit is contained in:
Kelechi Ebiri 2024-05-30 17:14:50 +01:00 committed by GitHub
parent 7f054fda9d
commit d99c40a763
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -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.