123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565 |
- """Stub file for reflex/components/graphing/recharts/polar.py"""
- # ------------------- DO NOT EDIT ----------------------
- # This file was generated by `scripts/pyi_generator.py`!
- # ------------------------------------------------------
- from typing import Any, Dict, Literal, Optional, Union, overload
- from reflex.vars import Var, BaseVar, ComputedVar
- from reflex.event import EventChain, EventHandler, EventSpec
- from reflex.style import Style
- from typing import Any, Dict, List, Union
- from reflex.constants import EventTriggers
- from reflex.vars import Var
- from .recharts import (
- LiteralAnimationEasing,
- LiteralGridType,
- LiteralPolarRadiusType,
- LiteralScale,
- Recharts,
- )
- class Pie(Recharts):
- def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
- data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
- cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- inner_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- outer_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- start_angle: Optional[Union[Var[int], int]] = None,
- end_angle: Optional[Union[Var[int], int]] = None,
- min_angle: Optional[Union[Var[int], int]] = None,
- padding_angle: Optional[Union[Var[int], int]] = None,
- name_key: Optional[Union[Var[str], str]] = None,
- legend_type: Optional[Union[Var[str], str]] = None,
- label: Optional[Union[Var[bool], bool]] = None,
- label_line: Optional[Union[Var[bool], bool]] = None,
- fill: Optional[Union[Var[str], str]] = None,
- stroke: Optional[Union[Var[str], str]] = None,
- style: Optional[Style] = None,
- key: Optional[Any] = None,
- id: Optional[Any] = None,
- class_name: Optional[Any] = None,
- autofocus: Optional[bool] = None,
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
- on_click: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_enter: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_leave: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_move: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_out: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_over: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- **props
- ) -> "Pie":
- """Create the component.
- Args:
- *children: The children of the component.
- data: data
- data_key: The key of each sector's value.
- cx: The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width.
- cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height.
- inner_radius: The inner radius of pie, which can be set to a percent value.
- outer_radius: The outer radius of pie, which can be set to a percent value.
- start_angle: The angle of first sector.
- end_angle: The direction of sectors. 1 means clockwise and -1 means anticlockwise.
- min_angle: The minimum angle of each unzero data.
- padding_angle: The angle between two sectors.
- name_key: The key of each sector's name.
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered.
- label: If false set, labels will not be drawn.
- label_line: If false set, label lines will not be drawn.
- fill: fill color
- stroke: stroke color
- style: The style of the component.
- key: A unique key for the component.
- id: The id for the component.
- class_name: The class name for the component.
- autofocus: Whether the component should take the focus once the page is loaded
- custom_attrs: custom attribute
- **props: The props of the component.
- Returns:
- The component.
- Raises:
- TypeError: If an invalid child is passed.
- """
- ...
- class Radar(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
- points: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
- dot: Optional[Union[Var[bool], bool]] = None,
- stroke: Optional[Union[Var[str], str]] = None,
- fill: Optional[Union[Var[str], str]] = None,
- fill_opacity: Optional[Union[Var[float], float]] = None,
- legend_type: Optional[Union[Var[str], str]] = None,
- label: Optional[Union[Var[bool], bool]] = None,
- animation_begin: Optional[Union[Var[int], int]] = None,
- animation_duration: Optional[Union[Var[int], int]] = None,
- animation_easing: Optional[
- Union[
- Var[Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]],
- Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"],
- ]
- ] = None,
- style: Optional[Style] = None,
- key: Optional[Any] = None,
- id: Optional[Any] = None,
- class_name: Optional[Any] = None,
- autofocus: Optional[bool] = None,
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
- on_blur: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_click: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_context_menu: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_double_click: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_focus: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mount: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_down: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_enter: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_leave: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_move: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_out: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_over: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_up: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_scroll: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_unmount: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- **props
- ) -> "Radar":
- """Create the component.
- Args:
- *children: The children of the component.
- data_key: The key of a group of data which should be unique in a radar chart.
- points: The coordinates of all the vertexes of the radar shape, like [{ x, y }].
- dot: If false set, dots will not be drawn
- stroke: Stoke color
- fill: Fill color
- fill_opacity: opacity
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered.
- label: If false set, labels will not be drawn
- animation_begin: Specifies when the animation should begin, the unit of this option is ms.
- animation_duration: Specifies the duration of animation, the unit of this option is ms.
- animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'
- style: The style of the component.
- key: A unique key for the component.
- id: The id for the component.
- class_name: The class name for the component.
- autofocus: Whether the component should take the focus once the page is loaded
- custom_attrs: custom attribute
- **props: The props of the component.
- Returns:
- The component.
- Raises:
- TypeError: If an invalid child is passed.
- """
- ...
- class RadialBar(Recharts):
- def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
- min_angle: Optional[Union[Var[int], int]] = None,
- legend_type: Optional[Union[Var[str], str]] = None,
- label: Optional[Union[Var[bool], bool]] = None,
- background: Optional[Union[Var[bool], bool]] = None,
- style: Optional[Style] = None,
- key: Optional[Any] = None,
- id: Optional[Any] = None,
- class_name: Optional[Any] = None,
- autofocus: Optional[bool] = None,
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
- on_click: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_enter: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_leave: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_move: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_out: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_over: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- **props
- ) -> "RadialBar":
- """Create the component.
- Args:
- *children: The children of the component.
- data: The source data which each element is an object.
- min_angle: Min angle of each bar. A positive value between 0 and 360.
- legend_type: Type of legend
- label: If false set, labels will not be drawn.
- background: If false set, background sector will not be drawn.
- style: The style of the component.
- key: A unique key for the component.
- id: The id for the component.
- class_name: The class name for the component.
- autofocus: Whether the component should take the focus once the page is loaded
- custom_attrs: custom attribute
- **props: The props of the component.
- Returns:
- The component.
- Raises:
- TypeError: If an invalid child is passed.
- """
- ...
- class PolarAngleAxis(Recharts):
- def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
- cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- axis_line: Optional[
- Union[Var[Union[bool, Dict[str, Any]]], Union[bool, Dict[str, Any]]]
- ] = None,
- axis_line_type: Optional[Union[Var[str], str]] = None,
- tick_line: Optional[
- Union[Var[Union[bool, Dict[str, Any]]], Union[bool, Dict[str, Any]]]
- ] = None,
- tick: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- ticks: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
- orient: Optional[Union[Var[str], str]] = None,
- allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
- style: Optional[Style] = None,
- key: Optional[Any] = None,
- id: Optional[Any] = None,
- class_name: Optional[Any] = None,
- autofocus: Optional[bool] = None,
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
- on_click: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_enter: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_leave: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_move: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_out: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_over: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- **props
- ) -> "PolarAngleAxis":
- """Create the component.
- Args:
- *children: The children of the component.
- data_key: The key of a group of data which should be unique to show the meaning of angle axis.
- cx: The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width.
- cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height.
- radius: The outer radius of circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy.
- axis_line: If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option.
- axis_line_type: The type of axis line.
- tick_line: If false set, tick lines will not be drawn. If true set, tick lines will be drawn which have the props calculated internally. If object set, tick lines will be drawn which have the props mergered by the internal calculated props and the option.
- tick: The width or height of tick.
- ticks: The array of every tick's value and angle.
- orient: The orientation of axis text.
- allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category".
- style: The style of the component.
- key: A unique key for the component.
- id: The id for the component.
- class_name: The class name for the component.
- autofocus: Whether the component should take the focus once the page is loaded
- custom_attrs: custom attribute
- **props: The props of the component.
- Returns:
- The component.
- Raises:
- TypeError: If an invalid child is passed.
- """
- ...
- class PolarGrid(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- inner_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- outer_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- polar_angles: Optional[Union[Var[List[int]], List[int]]] = None,
- polar_radius: Optional[Union[Var[List[int]], List[int]]] = None,
- grid_type: Optional[
- Union[Var[Literal["polygon", "circle"]], Literal["polygon", "circle"]]
- ] = None,
- style: Optional[Style] = None,
- key: Optional[Any] = None,
- id: Optional[Any] = None,
- class_name: Optional[Any] = None,
- autofocus: Optional[bool] = None,
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
- on_blur: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_click: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_context_menu: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_double_click: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_focus: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mount: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_down: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_enter: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_leave: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_move: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_out: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_over: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_up: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_scroll: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_unmount: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- **props
- ) -> "PolarGrid":
- """Create the component.
- Args:
- *children: The children of the component.
- cx: The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width.
- cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height.
- inner_radius: The radius of the inner polar grid.
- outer_radius: The radius of the outer polar grid.
- polar_angles: The array of every line grid's angle.
- polar_radius: The array of every line grid's radius.
- grid_type: The type of polar grids. 'polygon' | 'circle'
- style: The style of the component.
- key: A unique key for the component.
- id: The id for the component.
- class_name: The class name for the component.
- autofocus: Whether the component should take the focus once the page is loaded
- custom_attrs: custom attribute
- **props: The props of the component.
- Returns:
- The component.
- Raises:
- TypeError: If an invalid child is passed.
- """
- ...
- class PolarRadiusAxis(Recharts):
- def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- angle: Optional[Union[Var[int], int]] = None,
- type_: Optional[
- Union[Var[Literal["number", "category"]], Literal["number", "category"]]
- ] = None,
- allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
- cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- reversed: Optional[Union[Var[bool], bool]] = None,
- orientation: Optional[Union[Var[str], str]] = None,
- axis_line: Optional[
- Union[Var[Union[bool, Dict[str, Any]]], Union[bool, Dict[str, Any]]]
- ] = None,
- tick: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- tick_count: Optional[Union[Var[int], int]] = None,
- scale: Optional[
- Union[
- Var[
- Literal[
- "auto",
- "linear",
- "pow",
- "sqrt",
- "log",
- "identity",
- "time",
- "band",
- "point",
- "ordinal",
- "quantile",
- "quantize",
- "utc",
- "sequential",
- "threshold",
- ]
- ],
- Literal[
- "auto",
- "linear",
- "pow",
- "sqrt",
- "log",
- "identity",
- "time",
- "band",
- "point",
- "ordinal",
- "quantile",
- "quantize",
- "utc",
- "sequential",
- "threshold",
- ],
- ]
- ] = None,
- style: Optional[Style] = None,
- key: Optional[Any] = None,
- id: Optional[Any] = None,
- class_name: Optional[Any] = None,
- autofocus: Optional[bool] = None,
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
- on_click: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_enter: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_leave: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_move: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_out: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- on_mouse_over: Optional[
- Union[EventHandler, EventSpec, list, function, BaseVar]
- ] = None,
- **props
- ) -> "PolarRadiusAxis":
- """Create the component.
- Args:
- *children: The children of the component.
- angle: The angle of radial direction line to display axis text.
- type_: The type of axis line. 'number' | 'category'
- allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category".
- cx: The x-coordinate of center.
- cy: The y-coordinate of center.
- reversed: If set to true, the ticks of this axis are reversed.
- orientation: The orientation of axis text.
- axis_line: If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option.
- 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'
- style: The style of the component.
- key: A unique key for the component.
- id: The id for the component.
- class_name: The class name for the component.
- autofocus: Whether the component should take the focus once the page is loaded
- custom_attrs: custom attribute
- **props: The props of the component.
- Returns:
- The component.
- Raises:
- TypeError: If an invalid child is passed.
- """
- ...
|