"""Stub file for reflex/components/recharts/recharts.py""" # ------------------- DO NOT EDIT ---------------------- # This file was generated by `reflex/utils/pyi_generator.py`! # ------------------------------------------------------ from typing import Any, Callable, Dict, Literal, Optional, Union, overload from reflex.components.component import Component, MemoizationLeaf, NoSSRComponent from reflex.event import EventHandler, EventSpec from reflex.style import Style from reflex.vars import BaseVar, Var class Recharts(Component): def render(self) -> Dict: ... @overload @classmethod def create( # type: ignore cls, *children, 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, Callable, BaseVar] ] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_context_menu: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_double_click: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_focus: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mount: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_down: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_enter: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_leave: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_move: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_out: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_over: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_up: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_scroll: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_unmount: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, **props, ) -> "Recharts": """Create the component. Args: *children: The children of the component. 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. """ ... class RechartsCharts(NoSSRComponent, MemoizationLeaf): @overload @classmethod def create( # type: ignore cls, *children, 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, Callable, BaseVar] ] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_context_menu: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_double_click: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_focus: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mount: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_down: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_enter: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_leave: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_move: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_out: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_over: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_mouse_up: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_scroll: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, on_unmount: Optional[ Union[EventHandler, EventSpec, list, Callable, BaseVar] ] = None, **props, ) -> "RechartsCharts": """Create a new memoization leaf component. Args: *children: The children of the component. 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 """ ... LiteralAnimationEasing = Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"] LiteralIfOverflow = Literal["discard", "hidden", "visible", "extendDomain"] LiteralShape = Literal[ "square", "circle", "cross", "diamond", "star", "triangle", "wye" ] LiteralLineType = Literal["joint", "fitting"] LiteralOrientation = Literal["top", "bottom", "left", "right", "middle"] LiteralOrientationLeftRightMiddle = Literal["left", "right", "middle"] LiteralOrientationTopBottom = Literal["top", "bottom"] LiteralOrientationLeftRight = Literal["left", "right"] LiteralOrientationTopBottomLeftRight = Literal["top", "bottom", "left", "right"] LiteralScale = Literal[ "auto", "linear", "pow", "sqrt", "log", "identity", "time", "band", "point", "ordinal", "quantile", "quantize", "utc", "sequential", "threshold", ] LiteralLayout = Literal["horizontal", "vertical"] LiteralPolarRadiusType = Literal["number", "category"] LiteralGridType = Literal["polygon", "circle"] LiteralPosition = Literal[ "top", "left", "right", "bottom", "inside", "outside", "insideLeft", "insideRight", "insideTop", "insideBottom", "insideTopLeft", "insideBottomLeft", "insideTopRight", "insideBottomRight", "insideStart", "insideEnd", "end", "center", ] LiteralIconType = Literal[ "line", "plainline", "square", "rect", "circle", "cross", "diamond", "star", "triangle", "wye", ] LiteralLegendType = Literal[ "line", "plainline", "square", "rect", "circle", "cross", "diamond", "star", "triangle", "wye", "none", ] LiteralLegendAlign = Literal["left", "center", "right"] LiteralVerticalAlign = Literal["top", "middle", "bottom"] LiteralStackOffset = Literal["expand", "none", "wiggle", "silhouette"] LiteralBarChartStackOffset = Literal["expand", "none", "wiggle", "silhouette", "sign"] LiteralComposedChartBaseValue = Literal["dataMin", "dataMax", "auto"] LiteralAxisType = Literal["number", "category"] LiteralAreaType = Literal[ "basis", "basisClosed", "basisOpen", "bumpX", "bumpY", "bump", "linear", "linearClosed", "natural", "monotoneX", "monotoneY", "monotone", "step", "stepBefore", "stepAfter", ] LiteralDirection = Literal["x", "y", "both"] LiteralInterval = Literal["preserveStart", "preserveEnd", "preserveStartEnd"] LiteralSyncMethod = Literal["index", "value"]