123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587 |
- """Stub file for reflex/components/recharts/general.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.components.component import MemoizationLeaf
- from reflex.constants import EventTriggers
- from reflex.vars import Var
- from .recharts import (
- LiteralIconType,
- LiteralLayout,
- LiteralLegendAlign,
- LiteralPosition,
- LiteralVerticalAlign,
- Recharts,
- )
- class ResponsiveContainer(Recharts, MemoizationLeaf):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- aspect: Optional[Union[Var[int], int]] = None,
- width: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- height: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
- min_width: Optional[Union[Var[int], int]] = None,
- min_height: Optional[Union[Var[int], int]] = None,
- debounce: Optional[Union[Var[int], int]] = 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
- ) -> "ResponsiveContainer":
- """Create a new memoization leaf component.
- Args:
- *children: The children of the component.
- aspect: The aspect ratio of the container. The final aspect ratio of the SVG element will be (width / height) * aspect. Number
- width: The width of chart container. Can be a number or string
- height: The height of chart container. Number
- min_width: The minimum width of chart container.
- min_height: The minimum height of chart container. Number
- debounce: If specified a positive number, debounced function will be used to handle the resize event.
- 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 memoization leaf
- """
- ...
- class Legend(Recharts):
- def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- width: Optional[Union[Var[int], int]] = None,
- height: Optional[Union[Var[int], int]] = None,
- layout: Optional[
- Union[
- Var[Literal["horizontal", "vertical"]],
- Literal["horizontal", "vertical"],
- ]
- ] = None,
- align: Optional[
- Union[
- Var[Literal["left", "center", "right"]],
- Literal["left", "center", "right"],
- ]
- ] = None,
- vertical_align: Optional[
- Union[
- Var[Literal["top", "middle", "bottom"]],
- Literal["top", "middle", "bottom"],
- ]
- ] = None,
- icon_size: Optional[Union[Var[int], int]] = None,
- icon_type: Optional[
- Union[
- Var[
- Literal[
- "line",
- "plainline",
- "square",
- "rect",
- "circle",
- "cross",
- "diamond",
- "star",
- "triangle",
- "wye",
- ]
- ],
- Literal[
- "line",
- "plainline",
- "square",
- "rect",
- "circle",
- "cross",
- "diamond",
- "star",
- "triangle",
- "wye",
- ],
- ]
- ] = None,
- chart_width: Optional[Union[Var[int], int]] = None,
- chart_height: Optional[Union[Var[int], int]] = None,
- margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = 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
- ) -> "Legend":
- """Create the component.
- Args:
- *children: The children of the component.
- width: The width of legend container. Number
- height: The height of legend container. Number
- layout: The layout of legend items. 'horizontal' | 'vertical'
- align: The alignment of legend items in 'horizontal' direction, which can be 'left', 'center', 'right'.
- vertical_align: The alignment of legend items in 'vertical' direction, which can be 'top', 'middle', 'bottom'.
- icon_size: The size of icon in each legend item.
- icon_type: The type of icon in each legend item. 'line' | 'plainline' | 'square' | 'rect' | 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye'
- chart_width: The width of chart container, usually calculated internally.
- chart_height: The height of chart container, usually calculated internally.
- margin: The margin of chart container, usually calculated internally.
- 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 GraphingTooltip(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- separator: Optional[Union[Var[str], str]] = None,
- offset: Optional[Union[Var[int], int]] = None,
- filter_null: Optional[Union[Var[bool], bool]] = None,
- cursor: Optional[Union[Var[bool], bool]] = None,
- view_box: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
- active: Optional[Union[Var[bool], bool]] = None,
- position: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
- coordinate: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = 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
- ) -> "GraphingTooltip":
- """Create the component.
- Args:
- *children: The children of the component.
- separator: The separator between name and value.
- offset: The offset size of tooltip. Number
- filter_null: When an item of the payload has value null or undefined, this item won't be displayed.
- cursor: If set false, no cursor will be drawn when tooltip is active.
- view_box: The box of viewing area, which has the shape of {x: someVal, y: someVal, width: someVal, height: someVal}, usually calculated internally.
- active: If set true, the tooltip is displayed. If set false, the tooltip is hidden, usually calculated internally.
- position: If this field is set, the tooltip position will be fixed and will not move anymore.
- coordinate: The coordinate of tooltip which is usually calculated internally.
- 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 Label(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- view_box: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
- value: Optional[Union[Var[str], str]] = None,
- offset: Optional[Union[Var[int], int]] = None,
- position: Optional[
- Union[
- Var[
- Literal[
- "top",
- "left",
- "right",
- "bottom",
- "inside",
- "outside",
- "insideLeft",
- "insideRight",
- "insideTop",
- "insideBottom",
- "insideTopLeft",
- "insideBottomLeft",
- "insideTopRight",
- "insideBottomRight",
- "insideStart",
- "insideEnd",
- "end",
- "center",
- ]
- ],
- Literal[
- "top",
- "left",
- "right",
- "bottom",
- "inside",
- "outside",
- "insideLeft",
- "insideRight",
- "insideTop",
- "insideBottom",
- "insideTopLeft",
- "insideBottomLeft",
- "insideTopRight",
- "insideBottomRight",
- "insideStart",
- "insideEnd",
- "end",
- "center",
- ],
- ]
- ] = 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
- ) -> "Label":
- """Create the component.
- Args:
- *children: The children of the component.
- view_box: The box of viewing area, which has the shape of {x: someVal, y: someVal, width: someVal, height: someVal}, usually calculated internally.
- value: The value of label, which can be specified by this props or the children of <Label />
- offset: The offset of label which can be specified by this props or the children of <Label />
- position: The position of label which can be specified by this props or the children of <Label />
- 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 LabelList(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
- position: Optional[
- Union[
- Var[
- Literal[
- "top",
- "left",
- "right",
- "bottom",
- "inside",
- "outside",
- "insideLeft",
- "insideRight",
- "insideTop",
- "insideBottom",
- "insideTopLeft",
- "insideBottomLeft",
- "insideTopRight",
- "insideBottomRight",
- "insideStart",
- "insideEnd",
- "end",
- "center",
- ]
- ],
- Literal[
- "top",
- "left",
- "right",
- "bottom",
- "inside",
- "outside",
- "insideLeft",
- "insideRight",
- "insideTop",
- "insideBottom",
- "insideTopLeft",
- "insideBottomLeft",
- "insideTopRight",
- "insideBottomRight",
- "insideStart",
- "insideEnd",
- "end",
- "center",
- ],
- ]
- ] = None,
- offset: Optional[Union[Var[int], int]] = 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_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
- ) -> "LabelList":
- """Create the component.
- Args:
- *children: The children of the component.
- data_key: The key of a group of label values in data.
- position: The position of each label relative to it view box。"Top" | "left" | "right" | "bottom" | "inside" | "outside" | "insideLeft" | "insideRight" | "insideTop" | "insideBottom" | "insideTopLeft" | "insideBottomLeft" | "insideTopRight" | "insideBottomRight" | "insideStart" | "insideEnd" | "end" | "center"
- offset: The offset to the specified "position"
- fill: Color of the fill
- stroke: Color of the stroke
- 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.
- """
- ...
|