default props comment for RadialBar (#4105)

* default props comment for RadialBar

* update
This commit is contained in:
Carlos 2024-10-10 22:04:49 +02:00 committed by GitHub
parent ee3182a2df
commit ec6990fb71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 54 additions and 18 deletions

View File

@ -158,31 +158,34 @@ class RadialBar(Recharts):
alias = "RechartsRadialBar" alias = "RechartsRadialBar"
# The source data which each element is an object.
data: Var[List[Dict[str, Any]]]
# The key of a group of data which should be unique to show the meaning of angle axis. # The key of a group of data which should be unique to show the meaning of angle axis.
data_key: Var[Union[str, int]] data_key: Var[Union[str, int]]
# Min angle of each bar. A positive value between 0 and 360. # Min angle of each bar. A positive value between 0 and 360. Default: 0
min_angle: Var[int] min_angle: Var[int]
# Type of legend # The type of icon in legend. If set to 'none', no legend item will be rendered. Default: "rect"
legend_type: Var[str] legend_type: Var[LiteralLegendType]
# If false set, labels will not be drawn. # If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
label: Var[Union[bool, Dict[str, Any]]] label: Var[Union[bool, Dict[str, Any]]]
# If false set, background sector will not be drawn. # If false set, background sector will not be drawn. Default: False
background: Var[Union[bool, Dict[str, Any]]] background: Var[Union[bool, Dict[str, Any]]]
# If set false, animation of radial bars will be disabled. By default true in CSR, and false in SSR # If set false, animation of radial bars will be disabled. Default: True
is_animation_active: Var[bool] is_animation_active: Var[bool]
# Specifies when the animation should begin, the unit of this option is ms. By default 0 # Specifies when the animation should begin, the unit of this option is ms. Default: 0
animation_begin: Var[int] animation_begin: Var[int]
# Specifies the duration of animation, the unit of this option is ms. By default 1500 # Specifies the duration of animation, the unit of this option is ms. Default 1500
animation_duration: Var[int] animation_duration: Var[int]
# The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. By default 'ease' # The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. Default: "ease"
animation_easing: Var[LiteralAnimationEasing] animation_easing: Var[LiteralAnimationEasing]
# Valid children components # Valid children components

View File

@ -230,9 +230,41 @@ class RadialBar(Recharts):
def create( # type: ignore def create( # type: ignore
cls, cls,
*children, *children,
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
data_key: Optional[Union[Var[Union[int, str]], int, str]] = None, data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
min_angle: Optional[Union[Var[int], int]] = None, min_angle: Optional[Union[Var[int], int]] = None,
legend_type: Optional[Union[Var[str], str]] = None, legend_type: Optional[
Union[
Literal[
"circle",
"cross",
"diamond",
"line",
"none",
"plainline",
"rect",
"square",
"star",
"triangle",
"wye",
],
Var[
Literal[
"circle",
"cross",
"diamond",
"line",
"none",
"plainline",
"rect",
"square",
"star",
"triangle",
"wye",
]
],
]
] = None,
label: Optional[ label: Optional[
Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool] Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
] = None, ] = None,
@ -282,15 +314,16 @@ class RadialBar(Recharts):
Args: Args:
*children: The children of the component. *children: The children of the component.
data: The source data which each element is an object.
data_key: The key of a group of data which should be unique to show the meaning of angle axis. data_key: The key of a group of data which should be unique to show the meaning of angle axis.
min_angle: Min angle of each bar. A positive value between 0 and 360. min_angle: Min angle of each bar. A positive value between 0 and 360. Default: 0
legend_type: Type of legend legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. Default: "rect"
label: If false set, labels will not be drawn. label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
background: If false set, background sector will not be drawn. background: If false set, background sector will not be drawn. Default: False
is_animation_active: If set false, animation of radial bars will be disabled. By default true in CSR, and false in SSR is_animation_active: If set false, animation of radial bars will be disabled. Default: True
animation_begin: Specifies when the animation should begin, the unit of this option is ms. By default 0 animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
animation_duration: Specifies the duration of animation, the unit of this option is ms. By default 1500 animation_duration: Specifies the duration of animation, the unit of this option is ms. Default 1500
animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. By default 'ease' animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. Default: "ease"
style: The style of the component. style: The style of the component.
key: A unique key for the component. key: A unique key for the component.
id: The id for the component. id: The id for the component.