12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162 |
- """Stub file for reflex/components/recharts/cartesian.py"""
- # ------------------- DO NOT EDIT ----------------------
- # This file was generated by `reflex/utils/pyi_generator.py`!
- # ------------------------------------------------------
- from typing import Any, Dict, List, Literal, Optional, Union, overload
- from reflex.constants.colors import Color
- from reflex.event import BASE_STATE, EventType
- from reflex.style import Style
- from reflex.vars.base import Var
- from .recharts import Recharts
- class Axis(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
- hide: Optional[Union[Var[bool], bool]] = None,
- width: Optional[Union[Var[Union[int, str]], int, str]] = None,
- height: Optional[Union[Var[Union[int, str]], int, str]] = None,
- type_: Optional[
- Union[Literal["category", "number"], Var[Literal["category", "number"]]]
- ] = None,
- interval: Optional[
- Union[
- Literal[
- "equidistantPreserveStart",
- "preserveEnd",
- "preserveStart",
- "preserveStartEnd",
- ],
- Var[
- Union[
- Literal[
- "equidistantPreserveStart",
- "preserveEnd",
- "preserveStart",
- "preserveStartEnd",
- ],
- int,
- ]
- ],
- int,
- ]
- ] = None,
- allow_decimals: Optional[Union[Var[bool], bool]] = None,
- allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
- allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
- domain: Optional[Union[List, Var[List]]] = None,
- axis_line: Optional[Union[Var[bool], bool]] = None,
- mirror: Optional[Union[Var[bool], bool]] = None,
- reversed: Optional[Union[Var[bool], bool]] = None,
- label: Optional[
- Union[Dict[str, Any], Var[Union[Dict[str, Any], int, str]], int, str]
- ] = None,
- scale: Optional[
- Union[
- Literal[
- "auto",
- "band",
- "identity",
- "linear",
- "log",
- "ordinal",
- "point",
- "pow",
- "quantile",
- "quantize",
- "sequential",
- "sqrt",
- "threshold",
- "time",
- "utc",
- ],
- Var[
- Literal[
- "auto",
- "band",
- "identity",
- "linear",
- "log",
- "ordinal",
- "point",
- "pow",
- "quantile",
- "quantize",
- "sequential",
- "sqrt",
- "threshold",
- "time",
- "utc",
- ]
- ],
- ]
- ] = None,
- unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
- name: Optional[Union[Var[Union[int, str]], int, str]] = None,
- ticks: Optional[
- Union[List[Union[int, str]], Var[List[Union[int, str]]]]
- ] = None,
- tick: Optional[Union[Var[bool], bool]] = None,
- tick_count: Optional[Union[Var[int], int]] = None,
- tick_line: Optional[Union[Var[bool], bool]] = None,
- tick_size: Optional[Union[Var[int], int]] = None,
- min_tick_gap: Optional[Union[Var[int], int]] = None,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- text_anchor: Optional[
- Union[
- Literal["end", "middle", "start"],
- Var[Literal["end", "middle", "start"]],
- ]
- ] = 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "Axis":
- """Create the component.
- Args:
- *children: The children of the component.
- data_key: The key of data displayed in the axis.
- hide: If set true, the axis do not display in the chart. Default: False
- width: The width of axis which is usually calculated internally.
- height: The height of axis, which can be set by user.
- type_: The type of axis 'number' | 'category'
- interval: If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically. Default: "preserveEnd"
- allow_decimals: Allow the ticks of Axis to be decimals or not. Default: True
- allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain. Default: False
- allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category". Default: True
- domain: The range of the axis. Work best in conjunction with allow_data_overflow. Default: [0, "auto"]
- axis_line: If set false, no axis line will be drawn. Default: True
- mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. Default: False
- reversed: Reverse the ticks or not. Default: False
- label: The label of axis, which appears next to the axis.
- scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold'. Default: "auto"
- unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
- name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
- ticks: Set the values of axis ticks manually.
- tick: If set false, no ticks will be drawn.
- tick_count: The count of axis ticks. Not used if 'type' is 'category'. Default: 5
- tick_line: If set false, no axis tick lines will be drawn. Default: True
- tick_size: The length of tick line. Default: 6
- min_tick_gap: The minimum gap between two adjacent labels. Default: 5
- stroke: The stroke color of axis. Default: rx.color("gray", 9)
- text_anchor: The text anchor of axis. Default: "middle"
- on_click: The customized event handler of click on the ticks of this axis
- on_mouse_down: The customized event handler of mousedown on the ticks of this axis
- on_mouse_up: The customized event handler of mouseup on the ticks of this axis
- on_mouse_move: The customized event handler of mousemove on the ticks of this axis
- on_mouse_out: The customized event handler of mouseout on the ticks of this axis
- on_mouse_enter: The customized event handler of mouseenter on the ticks of this axis
- on_mouse_leave: The customized event handler of mouseleave on the ticks of this axis
- 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 XAxis(Axis):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- orientation: Optional[
- Union[Literal["bottom", "top"], Var[Literal["bottom", "top"]]]
- ] = None,
- x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- include_hidden: Optional[Union[Var[bool], bool]] = None,
- angle: Optional[Union[Var[int], int]] = None,
- padding: Optional[Union[Dict[str, int], Var[Dict[str, int]]]] = None,
- data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
- hide: Optional[Union[Var[bool], bool]] = None,
- width: Optional[Union[Var[Union[int, str]], int, str]] = None,
- height: Optional[Union[Var[Union[int, str]], int, str]] = None,
- type_: Optional[
- Union[Literal["category", "number"], Var[Literal["category", "number"]]]
- ] = None,
- interval: Optional[
- Union[
- Literal[
- "equidistantPreserveStart",
- "preserveEnd",
- "preserveStart",
- "preserveStartEnd",
- ],
- Var[
- Union[
- Literal[
- "equidistantPreserveStart",
- "preserveEnd",
- "preserveStart",
- "preserveStartEnd",
- ],
- int,
- ]
- ],
- int,
- ]
- ] = None,
- allow_decimals: Optional[Union[Var[bool], bool]] = None,
- allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
- allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
- domain: Optional[Union[List, Var[List]]] = None,
- axis_line: Optional[Union[Var[bool], bool]] = None,
- mirror: Optional[Union[Var[bool], bool]] = None,
- reversed: Optional[Union[Var[bool], bool]] = None,
- label: Optional[
- Union[Dict[str, Any], Var[Union[Dict[str, Any], int, str]], int, str]
- ] = None,
- scale: Optional[
- Union[
- Literal[
- "auto",
- "band",
- "identity",
- "linear",
- "log",
- "ordinal",
- "point",
- "pow",
- "quantile",
- "quantize",
- "sequential",
- "sqrt",
- "threshold",
- "time",
- "utc",
- ],
- Var[
- Literal[
- "auto",
- "band",
- "identity",
- "linear",
- "log",
- "ordinal",
- "point",
- "pow",
- "quantile",
- "quantize",
- "sequential",
- "sqrt",
- "threshold",
- "time",
- "utc",
- ]
- ],
- ]
- ] = None,
- unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
- name: Optional[Union[Var[Union[int, str]], int, str]] = None,
- ticks: Optional[
- Union[List[Union[int, str]], Var[List[Union[int, str]]]]
- ] = None,
- tick: Optional[Union[Var[bool], bool]] = None,
- tick_count: Optional[Union[Var[int], int]] = None,
- tick_line: Optional[Union[Var[bool], bool]] = None,
- tick_size: Optional[Union[Var[int], int]] = None,
- min_tick_gap: Optional[Union[Var[int], int]] = None,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- text_anchor: Optional[
- Union[
- Literal["end", "middle", "start"],
- Var[Literal["end", "middle", "start"]],
- ]
- ] = 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "XAxis":
- """Create the component.
- Args:
- *children: The children of the component.
- orientation: The orientation of axis 'top' | 'bottom'. Default: "bottom"
- x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
- include_hidden: Ensures that all datapoints within a chart contribute to its domain calculation, even when they are hidden. Default: False
- angle: The angle of axis ticks. Default: 0
- padding: Specify the padding of x-axis. Default: {"left": 0, "right": 0}
- data_key: The key of data displayed in the axis.
- hide: If set true, the axis do not display in the chart. Default: False
- width: The width of axis which is usually calculated internally.
- height: The height of axis, which can be set by user.
- type_: The type of axis 'number' | 'category'
- interval: If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically. Default: "preserveEnd"
- allow_decimals: Allow the ticks of Axis to be decimals or not. Default: True
- allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain. Default: False
- allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category". Default: True
- domain: The range of the axis. Work best in conjunction with allow_data_overflow. Default: [0, "auto"]
- axis_line: If set false, no axis line will be drawn. Default: True
- mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. Default: False
- reversed: Reverse the ticks or not. Default: False
- label: The label of axis, which appears next to the axis.
- scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold'. Default: "auto"
- unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
- name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
- ticks: Set the values of axis ticks manually.
- tick: If set false, no ticks will be drawn.
- tick_count: The count of axis ticks. Not used if 'type' is 'category'. Default: 5
- tick_line: If set false, no axis tick lines will be drawn. Default: True
- tick_size: The length of tick line. Default: 6
- min_tick_gap: The minimum gap between two adjacent labels. Default: 5
- stroke: The stroke color of axis. Default: rx.color("gray", 9)
- text_anchor: The text anchor of axis. Default: "middle"
- on_click: The customized event handler of click on the ticks of this axis
- on_mouse_down: The customized event handler of mousedown on the ticks of this axis
- on_mouse_up: The customized event handler of mouseup on the ticks of this axis
- on_mouse_move: The customized event handler of mousemove on the ticks of this axis
- on_mouse_out: The customized event handler of mouseout on the ticks of this axis
- on_mouse_enter: The customized event handler of mouseenter on the ticks of this axis
- on_mouse_leave: The customized event handler of mouseleave on the ticks of this axis
- 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 YAxis(Axis):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- orientation: Optional[
- Union[Literal["left", "right"], Var[Literal["left", "right"]]]
- ] = None,
- y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- padding: Optional[Union[Dict[str, int], Var[Dict[str, int]]]] = None,
- data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
- hide: Optional[Union[Var[bool], bool]] = None,
- width: Optional[Union[Var[Union[int, str]], int, str]] = None,
- height: Optional[Union[Var[Union[int, str]], int, str]] = None,
- type_: Optional[
- Union[Literal["category", "number"], Var[Literal["category", "number"]]]
- ] = None,
- interval: Optional[
- Union[
- Literal[
- "equidistantPreserveStart",
- "preserveEnd",
- "preserveStart",
- "preserveStartEnd",
- ],
- Var[
- Union[
- Literal[
- "equidistantPreserveStart",
- "preserveEnd",
- "preserveStart",
- "preserveStartEnd",
- ],
- int,
- ]
- ],
- int,
- ]
- ] = None,
- allow_decimals: Optional[Union[Var[bool], bool]] = None,
- allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
- allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
- domain: Optional[Union[List, Var[List]]] = None,
- axis_line: Optional[Union[Var[bool], bool]] = None,
- mirror: Optional[Union[Var[bool], bool]] = None,
- reversed: Optional[Union[Var[bool], bool]] = None,
- label: Optional[
- Union[Dict[str, Any], Var[Union[Dict[str, Any], int, str]], int, str]
- ] = None,
- scale: Optional[
- Union[
- Literal[
- "auto",
- "band",
- "identity",
- "linear",
- "log",
- "ordinal",
- "point",
- "pow",
- "quantile",
- "quantize",
- "sequential",
- "sqrt",
- "threshold",
- "time",
- "utc",
- ],
- Var[
- Literal[
- "auto",
- "band",
- "identity",
- "linear",
- "log",
- "ordinal",
- "point",
- "pow",
- "quantile",
- "quantize",
- "sequential",
- "sqrt",
- "threshold",
- "time",
- "utc",
- ]
- ],
- ]
- ] = None,
- unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
- name: Optional[Union[Var[Union[int, str]], int, str]] = None,
- ticks: Optional[
- Union[List[Union[int, str]], Var[List[Union[int, str]]]]
- ] = None,
- tick: Optional[Union[Var[bool], bool]] = None,
- tick_count: Optional[Union[Var[int], int]] = None,
- tick_line: Optional[Union[Var[bool], bool]] = None,
- tick_size: Optional[Union[Var[int], int]] = None,
- min_tick_gap: Optional[Union[Var[int], int]] = None,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- text_anchor: Optional[
- Union[
- Literal["end", "middle", "start"],
- Var[Literal["end", "middle", "start"]],
- ]
- ] = 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "YAxis":
- """Create the component.
- Args:
- *children: The children of the component.
- orientation: The orientation of axis 'left' | 'right'. Default: "left"
- y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
- padding: Specify the padding of y-axis. Default: {"top": 0, "bottom": 0}
- data_key: The key of data displayed in the axis.
- hide: If set true, the axis do not display in the chart. Default: False
- width: The width of axis which is usually calculated internally.
- height: The height of axis, which can be set by user.
- type_: The type of axis 'number' | 'category'
- interval: If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically. Default: "preserveEnd"
- allow_decimals: Allow the ticks of Axis to be decimals or not. Default: True
- allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain. Default: False
- allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category". Default: True
- domain: The range of the axis. Work best in conjunction with allow_data_overflow. Default: [0, "auto"]
- axis_line: If set false, no axis line will be drawn. Default: True
- mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. Default: False
- reversed: Reverse the ticks or not. Default: False
- label: The label of axis, which appears next to the axis.
- scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold'. Default: "auto"
- unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
- name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
- ticks: Set the values of axis ticks manually.
- tick: If set false, no ticks will be drawn.
- tick_count: The count of axis ticks. Not used if 'type' is 'category'. Default: 5
- tick_line: If set false, no axis tick lines will be drawn. Default: True
- tick_size: The length of tick line. Default: 6
- min_tick_gap: The minimum gap between two adjacent labels. Default: 5
- stroke: The stroke color of axis. Default: rx.color("gray", 9)
- text_anchor: The text anchor of axis. Default: "middle"
- on_click: The customized event handler of click on the ticks of this axis
- on_mouse_down: The customized event handler of mousedown on the ticks of this axis
- on_mouse_up: The customized event handler of mouseup on the ticks of this axis
- on_mouse_move: The customized event handler of mousemove on the ticks of this axis
- on_mouse_out: The customized event handler of mouseout on the ticks of this axis
- on_mouse_enter: The customized event handler of mouseenter on the ticks of this axis
- on_mouse_leave: The customized event handler of mouseleave on the ticks of this axis
- 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 ZAxis(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
- z_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- range: Optional[Union[List[int], Var[List[int]]]] = None,
- unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
- name: Optional[Union[Var[Union[int, str]], int, str]] = None,
- scale: Optional[
- Union[
- Literal[
- "auto",
- "band",
- "identity",
- "linear",
- "log",
- "ordinal",
- "point",
- "pow",
- "quantile",
- "quantize",
- "sequential",
- "sqrt",
- "threshold",
- "time",
- "utc",
- ],
- Var[
- Literal[
- "auto",
- "band",
- "identity",
- "linear",
- "log",
- "ordinal",
- "point",
- "pow",
- "quantile",
- "quantize",
- "sequential",
- "sqrt",
- "threshold",
- "time",
- "utc",
- ]
- ],
- ]
- ] = 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "ZAxis":
- """Create the component.
- Args:
- *children: The children of the component.
- data_key: The key of data displayed in the axis.
- z_axis_id: The unique id of z-axis. Default: 0
- range: The range of axis. Default: [10, 10]
- unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
- name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
- scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. Default: "auto"
- 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 Brush(Recharts):
- def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
- x: Optional[Union[Var[int], int]] = None,
- y: Optional[Union[Var[int], int]] = None,
- width: Optional[Union[Var[int], int]] = None,
- height: Optional[Union[Var[int], int]] = None,
- data: Optional[Union[List[Any], Var[List[Any]]]] = None,
- traveller_width: Optional[Union[Var[int], int]] = None,
- gap: Optional[Union[Var[int], int]] = None,
- start_index: Optional[Union[Var[int], int]] = None,
- end_index: 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, Any]]] = None,
- on_change: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "Brush":
- """Create the component.
- Args:
- *children: The children of the component.
- stroke: The stroke color of brush
- fill: The fill color of brush
- data_key: The key of data displayed in the axis.
- x: The x-coordinate of brush. Default: 0
- y: The y-coordinate of brush. Default: 0
- width: The width of brush. Default: 0
- height: The height of brush. Default: 40
- data: The original data of a LineChart, a BarChart or an AreaChart.
- traveller_width: The width of each traveller. Default: 5
- gap: The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time. Default: 1
- start_index: The default start index of brush. If the option is not set, the start index will be 0. Default: 0
- end_index: The default end index of brush. If the option is not set, the end index will be calculated by the length of data.
- 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 Cartesian(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- layout: Optional[
- Union[
- Literal["horizontal", "vertical"],
- Var[Literal["horizontal", "vertical"]],
- ]
- ] = None,
- data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
- x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y_axis_id: Optional[Union[Var[Union[int, str]], int, 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,
- is_animation_active: 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[
- Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
- Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
- ]
- ] = None,
- unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
- name: Optional[Union[Var[Union[int, str]], int, 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, Any]]] = None,
- on_animation_end: Optional[EventType[[], BASE_STATE]] = None,
- on_animation_start: Optional[EventType[[], BASE_STATE]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "Cartesian":
- """Create the component.
- Args:
- *children: The children of the component.
- layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
- data_key: The key of a group of data which should be unique in an area chart.
- x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
- y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
- is_animation_active: If set false, animation of bar will be disabled. Default: True
- 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. Default: 1500
- animation_easing: The type of easing function. Default: "ease"
- unit: The unit of data. This option will be used in tooltip.
- name: The name of data. This option will be used in tooltip and legend to represent the component. If no value was set to this option, the value of dataKey will be used alternatively.
- on_animation_start: The customized event handler of animation start
- on_animation_end: The customized event handler of animation end
- on_click: The customized event handler of click on the component in this group
- on_mouse_down: The customized event handler of mousedown on the component in this group
- on_mouse_up: The customized event handler of mouseup on the component in this group
- on_mouse_move: The customized event handler of mousemove on the component in this group
- on_mouse_over: The customized event handler of mouseover on the component in this group
- on_mouse_out: The customized event handler of mouseout on the component in this group
- on_mouse_enter: The customized event handler of mouseenter on the component in this group
- on_mouse_leave: The customized event handler of mouseleave on the component in this group
- 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 Area(Cartesian):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- stroke_width: Optional[Union[Var[int], int]] = None,
- fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- type_: Optional[
- Union[
- Literal[
- "basis",
- "basisClosed",
- "basisOpen",
- "bump",
- "bumpX",
- "bumpY",
- "linear",
- "linearClosed",
- "monotone",
- "monotoneX",
- "monotoneY",
- "natural",
- "step",
- "stepAfter",
- "stepBefore",
- ],
- Var[
- Literal[
- "basis",
- "basisClosed",
- "basisOpen",
- "bump",
- "bumpX",
- "bumpY",
- "linear",
- "linearClosed",
- "monotone",
- "monotoneX",
- "monotoneY",
- "natural",
- "step",
- "stepAfter",
- "stepBefore",
- ]
- ],
- ]
- ] = None,
- dot: Optional[
- Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
- ] = None,
- active_dot: Optional[
- Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
- ] = None,
- label: Optional[Union[Var[bool], bool]] = None,
- base_line: Optional[
- Union[List[Dict[str, Any]], Var[Union[List[Dict[str, Any]], str]], str]
- ] = None,
- points: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
- stack_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- connect_nulls: Optional[Union[Var[bool], bool]] = None,
- layout: Optional[
- Union[
- Literal["horizontal", "vertical"],
- Var[Literal["horizontal", "vertical"]],
- ]
- ] = None,
- data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
- x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y_axis_id: Optional[Union[Var[Union[int, str]], int, 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,
- is_animation_active: 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[
- Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
- Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
- ]
- ] = None,
- unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
- name: Optional[Union[Var[Union[int, str]], int, 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, Any]]] = None,
- on_animation_end: Optional[EventType[[], BASE_STATE]] = None,
- on_animation_start: Optional[EventType[[], BASE_STATE]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "Area":
- """Create the component.
- Args:
- *children: The children of the component.
- stroke: The color of the line stroke. Default: rx.color("accent", 9)
- stroke_width: The width of the line stroke. Default: 1
- fill: The color of the area fill. Default: rx.color("accent", 5)
- type_: The interpolation type of area. And customized interpolation function can be set to type. 'basis' | 'basisClosed' | 'basisOpen' | 'bumpX' | 'bumpY' | 'bump' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter'. Default: "monotone"
- dot: If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally. Default: False
- active_dot: The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {stroke: rx.color("accent", 2), fill: rx.color("accent", 10)}
- label: If set false, labels will not be drawn. If set true, labels will be drawn which have the props calculated internally. Default: False
- base_line: The value which can describle the line, usually calculated internally.
- points: The coordinates of all the points in the area, usually calculated internally.
- stack_id: The stack id of area, when two areas have the same value axis and same stack_id, then the two areas are stacked in order.
- connect_nulls: Whether to connect a graph area across null points. Default: False
- layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
- data_key: The key of a group of data which should be unique in an area chart.
- x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
- y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
- is_animation_active: If set false, animation of bar will be disabled. Default: True
- 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. Default: 1500
- animation_easing: The type of easing function. Default: "ease"
- unit: The unit of data. This option will be used in tooltip.
- name: The name of data. This option will be used in tooltip and legend to represent the component. If no value was set to this option, the value of dataKey will be used alternatively.
- on_animation_start: The customized event handler of animation start
- on_animation_end: The customized event handler of animation end
- on_click: The customized event handler of click on the component in this group
- on_mouse_down: The customized event handler of mousedown on the component in this group
- on_mouse_up: The customized event handler of mouseup on the component in this group
- on_mouse_move: The customized event handler of mousemove on the component in this group
- on_mouse_over: The customized event handler of mouseover on the component in this group
- on_mouse_out: The customized event handler of mouseout on the component in this group
- on_mouse_enter: The customized event handler of mouseenter on the component in this group
- on_mouse_leave: The customized event handler of mouseleave on the component in this group
- 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 Bar(Cartesian):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- stroke_width: Optional[Union[Var[int], int]] = None,
- fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- background: Optional[Union[Var[bool], bool]] = None,
- label: Optional[Union[Var[bool], bool]] = None,
- stack_id: Optional[Union[Var[str], str]] = None,
- unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
- min_point_size: Optional[Union[Var[int], int]] = None,
- name: Optional[Union[Var[Union[int, str]], int, str]] = None,
- bar_size: Optional[Union[Var[int], int]] = None,
- max_bar_size: Optional[Union[Var[int], int]] = None,
- radius: Optional[Union[List[int], Var[Union[List[int], int]], int]] = None,
- layout: Optional[
- Union[
- Literal["horizontal", "vertical"],
- Var[Literal["horizontal", "vertical"]],
- ]
- ] = None,
- data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
- x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y_axis_id: Optional[Union[Var[Union[int, str]], int, 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,
- is_animation_active: 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[
- Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
- Var[Literal["ease", "ease-in", "ease-in-out", "ease-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, Any]]] = None,
- on_animation_end: Optional[EventType[[], BASE_STATE]] = None,
- on_animation_start: Optional[EventType[[], BASE_STATE]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "Bar":
- """Create the component.
- Args:
- *children: The children of the component.
- stroke: The color of the line stroke.
- stroke_width: The width of the line stroke.
- fill: The width of the line stroke. Default: Color("accent", 9)
- background: If false set, background of bars will not be drawn. If true set, background of bars will be drawn which have the props calculated internally. Default: False
- label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
- stack_id: The stack id of bar, when two bars have the same value axis and same stack_id, then the two bars are stacked in order.
- unit: The unit of data. This option will be used in tooltip.
- min_point_size: The minimal height of a bar in a horizontal BarChart, or the minimal width of a bar in a vertical BarChart. By default, 0 values are not shown. To visualize a 0 (or close to zero) point, set the minimal point size to a pixel value like 3. In stacked bar charts, minPointSize might not be respected for tightly packed values. So we strongly recommend not using this prop in stacked BarCharts.
- name: The name of data. This option will be used in tooltip and legend to represent the component. If no value was set to this option, the value of dataKey will be used alternatively.
- bar_size: Size of the bar (if one bar_size is set then a bar_size must be set for all bars)
- max_bar_size: Max size of the bar
- radius: If set a value, the option is the radius of all the rounded corners. If set a array, the option are in turn the radiuses of top-left corner, top-right corner, bottom-right corner, bottom-left corner. Default: 0
- layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
- data_key: The key of a group of data which should be unique in an area chart.
- x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
- y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
- is_animation_active: If set false, animation of bar will be disabled. Default: True
- 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. Default: 1500
- animation_easing: The type of easing function. Default: "ease"
- on_animation_start: The customized event handler of animation start
- on_animation_end: The customized event handler of animation end
- on_click: The customized event handler of click on the component in this group
- on_mouse_down: The customized event handler of mousedown on the component in this group
- on_mouse_up: The customized event handler of mouseup on the component in this group
- on_mouse_move: The customized event handler of mousemove on the component in this group
- on_mouse_over: The customized event handler of mouseover on the component in this group
- on_mouse_out: The customized event handler of mouseout on the component in this group
- on_mouse_enter: The customized event handler of mouseenter on the component in this group
- on_mouse_leave: The customized event handler of mouseleave on the component in this group
- 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 Line(Cartesian):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- type_: Optional[
- Union[
- Literal[
- "basis",
- "basisClosed",
- "basisOpen",
- "bump",
- "bumpX",
- "bumpY",
- "linear",
- "linearClosed",
- "monotone",
- "monotoneX",
- "monotoneY",
- "natural",
- "step",
- "stepAfter",
- "stepBefore",
- ],
- Var[
- Literal[
- "basis",
- "basisClosed",
- "basisOpen",
- "bump",
- "bumpX",
- "bumpY",
- "linear",
- "linearClosed",
- "monotone",
- "monotoneX",
- "monotoneY",
- "natural",
- "step",
- "stepAfter",
- "stepBefore",
- ]
- ],
- ]
- ] = None,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- stroke_width: Optional[Union[Var[int], int]] = None,
- dot: Optional[
- Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
- ] = None,
- active_dot: Optional[
- Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
- ] = None,
- label: Optional[Union[Var[bool], bool]] = None,
- hide: Optional[Union[Var[bool], bool]] = None,
- connect_nulls: Optional[Union[Var[bool], bool]] = None,
- unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
- points: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
- stroke_dasharray: Optional[Union[Var[str], str]] = None,
- layout: Optional[
- Union[
- Literal["horizontal", "vertical"],
- Var[Literal["horizontal", "vertical"]],
- ]
- ] = None,
- data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
- x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y_axis_id: Optional[Union[Var[Union[int, str]], int, 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,
- is_animation_active: 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[
- Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
- Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
- ]
- ] = None,
- name: Optional[Union[Var[Union[int, str]], int, 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, Any]]] = None,
- on_animation_end: Optional[EventType[[], BASE_STATE]] = None,
- on_animation_start: Optional[EventType[[], BASE_STATE]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "Line":
- """Create the component.
- Args:
- *children: The children of the component.
- type_: The interpolation type of line. And customized interpolation function can be set to type. It's the same as type in Area.
- stroke: The color of the line stroke. Default: rx.color("accent", 9)
- stroke_width: The width of the line stroke. Default: 1
- dot: The dot is shown when mouse enter a line chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {"stroke": rx.color("accent", 10), "fill": rx.color("accent", 4)}
- active_dot: The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {"stroke": rx.color("accent", 2), "fill": rx.color("accent", 10)}
- label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
- hide: Hides the line when true, useful when toggling visibility state via legend. Default: False
- connect_nulls: Whether to connect a graph line across null points.
- unit: The unit of data. This option will be used in tooltip.
- points: The coordinates of all the points in the line, usually calculated internally.
- stroke_dasharray: The pattern of dashes and gaps used to paint the line.
- layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
- data_key: The key of a group of data which should be unique in an area chart.
- x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
- y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
- is_animation_active: If set false, animation of bar will be disabled. Default: True
- 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. Default: 1500
- animation_easing: The type of easing function. Default: "ease"
- name: The name of data. This option will be used in tooltip and legend to represent the component. If no value was set to this option, the value of dataKey will be used alternatively.
- on_animation_start: The customized event handler of animation start
- on_animation_end: The customized event handler of animation end
- on_click: The customized event handler of click on the component in this group
- on_mouse_down: The customized event handler of mousedown on the component in this group
- on_mouse_up: The customized event handler of mouseup on the component in this group
- on_mouse_move: The customized event handler of mousemove on the component in this group
- on_mouse_over: The customized event handler of mouseover on the component in this group
- on_mouse_out: The customized event handler of mouseout on the component in this group
- on_mouse_enter: The customized event handler of mouseenter on the component in this group
- on_mouse_leave: The customized event handler of mouseleave on the component in this group
- 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 Scatter(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = 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,
- x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- z_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- line: Optional[Union[Var[bool], bool]] = None,
- shape: Optional[
- Union[
- Literal[
- "circle", "cross", "diamond", "square", "star", "triangle", "wye"
- ],
- Var[
- Literal[
- "circle",
- "cross",
- "diamond",
- "square",
- "star",
- "triangle",
- "wye",
- ]
- ],
- ]
- ] = None,
- line_type: Optional[
- Union[Literal["fitting", "joint"], Var[Literal["fitting", "joint"]]]
- ] = None,
- fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- is_animation_active: 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[
- Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
- Var[Literal["ease", "ease-in", "ease-in-out", "ease-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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "Scatter":
- """Create the component.
- Args:
- *children: The children of the component.
- data: The source data, in which each element is an object.
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' | 'none'. Default: "circle"
- x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
- y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
- z_axis_id: The id of z-axis which is corresponding to the data. Default: 0
- line: If false set, line will not be drawn. If true set, line will be drawn which have the props calculated internally. Default: False
- shape: If a string set, specified symbol will be used to show scatter item. 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye'. Default: "circle"
- line_type: If 'joint' set, line will generated by just jointing all the points. If 'fitting' set, line will be generated by fitting algorithm. 'joint' | 'fitting'. Default: "joint"
- fill: The fill color of the scatter. Default: rx.color("accent", 9)
- is_animation_active: If set false, animation of bar will be disabled. Default: True in CSR, False in SSR
- 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. Default: 1500
- animation_easing: The type of easing function. Default: "ease"
- on_click: The customized event handler of click on the component in this group
- on_mouse_down: The customized event handler of mousedown on the component in this group
- on_mouse_up: The customized event handler of mouseup on the component in this group
- on_mouse_move: The customized event handler of mousemove on the component in this group
- on_mouse_over: The customized event handler of mouseover on the component in this group
- on_mouse_out: The customized event handler of mouseout on the component in this group
- on_mouse_enter: The customized event handler of mouseenter on the component in this group
- on_mouse_leave: The customized event handler of mouseleave on the component in this group
- 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 Funnel(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *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,
- name_key: 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,
- is_animation_active: 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[
- Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
- Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
- ]
- ] = None,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- trapezoids: Optional[
- Union[List[Dict[str, Any]], Var[List[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, Any]]] = None,
- on_animation_end: Optional[EventType[[], BASE_STATE]] = None,
- on_animation_start: Optional[EventType[[], BASE_STATE]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "Funnel":
- """Create the component.
- Args:
- *children: The children of the component.
- data: The source data, in which each element is an object.
- data_key: The key or getter of a group of data which should be unique in a FunnelChart.
- name_key: The key of each sector's name. Default: "name"
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. Default: "line"
- is_animation_active: If set false, animation of line will be disabled. Default: True
- 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. Default: 1500
- animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. Default "ease"
- stroke: Stroke color. Default: rx.color("gray", 3)
- trapezoids: The coordinates of all the trapezoids in the funnel, usually calculated internally.
- on_animation_start: The customized event handler of animation start
- on_animation_end: The customized event handler of animation end
- on_click: The customized event handler of click on the component in this group
- on_mouse_down: The customized event handler of mousedown on the component in this group
- on_mouse_up: The customized event handler of mouseup on the component in this group
- on_mouse_move: The customized event handler of mousemove on the component in this group
- on_mouse_over: The customized event handler of mouseover on the component in this group
- on_mouse_out: The customized event handler of mouseout on the component in this group
- on_mouse_enter: The customized event handler of mouseenter on the component in this group
- on_mouse_leave: The customized event handler of mouseleave on the component in this group
- 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 ErrorBar(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- direction: Optional[Union[Literal["x", "y"], Var[Literal["x", "y"]]]] = None,
- data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
- width: Optional[Union[Var[int], int]] = None,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- stroke_width: Optional[Union[Var[Union[float, int]], float, 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "ErrorBar":
- """Create the component.
- Args:
- *children: The children of the component.
- direction: Only used for ScatterChart with error bars in two directions. Only accepts a value of "x" or "y" and makes the error bars lie in that direction.
- data_key: The key of a group of data which should be unique in an area chart.
- width: The width of the error bar ends. Default: 5
- stroke: The stroke color of error bar. Default: rx.color("gray", 8)
- stroke_width: The stroke width of error bar. Default: 1.5
- 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 Reference(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- if_overflow: Optional[
- Union[
- Literal["discard", "extendDomain", "hidden", "visible"],
- Var[Literal["discard", "extendDomain", "hidden", "visible"]],
- ]
- ] = None,
- label: Optional[Union[Var[Union[int, str]], int, str]] = None,
- is_front: 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "Reference":
- """Create the component.
- Args:
- *children: The children of the component.
- x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
- y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
- if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
- label: If set a string or a number, default label will be drawn, and the option is content.
- is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
- 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 ReferenceLine(Reference):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- x: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y: Optional[Union[Var[Union[int, str]], int, str]] = None,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- stroke_width: Optional[Union[Var[Union[int, str]], int, str]] = None,
- segment: Optional[List[Any]] = None,
- x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- if_overflow: Optional[
- Union[
- Literal["discard", "extendDomain", "hidden", "visible"],
- Var[Literal["discard", "extendDomain", "hidden", "visible"]],
- ]
- ] = None,
- label: Optional[Union[Var[Union[int, str]], int, str]] = None,
- is_front: 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "ReferenceLine":
- """Create the component.
- Args:
- *children: The children of the component.
- x: If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn.
- y: If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn.
- stroke: The color of the reference line.
- stroke_width: The width of the stroke. Default: 1
- segment: Array of endpoints in { x, y } format. These endpoints would be used to draw the ReferenceLine.
- x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
- y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
- if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
- label: If set a string or a number, default label will be drawn, and the option is content.
- is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
- 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 ReferenceDot(Reference):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- x: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y: Optional[Union[Var[Union[int, str]], int, str]] = None,
- r: Optional[Union[Var[int], int]] = None,
- fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- if_overflow: Optional[
- Union[
- Literal["discard", "extendDomain", "hidden", "visible"],
- Var[Literal["discard", "extendDomain", "hidden", "visible"]],
- ]
- ] = None,
- label: Optional[Union[Var[Union[int, str]], int, str]] = None,
- is_front: 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "ReferenceDot":
- """Create the component.
- Args:
- *children: The children of the component.
- x: If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn.
- y: If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn.
- r: The radius of dot.
- fill: The color of the area fill.
- stroke: The color of the line stroke.
- on_click: The customized event handler of click on the component in this chart
- on_mouse_down: The customized event handler of mousedown on the component in this chart
- on_mouse_up: The customized event handler of mouseup on the component in this chart
- on_mouse_over: The customized event handler of mouseover on the component in this chart
- on_mouse_out: The customized event handler of mouseout on the component in this chart
- on_mouse_enter: The customized event handler of mouseenter on the component in this chart
- on_mouse_move: The customized event handler of mousemove on the component in this chart
- on_mouse_leave: The customized event handler of mouseleave on the component in this chart
- x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
- y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
- if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
- label: If set a string or a number, default label will be drawn, and the option is content.
- is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
- 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 ReferenceArea(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- fill_opacity: Optional[Union[Var[float], float]] = None,
- x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
- x1: Optional[Union[Var[Union[int, str]], int, str]] = None,
- x2: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y1: Optional[Union[Var[Union[int, str]], int, str]] = None,
- y2: Optional[Union[Var[Union[int, str]], int, str]] = None,
- if_overflow: Optional[
- Union[
- Literal["discard", "extendDomain", "hidden", "visible"],
- Var[Literal["discard", "extendDomain", "hidden", "visible"]],
- ]
- ] = None,
- is_front: 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "ReferenceArea":
- """Create the component.
- Args:
- *children: The children of the component.
- stroke: Stroke color
- fill: Fill color
- fill_opacity: The opacity of area.
- x_axis_id: The id of x-axis which is corresponding to the data.
- y_axis_id: The id of y-axis which is corresponding to the data.
- x1: A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys. If one of x1 or x2 is invalidate, the area will cover along x-axis.
- x2: A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys. If one of x1 or x2 is invalidate, the area will cover along x-axis.
- y1: A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis.
- y2: A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis.
- if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
- is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
- 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 Grid(Recharts):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- x: Optional[Union[Var[int], int]] = None,
- y: Optional[Union[Var[int], int]] = None,
- width: Optional[Union[Var[int], int]] = None,
- height: 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "Grid":
- """Create the component.
- Args:
- *children: The children of the component.
- x: The x-coordinate of grid. Default: 0
- y: The y-coordinate of grid. Default: 0
- width: The width of grid. Default: 0
- height: The height of grid. Default: 0
- 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 CartesianGrid(Grid):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- horizontal: Optional[Union[Var[bool], bool]] = None,
- vertical: Optional[Union[Var[bool], bool]] = None,
- vertical_points: Optional[
- Union[List[Union[int, str]], Var[List[Union[int, str]]]]
- ] = None,
- horizontal_points: Optional[
- Union[List[Union[int, str]], Var[List[Union[int, str]]]]
- ] = None,
- fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- fill_opacity: Optional[Union[Var[float], float]] = None,
- stroke_dasharray: Optional[Union[Var[str], str]] = None,
- stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
- x: Optional[Union[Var[int], int]] = None,
- y: Optional[Union[Var[int], int]] = None,
- width: Optional[Union[Var[int], int]] = None,
- height: 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "CartesianGrid":
- """Create the component.
- Args:
- *children: The children of the component.
- horizontal: The horizontal line configuration. Default: True
- vertical: The vertical line configuration. Default: True
- vertical_points: The x-coordinates in pixel values of all vertical lines. Default: []
- horizontal_points: The x-coordinates in pixel values of all vertical lines. Default: []
- fill: The background of grid.
- fill_opacity: The opacity of the background used to fill the space between grid lines.
- stroke_dasharray: The pattern of dashes and gaps used to paint the lines of the grid.
- stroke: the stroke color of grid. Default: rx.color("gray", 7)
- x: The x-coordinate of grid. Default: 0
- y: The y-coordinate of grid. Default: 0
- width: The width of grid. Default: 0
- height: The height of grid. Default: 0
- 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 CartesianAxis(Grid):
- @overload
- @classmethod
- def create( # type: ignore
- cls,
- *children,
- orientation: Optional[
- Union[
- Literal["bottom", "left", "right", "top"],
- Var[Literal["bottom", "left", "right", "top"]],
- ]
- ] = None,
- view_box: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
- axis_line: Optional[Union[Var[bool], bool]] = None,
- tick: Optional[Union[Var[bool], bool]] = None,
- tick_line: Optional[Union[Var[bool], bool]] = None,
- tick_size: Optional[Union[Var[int], int]] = None,
- interval: Optional[
- Union[
- Literal["preserveEnd", "preserveStart", "preserveStartEnd"],
- Var[Literal["preserveEnd", "preserveStart", "preserveStartEnd"]],
- ]
- ] = None,
- label: Optional[Union[Var[Union[int, str]], int, str]] = None,
- mirror: Optional[Union[Var[bool], bool]] = None,
- tick_margin: Optional[Union[Var[int], int]] = None,
- x: Optional[Union[Var[int], int]] = None,
- y: Optional[Union[Var[int], int]] = None,
- width: Optional[Union[Var[int], int]] = None,
- height: 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, Any]]] = None,
- on_blur: Optional[EventType[[], BASE_STATE]] = None,
- on_click: Optional[EventType[[], BASE_STATE]] = None,
- on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
- on_double_click: Optional[EventType[[], BASE_STATE]] = None,
- on_focus: Optional[EventType[[], BASE_STATE]] = None,
- on_mount: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
- on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
- on_scroll: Optional[EventType[[], BASE_STATE]] = None,
- on_unmount: Optional[EventType[[], BASE_STATE]] = None,
- **props,
- ) -> "CartesianAxis":
- """Create the component.
- Args:
- *children: The children of the component.
- orientation: The orientation of axis 'top' | 'bottom' | 'left' | 'right'. Default: "bottom"
- view_box: The box of viewing area. Default: {"x": 0, "y": 0, "width": 0, "height": 0}
- axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line. Default: True
- tick: If set false, no ticks will be drawn.
- tick_line: If set false, no axis tick lines will be drawn. If set a object, the option is the configuration of tick lines. Default: True
- tick_size: The length of tick line. Default: 6
- interval: If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically. Default: "preserveEnd"
- label: If set a string or a number, default label will be drawn, and the option is content.
- mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. Default: False
- tick_margin: The margin between tick line and tick.
- x: The x-coordinate of grid. Default: 0
- y: The y-coordinate of grid. Default: 0
- width: The width of grid. Default: 0
- height: The height of grid. Default: 0
- 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.
- """
- ...
- area = Area.create
- bar = Bar.create
- line = Line.create
- scatter = Scatter.create
- x_axis = XAxis.create
- y_axis = YAxis.create
- z_axis = ZAxis.create
- brush = Brush.create
- cartesian_axis = CartesianAxis.create
- cartesian_grid = CartesianGrid.create
- reference_line = ReferenceLine.create
- reference_dot = ReferenceDot.create
- reference_area = ReferenceArea.create
- error_bar = ErrorBar.create
- funnel = Funnel.create
|