cartesian.pyi 103 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288
  1. """Stub file for reflex/components/recharts/cartesian.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
  6. from reflex.constants.colors import Color
  7. from reflex.event import EventHandler, EventSpec
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. from .recharts import (
  11. Recharts,
  12. )
  13. class Axis(Recharts):
  14. @overload
  15. @classmethod
  16. def create( # type: ignore
  17. cls,
  18. *children,
  19. data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
  20. hide: Optional[Union[Var[bool], bool]] = None,
  21. width: Optional[Union[Var[Union[int, str]], int, str]] = None,
  22. height: Optional[Union[Var[Union[int, str]], int, str]] = None,
  23. type_: Optional[
  24. Union[Literal["category", "number"], Var[Literal["category", "number"]]]
  25. ] = None,
  26. allow_decimals: Optional[Union[Var[bool], bool]] = None,
  27. allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
  28. allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
  29. axis_line: Optional[Union[Var[bool], bool]] = None,
  30. mirror: Optional[Union[Var[bool], bool]] = None,
  31. reversed: Optional[Union[Var[bool], bool]] = None,
  32. label: Optional[
  33. Union[Dict[str, Any], Var[Union[Dict[str, Any], int, str]], int, str]
  34. ] = None,
  35. scale: Optional[
  36. Union[
  37. Literal[
  38. "auto",
  39. "band",
  40. "identity",
  41. "linear",
  42. "log",
  43. "ordinal",
  44. "point",
  45. "pow",
  46. "quantile",
  47. "quantize",
  48. "sequential",
  49. "sqrt",
  50. "threshold",
  51. "time",
  52. "utc",
  53. ],
  54. Var[
  55. Literal[
  56. "auto",
  57. "band",
  58. "identity",
  59. "linear",
  60. "log",
  61. "ordinal",
  62. "point",
  63. "pow",
  64. "quantile",
  65. "quantize",
  66. "sequential",
  67. "sqrt",
  68. "threshold",
  69. "time",
  70. "utc",
  71. ]
  72. ],
  73. ]
  74. ] = None,
  75. unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
  76. name: Optional[Union[Var[Union[int, str]], int, str]] = None,
  77. ticks: Optional[
  78. Union[List[Union[int, str]], Var[List[Union[int, str]]]]
  79. ] = None,
  80. tick: Optional[Union[Var[bool], bool]] = None,
  81. tick_count: Optional[Union[Var[int], int]] = None,
  82. tick_line: Optional[Union[Var[bool], bool]] = None,
  83. tick_size: Optional[Union[Var[int], int]] = None,
  84. min_tick_gap: Optional[Union[Var[int], int]] = None,
  85. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  86. text_anchor: Optional[Union[Var[str], str]] = None,
  87. style: Optional[Style] = None,
  88. key: Optional[Any] = None,
  89. id: Optional[Any] = None,
  90. class_name: Optional[Any] = None,
  91. autofocus: Optional[bool] = None,
  92. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  93. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  94. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  95. on_context_menu: Optional[
  96. Union[EventHandler, EventSpec, list, Callable, Var]
  97. ] = None,
  98. on_double_click: Optional[
  99. Union[EventHandler, EventSpec, list, Callable, Var]
  100. ] = None,
  101. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  102. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  103. on_mouse_down: Optional[
  104. Union[EventHandler, EventSpec, list, Callable, Var]
  105. ] = None,
  106. on_mouse_enter: Optional[
  107. Union[EventHandler, EventSpec, list, Callable, Var]
  108. ] = None,
  109. on_mouse_leave: Optional[
  110. Union[EventHandler, EventSpec, list, Callable, Var]
  111. ] = None,
  112. on_mouse_move: Optional[
  113. Union[EventHandler, EventSpec, list, Callable, Var]
  114. ] = None,
  115. on_mouse_out: Optional[
  116. Union[EventHandler, EventSpec, list, Callable, Var]
  117. ] = None,
  118. on_mouse_over: Optional[
  119. Union[EventHandler, EventSpec, list, Callable, Var]
  120. ] = None,
  121. on_mouse_up: Optional[
  122. Union[EventHandler, EventSpec, list, Callable, Var]
  123. ] = None,
  124. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  125. on_unmount: Optional[
  126. Union[EventHandler, EventSpec, list, Callable, Var]
  127. ] = None,
  128. **props,
  129. ) -> "Axis":
  130. """Create the component.
  131. Args:
  132. *children: The children of the component.
  133. data_key: The key of data displayed in the axis.
  134. hide: If set true, the axis do not display in the chart.
  135. width: The width of axis which is usually calculated internally.
  136. height: The height of axis, which can be setted by user.
  137. type_: The type of axis 'number' | 'category'
  138. allow_decimals: Allow the ticks of XAxis to be decimals or not.
  139. 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.
  140. allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category".
  141. axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line.
  142. mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside.
  143. reversed: Reverse the ticks or not.
  144. label: The label of axis, which appears next to the axis.
  145. 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' | Function
  146. unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
  147. name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
  148. ticks: Set the values of axis ticks manually.
  149. tick: If set false, no ticks will be drawn.
  150. tick_count: The count of axis ticks.
  151. tick_line: If set false, no axis tick lines will be drawn.
  152. tick_size: The length of tick line.
  153. min_tick_gap: The minimum gap between two adjacent labels
  154. stroke: The stroke color of axis
  155. text_anchor: The text anchor of axis
  156. style: The style of the component.
  157. key: A unique key for the component.
  158. id: The id for the component.
  159. class_name: The class name for the component.
  160. autofocus: Whether the component should take the focus once the page is loaded
  161. custom_attrs: custom attribute
  162. **props: The props of the component.
  163. Returns:
  164. The component.
  165. """
  166. ...
  167. class XAxis(Axis):
  168. @overload
  169. @classmethod
  170. def create( # type: ignore
  171. cls,
  172. *children,
  173. orientation: Optional[
  174. Union[Literal["bottom", "top"], Var[Literal["bottom", "top"]]]
  175. ] = None,
  176. x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  177. include_hidden: Optional[Union[Var[bool], bool]] = None,
  178. domain: Optional[Union[List, Var[List]]] = None,
  179. data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
  180. hide: Optional[Union[Var[bool], bool]] = None,
  181. width: Optional[Union[Var[Union[int, str]], int, str]] = None,
  182. height: Optional[Union[Var[Union[int, str]], int, str]] = None,
  183. type_: Optional[
  184. Union[Literal["category", "number"], Var[Literal["category", "number"]]]
  185. ] = None,
  186. allow_decimals: Optional[Union[Var[bool], bool]] = None,
  187. allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
  188. allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
  189. axis_line: Optional[Union[Var[bool], bool]] = None,
  190. mirror: Optional[Union[Var[bool], bool]] = None,
  191. reversed: Optional[Union[Var[bool], bool]] = None,
  192. label: Optional[
  193. Union[Dict[str, Any], Var[Union[Dict[str, Any], int, str]], int, str]
  194. ] = None,
  195. scale: Optional[
  196. Union[
  197. Literal[
  198. "auto",
  199. "band",
  200. "identity",
  201. "linear",
  202. "log",
  203. "ordinal",
  204. "point",
  205. "pow",
  206. "quantile",
  207. "quantize",
  208. "sequential",
  209. "sqrt",
  210. "threshold",
  211. "time",
  212. "utc",
  213. ],
  214. Var[
  215. Literal[
  216. "auto",
  217. "band",
  218. "identity",
  219. "linear",
  220. "log",
  221. "ordinal",
  222. "point",
  223. "pow",
  224. "quantile",
  225. "quantize",
  226. "sequential",
  227. "sqrt",
  228. "threshold",
  229. "time",
  230. "utc",
  231. ]
  232. ],
  233. ]
  234. ] = None,
  235. unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
  236. name: Optional[Union[Var[Union[int, str]], int, str]] = None,
  237. ticks: Optional[
  238. Union[List[Union[int, str]], Var[List[Union[int, str]]]]
  239. ] = None,
  240. tick: Optional[Union[Var[bool], bool]] = None,
  241. tick_count: Optional[Union[Var[int], int]] = None,
  242. tick_line: Optional[Union[Var[bool], bool]] = None,
  243. tick_size: Optional[Union[Var[int], int]] = None,
  244. min_tick_gap: Optional[Union[Var[int], int]] = None,
  245. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  246. text_anchor: Optional[Union[Var[str], str]] = None,
  247. style: Optional[Style] = None,
  248. key: Optional[Any] = None,
  249. id: Optional[Any] = None,
  250. class_name: Optional[Any] = None,
  251. autofocus: Optional[bool] = None,
  252. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  253. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  254. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  255. on_context_menu: Optional[
  256. Union[EventHandler, EventSpec, list, Callable, Var]
  257. ] = None,
  258. on_double_click: Optional[
  259. Union[EventHandler, EventSpec, list, Callable, Var]
  260. ] = None,
  261. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  262. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  263. on_mouse_down: Optional[
  264. Union[EventHandler, EventSpec, list, Callable, Var]
  265. ] = None,
  266. on_mouse_enter: Optional[
  267. Union[EventHandler, EventSpec, list, Callable, Var]
  268. ] = None,
  269. on_mouse_leave: Optional[
  270. Union[EventHandler, EventSpec, list, Callable, Var]
  271. ] = None,
  272. on_mouse_move: Optional[
  273. Union[EventHandler, EventSpec, list, Callable, Var]
  274. ] = None,
  275. on_mouse_out: Optional[
  276. Union[EventHandler, EventSpec, list, Callable, Var]
  277. ] = None,
  278. on_mouse_over: Optional[
  279. Union[EventHandler, EventSpec, list, Callable, Var]
  280. ] = None,
  281. on_mouse_up: Optional[
  282. Union[EventHandler, EventSpec, list, Callable, Var]
  283. ] = None,
  284. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  285. on_unmount: Optional[
  286. Union[EventHandler, EventSpec, list, Callable, Var]
  287. ] = None,
  288. **props,
  289. ) -> "XAxis":
  290. """Create the component.
  291. Args:
  292. *children: The children of the component.
  293. orientation: The orientation of axis 'top' | 'bottom'
  294. x_axis_id: The id of x-axis which is corresponding to the data.
  295. include_hidden: Ensures that all datapoints within a chart contribute to its domain calculation, even when they are hidden
  296. domain: The range of the axis. Work best in conjuction with allow_data_overflow.
  297. data_key: The key of data displayed in the axis.
  298. hide: If set true, the axis do not display in the chart.
  299. width: The width of axis which is usually calculated internally.
  300. height: The height of axis, which can be setted by user.
  301. type_: The type of axis 'number' | 'category'
  302. allow_decimals: Allow the ticks of XAxis to be decimals or not.
  303. 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.
  304. allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category".
  305. axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line.
  306. mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside.
  307. reversed: Reverse the ticks or not.
  308. label: The label of axis, which appears next to the axis.
  309. 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' | Function
  310. unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
  311. name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
  312. ticks: Set the values of axis ticks manually.
  313. tick: If set false, no ticks will be drawn.
  314. tick_count: The count of axis ticks.
  315. tick_line: If set false, no axis tick lines will be drawn.
  316. tick_size: The length of tick line.
  317. min_tick_gap: The minimum gap between two adjacent labels
  318. stroke: The stroke color of axis
  319. text_anchor: The text anchor of axis
  320. style: The style of the component.
  321. key: A unique key for the component.
  322. id: The id for the component.
  323. class_name: The class name for the component.
  324. autofocus: Whether the component should take the focus once the page is loaded
  325. custom_attrs: custom attribute
  326. **props: The props of the component.
  327. Returns:
  328. The component.
  329. """
  330. ...
  331. class YAxis(Axis):
  332. @overload
  333. @classmethod
  334. def create( # type: ignore
  335. cls,
  336. *children,
  337. orientation: Optional[
  338. Union[Literal["left", "right"], Var[Literal["left", "right"]]]
  339. ] = None,
  340. y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  341. domain: Optional[Union[List, Var[List]]] = None,
  342. data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
  343. hide: Optional[Union[Var[bool], bool]] = None,
  344. width: Optional[Union[Var[Union[int, str]], int, str]] = None,
  345. height: Optional[Union[Var[Union[int, str]], int, str]] = None,
  346. type_: Optional[
  347. Union[Literal["category", "number"], Var[Literal["category", "number"]]]
  348. ] = None,
  349. allow_decimals: Optional[Union[Var[bool], bool]] = None,
  350. allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
  351. allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
  352. axis_line: Optional[Union[Var[bool], bool]] = None,
  353. mirror: Optional[Union[Var[bool], bool]] = None,
  354. reversed: Optional[Union[Var[bool], bool]] = None,
  355. label: Optional[
  356. Union[Dict[str, Any], Var[Union[Dict[str, Any], int, str]], int, str]
  357. ] = None,
  358. scale: Optional[
  359. Union[
  360. Literal[
  361. "auto",
  362. "band",
  363. "identity",
  364. "linear",
  365. "log",
  366. "ordinal",
  367. "point",
  368. "pow",
  369. "quantile",
  370. "quantize",
  371. "sequential",
  372. "sqrt",
  373. "threshold",
  374. "time",
  375. "utc",
  376. ],
  377. Var[
  378. Literal[
  379. "auto",
  380. "band",
  381. "identity",
  382. "linear",
  383. "log",
  384. "ordinal",
  385. "point",
  386. "pow",
  387. "quantile",
  388. "quantize",
  389. "sequential",
  390. "sqrt",
  391. "threshold",
  392. "time",
  393. "utc",
  394. ]
  395. ],
  396. ]
  397. ] = None,
  398. unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
  399. name: Optional[Union[Var[Union[int, str]], int, str]] = None,
  400. ticks: Optional[
  401. Union[List[Union[int, str]], Var[List[Union[int, str]]]]
  402. ] = None,
  403. tick: Optional[Union[Var[bool], bool]] = None,
  404. tick_count: Optional[Union[Var[int], int]] = None,
  405. tick_line: Optional[Union[Var[bool], bool]] = None,
  406. tick_size: Optional[Union[Var[int], int]] = None,
  407. min_tick_gap: Optional[Union[Var[int], int]] = None,
  408. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  409. text_anchor: Optional[Union[Var[str], str]] = None,
  410. style: Optional[Style] = None,
  411. key: Optional[Any] = None,
  412. id: Optional[Any] = None,
  413. class_name: Optional[Any] = None,
  414. autofocus: Optional[bool] = None,
  415. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  416. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  417. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  418. on_context_menu: Optional[
  419. Union[EventHandler, EventSpec, list, Callable, Var]
  420. ] = None,
  421. on_double_click: Optional[
  422. Union[EventHandler, EventSpec, list, Callable, Var]
  423. ] = None,
  424. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  425. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  426. on_mouse_down: Optional[
  427. Union[EventHandler, EventSpec, list, Callable, Var]
  428. ] = None,
  429. on_mouse_enter: Optional[
  430. Union[EventHandler, EventSpec, list, Callable, Var]
  431. ] = None,
  432. on_mouse_leave: Optional[
  433. Union[EventHandler, EventSpec, list, Callable, Var]
  434. ] = None,
  435. on_mouse_move: Optional[
  436. Union[EventHandler, EventSpec, list, Callable, Var]
  437. ] = None,
  438. on_mouse_out: Optional[
  439. Union[EventHandler, EventSpec, list, Callable, Var]
  440. ] = None,
  441. on_mouse_over: Optional[
  442. Union[EventHandler, EventSpec, list, Callable, Var]
  443. ] = None,
  444. on_mouse_up: Optional[
  445. Union[EventHandler, EventSpec, list, Callable, Var]
  446. ] = None,
  447. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  448. on_unmount: Optional[
  449. Union[EventHandler, EventSpec, list, Callable, Var]
  450. ] = None,
  451. **props,
  452. ) -> "YAxis":
  453. """Create the component.
  454. Args:
  455. *children: The children of the component.
  456. orientation: The orientation of axis 'left' | 'right'
  457. y_axis_id: The id of y-axis which is corresponding to the data.
  458. domain: The range of the axis. Work best in conjuction with allow_data_overflow.
  459. data_key: The key of data displayed in the axis.
  460. hide: If set true, the axis do not display in the chart.
  461. width: The width of axis which is usually calculated internally.
  462. height: The height of axis, which can be setted by user.
  463. type_: The type of axis 'number' | 'category'
  464. allow_decimals: Allow the ticks of XAxis to be decimals or not.
  465. 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.
  466. allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category".
  467. axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line.
  468. mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside.
  469. reversed: Reverse the ticks or not.
  470. label: The label of axis, which appears next to the axis.
  471. 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' | Function
  472. unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
  473. name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
  474. ticks: Set the values of axis ticks manually.
  475. tick: If set false, no ticks will be drawn.
  476. tick_count: The count of axis ticks.
  477. tick_line: If set false, no axis tick lines will be drawn.
  478. tick_size: The length of tick line.
  479. min_tick_gap: The minimum gap between two adjacent labels
  480. stroke: The stroke color of axis
  481. text_anchor: The text anchor of axis
  482. style: The style of the component.
  483. key: A unique key for the component.
  484. id: The id for the component.
  485. class_name: The class name for the component.
  486. autofocus: Whether the component should take the focus once the page is loaded
  487. custom_attrs: custom attribute
  488. **props: The props of the component.
  489. Returns:
  490. The component.
  491. """
  492. ...
  493. class ZAxis(Recharts):
  494. @overload
  495. @classmethod
  496. def create( # type: ignore
  497. cls,
  498. *children,
  499. data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
  500. range: Optional[Union[List[int], Var[List[int]]]] = None,
  501. unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
  502. name: Optional[Union[Var[Union[int, str]], int, str]] = None,
  503. scale: Optional[
  504. Union[
  505. Literal[
  506. "auto",
  507. "band",
  508. "identity",
  509. "linear",
  510. "log",
  511. "ordinal",
  512. "point",
  513. "pow",
  514. "quantile",
  515. "quantize",
  516. "sequential",
  517. "sqrt",
  518. "threshold",
  519. "time",
  520. "utc",
  521. ],
  522. Var[
  523. Literal[
  524. "auto",
  525. "band",
  526. "identity",
  527. "linear",
  528. "log",
  529. "ordinal",
  530. "point",
  531. "pow",
  532. "quantile",
  533. "quantize",
  534. "sequential",
  535. "sqrt",
  536. "threshold",
  537. "time",
  538. "utc",
  539. ]
  540. ],
  541. ]
  542. ] = None,
  543. style: Optional[Style] = None,
  544. key: Optional[Any] = None,
  545. id: Optional[Any] = None,
  546. class_name: Optional[Any] = None,
  547. autofocus: Optional[bool] = None,
  548. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  549. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  550. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  551. on_context_menu: Optional[
  552. Union[EventHandler, EventSpec, list, Callable, Var]
  553. ] = None,
  554. on_double_click: Optional[
  555. Union[EventHandler, EventSpec, list, Callable, Var]
  556. ] = None,
  557. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  558. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  559. on_mouse_down: Optional[
  560. Union[EventHandler, EventSpec, list, Callable, Var]
  561. ] = None,
  562. on_mouse_enter: Optional[
  563. Union[EventHandler, EventSpec, list, Callable, Var]
  564. ] = None,
  565. on_mouse_leave: Optional[
  566. Union[EventHandler, EventSpec, list, Callable, Var]
  567. ] = None,
  568. on_mouse_move: Optional[
  569. Union[EventHandler, EventSpec, list, Callable, Var]
  570. ] = None,
  571. on_mouse_out: Optional[
  572. Union[EventHandler, EventSpec, list, Callable, Var]
  573. ] = None,
  574. on_mouse_over: Optional[
  575. Union[EventHandler, EventSpec, list, Callable, Var]
  576. ] = None,
  577. on_mouse_up: Optional[
  578. Union[EventHandler, EventSpec, list, Callable, Var]
  579. ] = None,
  580. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  581. on_unmount: Optional[
  582. Union[EventHandler, EventSpec, list, Callable, Var]
  583. ] = None,
  584. **props,
  585. ) -> "ZAxis":
  586. """Create the component.
  587. Args:
  588. *children: The children of the component.
  589. data_key: The key of data displayed in the axis.
  590. range: The range of axis.
  591. unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
  592. name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
  593. scale: If 'auto' set, the scale function is decided by the type of chart, and the props type.
  594. style: The style of the component.
  595. key: A unique key for the component.
  596. id: The id for the component.
  597. class_name: The class name for the component.
  598. autofocus: Whether the component should take the focus once the page is loaded
  599. custom_attrs: custom attribute
  600. **props: The props of the component.
  601. Returns:
  602. The component.
  603. """
  604. ...
  605. class Brush(Recharts):
  606. def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
  607. @overload
  608. @classmethod
  609. def create( # type: ignore
  610. cls,
  611. *children,
  612. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  613. fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  614. data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
  615. x: Optional[Union[Var[int], int]] = None,
  616. y: Optional[Union[Var[int], int]] = None,
  617. width: Optional[Union[Var[int], int]] = None,
  618. height: Optional[Union[Var[int], int]] = None,
  619. data: Optional[Union[List[Any], Var[List[Any]]]] = None,
  620. traveller_width: Optional[Union[Var[int], int]] = None,
  621. gap: Optional[Union[Var[int], int]] = None,
  622. start_index: Optional[Union[Var[int], int]] = None,
  623. end_index: Optional[Union[Var[int], int]] = None,
  624. style: Optional[Style] = None,
  625. key: Optional[Any] = None,
  626. id: Optional[Any] = None,
  627. class_name: Optional[Any] = None,
  628. autofocus: Optional[bool] = None,
  629. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  630. on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  631. **props,
  632. ) -> "Brush":
  633. """Create the component.
  634. Args:
  635. *children: The children of the component.
  636. stroke: The stroke color of brush
  637. fill: The fill color of brush
  638. data_key: The key of data displayed in the axis.
  639. x: The x-coordinate of brush.
  640. y: The y-coordinate of brush.
  641. width: The width of brush.
  642. height: The height of brush.
  643. data: The data domain of brush, [min, max].
  644. traveller_width: The width of each traveller.
  645. gap: The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time
  646. start_index: The default start index of brush. If the option is not set, the start index will be 0.
  647. end_index: The default end index of brush. If the option is not set, the end index will be 1.
  648. style: The style of the component.
  649. key: A unique key for the component.
  650. id: The id for the component.
  651. class_name: The class name for the component.
  652. autofocus: Whether the component should take the focus once the page is loaded
  653. custom_attrs: custom attribute
  654. **props: The props of the component.
  655. Returns:
  656. The component.
  657. """
  658. ...
  659. class Cartesian(Recharts):
  660. @overload
  661. @classmethod
  662. def create( # type: ignore
  663. cls,
  664. *children,
  665. layout: Optional[
  666. Union[
  667. Literal["horizontal", "vertical"],
  668. Var[Literal["horizontal", "vertical"]],
  669. ]
  670. ] = None,
  671. data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
  672. x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  673. y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  674. legend_type: Optional[
  675. Union[
  676. Literal[
  677. "circle",
  678. "cross",
  679. "diamond",
  680. "line",
  681. "none",
  682. "plainline",
  683. "rect",
  684. "square",
  685. "star",
  686. "triangle",
  687. "wye",
  688. ],
  689. Var[
  690. Literal[
  691. "circle",
  692. "cross",
  693. "diamond",
  694. "line",
  695. "none",
  696. "plainline",
  697. "rect",
  698. "square",
  699. "star",
  700. "triangle",
  701. "wye",
  702. ]
  703. ],
  704. ]
  705. ] = None,
  706. style: Optional[Style] = None,
  707. key: Optional[Any] = None,
  708. id: Optional[Any] = None,
  709. class_name: Optional[Any] = None,
  710. autofocus: Optional[bool] = None,
  711. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  712. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  713. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  714. on_context_menu: Optional[
  715. Union[EventHandler, EventSpec, list, Callable, Var]
  716. ] = None,
  717. on_double_click: Optional[
  718. Union[EventHandler, EventSpec, list, Callable, Var]
  719. ] = None,
  720. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  721. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  722. on_mouse_down: Optional[
  723. Union[EventHandler, EventSpec, list, Callable, Var]
  724. ] = None,
  725. on_mouse_enter: Optional[
  726. Union[EventHandler, EventSpec, list, Callable, Var]
  727. ] = None,
  728. on_mouse_leave: Optional[
  729. Union[EventHandler, EventSpec, list, Callable, Var]
  730. ] = None,
  731. on_mouse_move: Optional[
  732. Union[EventHandler, EventSpec, list, Callable, Var]
  733. ] = None,
  734. on_mouse_out: Optional[
  735. Union[EventHandler, EventSpec, list, Callable, Var]
  736. ] = None,
  737. on_mouse_over: Optional[
  738. Union[EventHandler, EventSpec, list, Callable, Var]
  739. ] = None,
  740. on_mouse_up: Optional[
  741. Union[EventHandler, EventSpec, list, Callable, Var]
  742. ] = None,
  743. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  744. on_unmount: Optional[
  745. Union[EventHandler, EventSpec, list, Callable, Var]
  746. ] = None,
  747. **props,
  748. ) -> "Cartesian":
  749. """Create the component.
  750. Args:
  751. *children: The children of the component.
  752. layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
  753. data_key: The key of a group of data which should be unique in an area chart.
  754. x_axis_id: The id of x-axis which is corresponding to the data.
  755. y_axis_id: The id of y-axis which is corresponding to the data.
  756. 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
  757. style: The style of the component.
  758. key: A unique key for the component.
  759. id: The id for the component.
  760. class_name: The class name for the component.
  761. autofocus: Whether the component should take the focus once the page is loaded
  762. custom_attrs: custom attribute
  763. **props: The props of the component.
  764. Returns:
  765. The component.
  766. """
  767. ...
  768. class Area(Cartesian):
  769. @overload
  770. @classmethod
  771. def create( # type: ignore
  772. cls,
  773. *children,
  774. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  775. stroke_width: Optional[Union[Var[int], int]] = None,
  776. fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  777. type_: Optional[
  778. Union[
  779. Literal[
  780. "basis",
  781. "basisClosed",
  782. "basisOpen",
  783. "bump",
  784. "bumpX",
  785. "bumpY",
  786. "linear",
  787. "linearClosed",
  788. "monotone",
  789. "monotoneX",
  790. "monotoneY",
  791. "natural",
  792. "step",
  793. "stepAfter",
  794. "stepBefore",
  795. ],
  796. Var[
  797. Literal[
  798. "basis",
  799. "basisClosed",
  800. "basisOpen",
  801. "bump",
  802. "bumpX",
  803. "bumpY",
  804. "linear",
  805. "linearClosed",
  806. "monotone",
  807. "monotoneX",
  808. "monotoneY",
  809. "natural",
  810. "step",
  811. "stepAfter",
  812. "stepBefore",
  813. ]
  814. ],
  815. ]
  816. ] = None,
  817. dot: Optional[
  818. Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
  819. ] = None,
  820. active_dot: Optional[
  821. Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
  822. ] = None,
  823. label: Optional[Union[Var[bool], bool]] = None,
  824. stack_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  825. unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
  826. name: Optional[Union[Var[Union[int, str]], int, str]] = None,
  827. layout: Optional[
  828. Union[
  829. Literal["horizontal", "vertical"],
  830. Var[Literal["horizontal", "vertical"]],
  831. ]
  832. ] = None,
  833. data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
  834. x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  835. y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  836. legend_type: Optional[
  837. Union[
  838. Literal[
  839. "circle",
  840. "cross",
  841. "diamond",
  842. "line",
  843. "none",
  844. "plainline",
  845. "rect",
  846. "square",
  847. "star",
  848. "triangle",
  849. "wye",
  850. ],
  851. Var[
  852. Literal[
  853. "circle",
  854. "cross",
  855. "diamond",
  856. "line",
  857. "none",
  858. "plainline",
  859. "rect",
  860. "square",
  861. "star",
  862. "triangle",
  863. "wye",
  864. ]
  865. ],
  866. ]
  867. ] = None,
  868. style: Optional[Style] = None,
  869. key: Optional[Any] = None,
  870. id: Optional[Any] = None,
  871. class_name: Optional[Any] = None,
  872. autofocus: Optional[bool] = None,
  873. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  874. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  875. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  876. on_context_menu: Optional[
  877. Union[EventHandler, EventSpec, list, Callable, Var]
  878. ] = None,
  879. on_double_click: Optional[
  880. Union[EventHandler, EventSpec, list, Callable, Var]
  881. ] = None,
  882. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  883. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  884. on_mouse_down: Optional[
  885. Union[EventHandler, EventSpec, list, Callable, Var]
  886. ] = None,
  887. on_mouse_enter: Optional[
  888. Union[EventHandler, EventSpec, list, Callable, Var]
  889. ] = None,
  890. on_mouse_leave: Optional[
  891. Union[EventHandler, EventSpec, list, Callable, Var]
  892. ] = None,
  893. on_mouse_move: Optional[
  894. Union[EventHandler, EventSpec, list, Callable, Var]
  895. ] = None,
  896. on_mouse_out: Optional[
  897. Union[EventHandler, EventSpec, list, Callable, Var]
  898. ] = None,
  899. on_mouse_over: Optional[
  900. Union[EventHandler, EventSpec, list, Callable, Var]
  901. ] = None,
  902. on_mouse_up: Optional[
  903. Union[EventHandler, EventSpec, list, Callable, Var]
  904. ] = None,
  905. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  906. on_unmount: Optional[
  907. Union[EventHandler, EventSpec, list, Callable, Var]
  908. ] = None,
  909. **props,
  910. ) -> "Area":
  911. """Create the component.
  912. Args:
  913. *children: The children of the component.
  914. stroke: The color of the line stroke.
  915. stroke_width: The width of the line stroke.
  916. fill: The color of the area fill.
  917. 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' |
  918. dot: If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally.
  919. 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.
  920. label: If set false, labels will not be drawn. If set true, labels will be drawn which have the props calculated internally.
  921. 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.
  922. unit: The unit of data. This option will be used in tooltip.
  923. name: The name of data. This option will be used in tooltip and legend to represent a bar. If no value was set to this option, the value of dataKey will be used alternatively.
  924. layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
  925. data_key: The key of a group of data which should be unique in an area chart.
  926. x_axis_id: The id of x-axis which is corresponding to the data.
  927. y_axis_id: The id of y-axis which is corresponding to the data.
  928. 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
  929. style: The style of the component.
  930. key: A unique key for the component.
  931. id: The id for the component.
  932. class_name: The class name for the component.
  933. autofocus: Whether the component should take the focus once the page is loaded
  934. custom_attrs: custom attribute
  935. **props: The props of the component.
  936. Returns:
  937. The component.
  938. """
  939. ...
  940. class Bar(Cartesian):
  941. @overload
  942. @classmethod
  943. def create( # type: ignore
  944. cls,
  945. *children,
  946. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  947. stroke_width: Optional[Union[Var[int], int]] = None,
  948. fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  949. background: Optional[Union[Var[bool], bool]] = None,
  950. label: Optional[Union[Var[bool], bool]] = None,
  951. stack_id: Optional[Union[Var[str], str]] = None,
  952. unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
  953. min_point_size: Optional[Union[Var[int], int]] = None,
  954. name: Optional[Union[Var[Union[int, str]], int, str]] = None,
  955. bar_size: Optional[Union[Var[int], int]] = None,
  956. max_bar_size: Optional[Union[Var[int], int]] = None,
  957. is_animation_active: Optional[Union[Var[bool], bool]] = None,
  958. animation_begin: Optional[Union[Var[int], int]] = None,
  959. animation_duration: Optional[Union[Var[int], int]] = None,
  960. animation_easing: Optional[
  961. Union[
  962. Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
  963. Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
  964. ]
  965. ] = None,
  966. layout: Optional[
  967. Union[
  968. Literal["horizontal", "vertical"],
  969. Var[Literal["horizontal", "vertical"]],
  970. ]
  971. ] = None,
  972. data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
  973. x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  974. y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  975. legend_type: Optional[
  976. Union[
  977. Literal[
  978. "circle",
  979. "cross",
  980. "diamond",
  981. "line",
  982. "none",
  983. "plainline",
  984. "rect",
  985. "square",
  986. "star",
  987. "triangle",
  988. "wye",
  989. ],
  990. Var[
  991. Literal[
  992. "circle",
  993. "cross",
  994. "diamond",
  995. "line",
  996. "none",
  997. "plainline",
  998. "rect",
  999. "square",
  1000. "star",
  1001. "triangle",
  1002. "wye",
  1003. ]
  1004. ],
  1005. ]
  1006. ] = None,
  1007. style: Optional[Style] = None,
  1008. key: Optional[Any] = None,
  1009. id: Optional[Any] = None,
  1010. class_name: Optional[Any] = None,
  1011. autofocus: Optional[bool] = None,
  1012. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1013. on_animation_end: Optional[
  1014. Union[EventHandler, EventSpec, list, Callable, Var]
  1015. ] = None,
  1016. on_animation_start: Optional[
  1017. Union[EventHandler, EventSpec, list, Callable, Var]
  1018. ] = None,
  1019. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1020. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1021. on_context_menu: Optional[
  1022. Union[EventHandler, EventSpec, list, Callable, Var]
  1023. ] = None,
  1024. on_double_click: Optional[
  1025. Union[EventHandler, EventSpec, list, Callable, Var]
  1026. ] = None,
  1027. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1028. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1029. on_mouse_down: Optional[
  1030. Union[EventHandler, EventSpec, list, Callable, Var]
  1031. ] = None,
  1032. on_mouse_enter: Optional[
  1033. Union[EventHandler, EventSpec, list, Callable, Var]
  1034. ] = None,
  1035. on_mouse_leave: Optional[
  1036. Union[EventHandler, EventSpec, list, Callable, Var]
  1037. ] = None,
  1038. on_mouse_move: Optional[
  1039. Union[EventHandler, EventSpec, list, Callable, Var]
  1040. ] = None,
  1041. on_mouse_out: Optional[
  1042. Union[EventHandler, EventSpec, list, Callable, Var]
  1043. ] = None,
  1044. on_mouse_over: Optional[
  1045. Union[EventHandler, EventSpec, list, Callable, Var]
  1046. ] = None,
  1047. on_mouse_up: Optional[
  1048. Union[EventHandler, EventSpec, list, Callable, Var]
  1049. ] = None,
  1050. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1051. on_unmount: Optional[
  1052. Union[EventHandler, EventSpec, list, Callable, Var]
  1053. ] = None,
  1054. **props,
  1055. ) -> "Bar":
  1056. """Create the component.
  1057. Args:
  1058. *children: The children of the component.
  1059. stroke: The color of the line stroke.
  1060. stroke_width: The width of the line stroke.
  1061. fill: The width of the line stroke.
  1062. 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.
  1063. label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally.
  1064. 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.
  1065. unit: The unit of data. This option will be used in tooltip.
  1066. 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.
  1067. name: The name of data. This option will be used in tooltip and legend to represent a bar. If no value was set to this option, the value of dataKey will be used alternatively.
  1068. bar_size: Size of the bar (if one bar_size is set then a bar_size must be set for all bars)
  1069. max_bar_size: Max size of the bar
  1070. is_animation_active: If set false, animation of bar will be disabled.
  1071. animation_begin: Specifies when the animation should begin, the unit of this option is ms, default 0.
  1072. animation_duration: Specifies the duration of animation, the unit of this option is ms, default 1500.
  1073. animation_easing: The type of easing function, default 'ease'
  1074. layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
  1075. data_key: The key of a group of data which should be unique in an area chart.
  1076. x_axis_id: The id of x-axis which is corresponding to the data.
  1077. y_axis_id: The id of y-axis which is corresponding to the data.
  1078. 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
  1079. style: The style of the component.
  1080. key: A unique key for the component.
  1081. id: The id for the component.
  1082. class_name: The class name for the component.
  1083. autofocus: Whether the component should take the focus once the page is loaded
  1084. custom_attrs: custom attribute
  1085. **props: The props of the component.
  1086. Returns:
  1087. The component.
  1088. """
  1089. ...
  1090. class Line(Cartesian):
  1091. @overload
  1092. @classmethod
  1093. def create( # type: ignore
  1094. cls,
  1095. *children,
  1096. type_: Optional[
  1097. Union[
  1098. Literal[
  1099. "basis",
  1100. "basisClosed",
  1101. "basisOpen",
  1102. "bump",
  1103. "bumpX",
  1104. "bumpY",
  1105. "linear",
  1106. "linearClosed",
  1107. "monotone",
  1108. "monotoneX",
  1109. "monotoneY",
  1110. "natural",
  1111. "step",
  1112. "stepAfter",
  1113. "stepBefore",
  1114. ],
  1115. Var[
  1116. Literal[
  1117. "basis",
  1118. "basisClosed",
  1119. "basisOpen",
  1120. "bump",
  1121. "bumpX",
  1122. "bumpY",
  1123. "linear",
  1124. "linearClosed",
  1125. "monotone",
  1126. "monotoneX",
  1127. "monotoneY",
  1128. "natural",
  1129. "step",
  1130. "stepAfter",
  1131. "stepBefore",
  1132. ]
  1133. ],
  1134. ]
  1135. ] = None,
  1136. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  1137. stroke_width: Optional[Union[Var[int], int]] = None,
  1138. dot: Optional[
  1139. Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
  1140. ] = None,
  1141. active_dot: Optional[
  1142. Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
  1143. ] = None,
  1144. label: Optional[Union[Var[bool], bool]] = None,
  1145. hide: Optional[Union[Var[bool], bool]] = None,
  1146. connect_nulls: Optional[Union[Var[bool], bool]] = None,
  1147. unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1148. name: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1149. layout: Optional[
  1150. Union[
  1151. Literal["horizontal", "vertical"],
  1152. Var[Literal["horizontal", "vertical"]],
  1153. ]
  1154. ] = None,
  1155. data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1156. x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1157. y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1158. legend_type: Optional[
  1159. Union[
  1160. Literal[
  1161. "circle",
  1162. "cross",
  1163. "diamond",
  1164. "line",
  1165. "none",
  1166. "plainline",
  1167. "rect",
  1168. "square",
  1169. "star",
  1170. "triangle",
  1171. "wye",
  1172. ],
  1173. Var[
  1174. Literal[
  1175. "circle",
  1176. "cross",
  1177. "diamond",
  1178. "line",
  1179. "none",
  1180. "plainline",
  1181. "rect",
  1182. "square",
  1183. "star",
  1184. "triangle",
  1185. "wye",
  1186. ]
  1187. ],
  1188. ]
  1189. ] = None,
  1190. style: Optional[Style] = None,
  1191. key: Optional[Any] = None,
  1192. id: Optional[Any] = None,
  1193. class_name: Optional[Any] = None,
  1194. autofocus: Optional[bool] = None,
  1195. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1196. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1197. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1198. on_context_menu: Optional[
  1199. Union[EventHandler, EventSpec, list, Callable, Var]
  1200. ] = None,
  1201. on_double_click: Optional[
  1202. Union[EventHandler, EventSpec, list, Callable, Var]
  1203. ] = None,
  1204. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1205. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1206. on_mouse_down: Optional[
  1207. Union[EventHandler, EventSpec, list, Callable, Var]
  1208. ] = None,
  1209. on_mouse_enter: Optional[
  1210. Union[EventHandler, EventSpec, list, Callable, Var]
  1211. ] = None,
  1212. on_mouse_leave: Optional[
  1213. Union[EventHandler, EventSpec, list, Callable, Var]
  1214. ] = None,
  1215. on_mouse_move: Optional[
  1216. Union[EventHandler, EventSpec, list, Callable, Var]
  1217. ] = None,
  1218. on_mouse_out: Optional[
  1219. Union[EventHandler, EventSpec, list, Callable, Var]
  1220. ] = None,
  1221. on_mouse_over: Optional[
  1222. Union[EventHandler, EventSpec, list, Callable, Var]
  1223. ] = None,
  1224. on_mouse_up: Optional[
  1225. Union[EventHandler, EventSpec, list, Callable, Var]
  1226. ] = None,
  1227. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1228. on_unmount: Optional[
  1229. Union[EventHandler, EventSpec, list, Callable, Var]
  1230. ] = None,
  1231. **props,
  1232. ) -> "Line":
  1233. """Create the component.
  1234. Args:
  1235. *children: The children of the component.
  1236. type_: The interpolation type of line. And customized interpolation function can be set to type. It's the same as type in Area.
  1237. stroke: The color of the line stroke.
  1238. stroke_width: The width of the line stroke.
  1239. 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.
  1240. 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.
  1241. label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally.
  1242. hide: Hides the line when true, useful when toggling visibility state via legend.
  1243. connect_nulls: Whether to connect a graph line across null points.
  1244. unit: The unit of data. This option will be used in tooltip.
  1245. name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
  1246. layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
  1247. data_key: The key of a group of data which should be unique in an area chart.
  1248. x_axis_id: The id of x-axis which is corresponding to the data.
  1249. y_axis_id: The id of y-axis which is corresponding to the data.
  1250. 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
  1251. style: The style of the component.
  1252. key: A unique key for the component.
  1253. id: The id for the component.
  1254. class_name: The class name for the component.
  1255. autofocus: Whether the component should take the focus once the page is loaded
  1256. custom_attrs: custom attribute
  1257. **props: The props of the component.
  1258. Returns:
  1259. The component.
  1260. """
  1261. ...
  1262. class Scatter(Recharts):
  1263. @overload
  1264. @classmethod
  1265. def create( # type: ignore
  1266. cls,
  1267. *children,
  1268. data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
  1269. legend_type: Optional[
  1270. Union[
  1271. Literal[
  1272. "circle",
  1273. "cross",
  1274. "diamond",
  1275. "line",
  1276. "none",
  1277. "plainline",
  1278. "rect",
  1279. "square",
  1280. "star",
  1281. "triangle",
  1282. "wye",
  1283. ],
  1284. Var[
  1285. Literal[
  1286. "circle",
  1287. "cross",
  1288. "diamond",
  1289. "line",
  1290. "none",
  1291. "plainline",
  1292. "rect",
  1293. "square",
  1294. "star",
  1295. "triangle",
  1296. "wye",
  1297. ]
  1298. ],
  1299. ]
  1300. ] = None,
  1301. x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1302. y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1303. z_axis_id: Optional[Union[Var[str], str]] = None,
  1304. line: Optional[Union[Var[bool], bool]] = None,
  1305. shape: Optional[
  1306. Union[
  1307. Literal[
  1308. "circle", "cross", "diamond", "square", "star", "triangle", "wye"
  1309. ],
  1310. Var[
  1311. Literal[
  1312. "circle",
  1313. "cross",
  1314. "diamond",
  1315. "square",
  1316. "star",
  1317. "triangle",
  1318. "wye",
  1319. ]
  1320. ],
  1321. ]
  1322. ] = None,
  1323. line_type: Optional[
  1324. Union[Literal["fitting", "joint"], Var[Literal["fitting", "joint"]]]
  1325. ] = None,
  1326. fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  1327. name: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1328. is_animation_active: Optional[Union[Var[bool], bool]] = None,
  1329. animation_begin: Optional[Union[Var[int], int]] = None,
  1330. animation_duration: Optional[Union[Var[int], int]] = None,
  1331. animation_easing: Optional[
  1332. Union[
  1333. Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
  1334. Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
  1335. ]
  1336. ] = None,
  1337. style: Optional[Style] = None,
  1338. key: Optional[Any] = None,
  1339. id: Optional[Any] = None,
  1340. class_name: Optional[Any] = None,
  1341. autofocus: Optional[bool] = None,
  1342. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1343. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1344. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1345. on_context_menu: Optional[
  1346. Union[EventHandler, EventSpec, list, Callable, Var]
  1347. ] = None,
  1348. on_double_click: Optional[
  1349. Union[EventHandler, EventSpec, list, Callable, Var]
  1350. ] = None,
  1351. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1352. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1353. on_mouse_down: Optional[
  1354. Union[EventHandler, EventSpec, list, Callable, Var]
  1355. ] = None,
  1356. on_mouse_enter: Optional[
  1357. Union[EventHandler, EventSpec, list, Callable, Var]
  1358. ] = None,
  1359. on_mouse_leave: Optional[
  1360. Union[EventHandler, EventSpec, list, Callable, Var]
  1361. ] = None,
  1362. on_mouse_move: Optional[
  1363. Union[EventHandler, EventSpec, list, Callable, Var]
  1364. ] = None,
  1365. on_mouse_out: Optional[
  1366. Union[EventHandler, EventSpec, list, Callable, Var]
  1367. ] = None,
  1368. on_mouse_over: Optional[
  1369. Union[EventHandler, EventSpec, list, Callable, Var]
  1370. ] = None,
  1371. on_mouse_up: Optional[
  1372. Union[EventHandler, EventSpec, list, Callable, Var]
  1373. ] = None,
  1374. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1375. on_unmount: Optional[
  1376. Union[EventHandler, EventSpec, list, Callable, Var]
  1377. ] = None,
  1378. **props,
  1379. ) -> "Scatter":
  1380. """Create the component.
  1381. Args:
  1382. *children: The children of the component.
  1383. data: The source data, in which each element is an object.
  1384. 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'
  1385. x_axis_id: The id of x-axis which is corresponding to the data.
  1386. y_axis_id: The id of y-axis which is corresponding to the data.
  1387. z_axis_id: The id of z-axis which is corresponding to the data.
  1388. line: If false set, line will not be drawn. If true set, line will be drawn which have the props calculated internally.
  1389. shape: If a string set, specified symbol will be used to show scatter item. 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye'
  1390. 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'
  1391. fill: The fill
  1392. name: the name
  1393. is_animation_active: If set false, animation of bar will be disabled.
  1394. animation_begin: Specifies when the animation should begin, the unit of this option is ms, default 0.
  1395. animation_duration: Specifies the duration of animation, the unit of this option is ms, default 1500.
  1396. animation_easing: The type of easing function, default 'ease'
  1397. style: The style of the component.
  1398. key: A unique key for the component.
  1399. id: The id for the component.
  1400. class_name: The class name for the component.
  1401. autofocus: Whether the component should take the focus once the page is loaded
  1402. custom_attrs: custom attribute
  1403. **props: The props of the component.
  1404. Returns:
  1405. The component.
  1406. """
  1407. ...
  1408. class Funnel(Recharts):
  1409. @overload
  1410. @classmethod
  1411. def create( # type: ignore
  1412. cls,
  1413. *children,
  1414. data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
  1415. data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1416. name_key: Optional[Union[Var[str], str]] = None,
  1417. legend_type: Optional[
  1418. Union[
  1419. Literal[
  1420. "circle",
  1421. "cross",
  1422. "diamond",
  1423. "line",
  1424. "none",
  1425. "plainline",
  1426. "rect",
  1427. "square",
  1428. "star",
  1429. "triangle",
  1430. "wye",
  1431. ],
  1432. Var[
  1433. Literal[
  1434. "circle",
  1435. "cross",
  1436. "diamond",
  1437. "line",
  1438. "none",
  1439. "plainline",
  1440. "rect",
  1441. "square",
  1442. "star",
  1443. "triangle",
  1444. "wye",
  1445. ]
  1446. ],
  1447. ]
  1448. ] = None,
  1449. is_animation_active: Optional[Union[Var[bool], bool]] = None,
  1450. animation_begin: Optional[Union[Var[int], int]] = None,
  1451. animation_duration: Optional[Union[Var[int], int]] = None,
  1452. animation_easing: Optional[
  1453. Union[
  1454. Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
  1455. Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
  1456. ]
  1457. ] = None,
  1458. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  1459. style: Optional[Style] = None,
  1460. key: Optional[Any] = None,
  1461. id: Optional[Any] = None,
  1462. class_name: Optional[Any] = None,
  1463. autofocus: Optional[bool] = None,
  1464. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1465. on_animation_end: Optional[
  1466. Union[EventHandler, EventSpec, list, Callable, Var]
  1467. ] = None,
  1468. on_animation_start: Optional[
  1469. Union[EventHandler, EventSpec, list, Callable, Var]
  1470. ] = None,
  1471. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1472. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1473. on_context_menu: Optional[
  1474. Union[EventHandler, EventSpec, list, Callable, Var]
  1475. ] = None,
  1476. on_double_click: Optional[
  1477. Union[EventHandler, EventSpec, list, Callable, Var]
  1478. ] = None,
  1479. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1480. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1481. on_mouse_down: Optional[
  1482. Union[EventHandler, EventSpec, list, Callable, Var]
  1483. ] = None,
  1484. on_mouse_enter: Optional[
  1485. Union[EventHandler, EventSpec, list, Callable, Var]
  1486. ] = None,
  1487. on_mouse_leave: Optional[
  1488. Union[EventHandler, EventSpec, list, Callable, Var]
  1489. ] = None,
  1490. on_mouse_move: Optional[
  1491. Union[EventHandler, EventSpec, list, Callable, Var]
  1492. ] = None,
  1493. on_mouse_out: Optional[
  1494. Union[EventHandler, EventSpec, list, Callable, Var]
  1495. ] = None,
  1496. on_mouse_over: Optional[
  1497. Union[EventHandler, EventSpec, list, Callable, Var]
  1498. ] = None,
  1499. on_mouse_up: Optional[
  1500. Union[EventHandler, EventSpec, list, Callable, Var]
  1501. ] = None,
  1502. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1503. on_unmount: Optional[
  1504. Union[EventHandler, EventSpec, list, Callable, Var]
  1505. ] = None,
  1506. **props,
  1507. ) -> "Funnel":
  1508. """Create the component.
  1509. Args:
  1510. *children: The children of the component.
  1511. data: The source data, in which each element is an object.
  1512. data_key: The key of a group of data which should be unique in an area chart.
  1513. name_key: The key or getter of a group of data which should be unique in a LineChart.
  1514. legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered.
  1515. is_animation_active: If set false, animation of line will be disabled.
  1516. animation_begin: Specifies when the animation should begin, the unit of this option is ms.
  1517. animation_duration: Specifies the duration of animation, the unit of this option is ms.
  1518. animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'
  1519. stroke: stroke color
  1520. style: The style of the component.
  1521. key: A unique key for the component.
  1522. id: The id for the component.
  1523. class_name: The class name for the component.
  1524. autofocus: Whether the component should take the focus once the page is loaded
  1525. custom_attrs: custom attribute
  1526. **props: The props of the component.
  1527. Returns:
  1528. The component.
  1529. """
  1530. ...
  1531. class ErrorBar(Recharts):
  1532. @overload
  1533. @classmethod
  1534. def create( # type: ignore
  1535. cls,
  1536. *children,
  1537. direction: Optional[
  1538. Union[Literal["both", "x", "y"], Var[Literal["both", "x", "y"]]]
  1539. ] = None,
  1540. data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1541. width: Optional[Union[Var[int], int]] = None,
  1542. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  1543. stroke_width: Optional[Union[Var[int], int]] = None,
  1544. style: Optional[Style] = None,
  1545. key: Optional[Any] = None,
  1546. id: Optional[Any] = None,
  1547. class_name: Optional[Any] = None,
  1548. autofocus: Optional[bool] = None,
  1549. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1550. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1551. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1552. on_context_menu: Optional[
  1553. Union[EventHandler, EventSpec, list, Callable, Var]
  1554. ] = None,
  1555. on_double_click: Optional[
  1556. Union[EventHandler, EventSpec, list, Callable, Var]
  1557. ] = None,
  1558. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1559. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1560. on_mouse_down: Optional[
  1561. Union[EventHandler, EventSpec, list, Callable, Var]
  1562. ] = None,
  1563. on_mouse_enter: Optional[
  1564. Union[EventHandler, EventSpec, list, Callable, Var]
  1565. ] = None,
  1566. on_mouse_leave: Optional[
  1567. Union[EventHandler, EventSpec, list, Callable, Var]
  1568. ] = None,
  1569. on_mouse_move: Optional[
  1570. Union[EventHandler, EventSpec, list, Callable, Var]
  1571. ] = None,
  1572. on_mouse_out: Optional[
  1573. Union[EventHandler, EventSpec, list, Callable, Var]
  1574. ] = None,
  1575. on_mouse_over: Optional[
  1576. Union[EventHandler, EventSpec, list, Callable, Var]
  1577. ] = None,
  1578. on_mouse_up: Optional[
  1579. Union[EventHandler, EventSpec, list, Callable, Var]
  1580. ] = None,
  1581. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1582. on_unmount: Optional[
  1583. Union[EventHandler, EventSpec, list, Callable, Var]
  1584. ] = None,
  1585. **props,
  1586. ) -> "ErrorBar":
  1587. """Create the component.
  1588. Args:
  1589. *children: The children of the component.
  1590. direction: The direction of error bar. 'x' | 'y' | 'both'
  1591. data_key: The key of a group of data which should be unique in an area chart.
  1592. width: The width of the error bar ends.
  1593. stroke: The stroke color of error bar.
  1594. stroke_width: The stroke width of error bar.
  1595. style: The style of the component.
  1596. key: A unique key for the component.
  1597. id: The id for the component.
  1598. class_name: The class name for the component.
  1599. autofocus: Whether the component should take the focus once the page is loaded
  1600. custom_attrs: custom attribute
  1601. **props: The props of the component.
  1602. Returns:
  1603. The component.
  1604. """
  1605. ...
  1606. class Reference(Recharts):
  1607. @overload
  1608. @classmethod
  1609. def create( # type: ignore
  1610. cls,
  1611. *children,
  1612. x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1613. y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1614. if_overflow: Optional[
  1615. Union[
  1616. Literal["discard", "extendDomain", "hidden", "visible"],
  1617. Var[Literal["discard", "extendDomain", "hidden", "visible"]],
  1618. ]
  1619. ] = None,
  1620. label: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1621. is_front: Optional[Union[Var[bool], bool]] = None,
  1622. style: Optional[Style] = None,
  1623. key: Optional[Any] = None,
  1624. id: Optional[Any] = None,
  1625. class_name: Optional[Any] = None,
  1626. autofocus: Optional[bool] = None,
  1627. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1628. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1629. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1630. on_context_menu: Optional[
  1631. Union[EventHandler, EventSpec, list, Callable, Var]
  1632. ] = None,
  1633. on_double_click: Optional[
  1634. Union[EventHandler, EventSpec, list, Callable, Var]
  1635. ] = None,
  1636. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1637. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1638. on_mouse_down: Optional[
  1639. Union[EventHandler, EventSpec, list, Callable, Var]
  1640. ] = None,
  1641. on_mouse_enter: Optional[
  1642. Union[EventHandler, EventSpec, list, Callable, Var]
  1643. ] = None,
  1644. on_mouse_leave: Optional[
  1645. Union[EventHandler, EventSpec, list, Callable, Var]
  1646. ] = None,
  1647. on_mouse_move: Optional[
  1648. Union[EventHandler, EventSpec, list, Callable, Var]
  1649. ] = None,
  1650. on_mouse_out: Optional[
  1651. Union[EventHandler, EventSpec, list, Callable, Var]
  1652. ] = None,
  1653. on_mouse_over: Optional[
  1654. Union[EventHandler, EventSpec, list, Callable, Var]
  1655. ] = None,
  1656. on_mouse_up: Optional[
  1657. Union[EventHandler, EventSpec, list, Callable, Var]
  1658. ] = None,
  1659. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1660. on_unmount: Optional[
  1661. Union[EventHandler, EventSpec, list, Callable, Var]
  1662. ] = None,
  1663. **props,
  1664. ) -> "Reference":
  1665. """Create the component.
  1666. Args:
  1667. *children: The children of the component.
  1668. x_axis_id: The id of x-axis which is corresponding to the data.
  1669. y_axis_id: The id of y-axis which is corresponding to the data.
  1670. 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.
  1671. label: If set a string or a number, default label will be drawn, and the option is content.
  1672. is_front: If set true, the line will be rendered in front of bars in BarChart, etc.
  1673. style: The style of the component.
  1674. key: A unique key for the component.
  1675. id: The id for the component.
  1676. class_name: The class name for the component.
  1677. autofocus: Whether the component should take the focus once the page is loaded
  1678. custom_attrs: custom attribute
  1679. **props: The props of the component.
  1680. Returns:
  1681. The component.
  1682. """
  1683. ...
  1684. class ReferenceLine(Reference):
  1685. @overload
  1686. @classmethod
  1687. def create( # type: ignore
  1688. cls,
  1689. *children,
  1690. x: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1691. y: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1692. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  1693. stroke_width: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1694. segment: Optional[List[Any]] = None,
  1695. x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1696. y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1697. if_overflow: Optional[
  1698. Union[
  1699. Literal["discard", "extendDomain", "hidden", "visible"],
  1700. Var[Literal["discard", "extendDomain", "hidden", "visible"]],
  1701. ]
  1702. ] = None,
  1703. label: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1704. is_front: Optional[Union[Var[bool], bool]] = None,
  1705. style: Optional[Style] = None,
  1706. key: Optional[Any] = None,
  1707. id: Optional[Any] = None,
  1708. class_name: Optional[Any] = None,
  1709. autofocus: Optional[bool] = None,
  1710. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1711. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1712. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1713. on_context_menu: Optional[
  1714. Union[EventHandler, EventSpec, list, Callable, Var]
  1715. ] = None,
  1716. on_double_click: Optional[
  1717. Union[EventHandler, EventSpec, list, Callable, Var]
  1718. ] = None,
  1719. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1720. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1721. on_mouse_down: Optional[
  1722. Union[EventHandler, EventSpec, list, Callable, Var]
  1723. ] = None,
  1724. on_mouse_enter: Optional[
  1725. Union[EventHandler, EventSpec, list, Callable, Var]
  1726. ] = None,
  1727. on_mouse_leave: Optional[
  1728. Union[EventHandler, EventSpec, list, Callable, Var]
  1729. ] = None,
  1730. on_mouse_move: Optional[
  1731. Union[EventHandler, EventSpec, list, Callable, Var]
  1732. ] = None,
  1733. on_mouse_out: Optional[
  1734. Union[EventHandler, EventSpec, list, Callable, Var]
  1735. ] = None,
  1736. on_mouse_over: Optional[
  1737. Union[EventHandler, EventSpec, list, Callable, Var]
  1738. ] = None,
  1739. on_mouse_up: Optional[
  1740. Union[EventHandler, EventSpec, list, Callable, Var]
  1741. ] = None,
  1742. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1743. on_unmount: Optional[
  1744. Union[EventHandler, EventSpec, list, Callable, Var]
  1745. ] = None,
  1746. **props,
  1747. ) -> "ReferenceLine":
  1748. """Create the component.
  1749. Args:
  1750. *children: The children of the component.
  1751. 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.
  1752. 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.
  1753. stroke: The color of the reference line.
  1754. stroke_width: The width of the stroke.
  1755. segment: Array of endpoints in { x, y } format. These endpoints would be used to draw the ReferenceLine.
  1756. x_axis_id: The id of x-axis which is corresponding to the data.
  1757. y_axis_id: The id of y-axis which is corresponding to the data.
  1758. 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.
  1759. label: If set a string or a number, default label will be drawn, and the option is content.
  1760. is_front: If set true, the line will be rendered in front of bars in BarChart, etc.
  1761. style: The style of the component.
  1762. key: A unique key for the component.
  1763. id: The id for the component.
  1764. class_name: The class name for the component.
  1765. autofocus: Whether the component should take the focus once the page is loaded
  1766. custom_attrs: custom attribute
  1767. **props: The props of the component.
  1768. Returns:
  1769. The component.
  1770. """
  1771. ...
  1772. class ReferenceDot(Reference):
  1773. @overload
  1774. @classmethod
  1775. def create( # type: ignore
  1776. cls,
  1777. *children,
  1778. x: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1779. y: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1780. r: Optional[Union[Var[int], int]] = None,
  1781. fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  1782. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  1783. x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1784. y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1785. if_overflow: Optional[
  1786. Union[
  1787. Literal["discard", "extendDomain", "hidden", "visible"],
  1788. Var[Literal["discard", "extendDomain", "hidden", "visible"]],
  1789. ]
  1790. ] = None,
  1791. label: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1792. is_front: Optional[Union[Var[bool], bool]] = None,
  1793. style: Optional[Style] = None,
  1794. key: Optional[Any] = None,
  1795. id: Optional[Any] = None,
  1796. class_name: Optional[Any] = None,
  1797. autofocus: Optional[bool] = None,
  1798. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1799. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1800. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1801. on_context_menu: Optional[
  1802. Union[EventHandler, EventSpec, list, Callable, Var]
  1803. ] = None,
  1804. on_double_click: Optional[
  1805. Union[EventHandler, EventSpec, list, Callable, Var]
  1806. ] = None,
  1807. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1808. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1809. on_mouse_down: Optional[
  1810. Union[EventHandler, EventSpec, list, Callable, Var]
  1811. ] = None,
  1812. on_mouse_enter: Optional[
  1813. Union[EventHandler, EventSpec, list, Callable, Var]
  1814. ] = None,
  1815. on_mouse_leave: Optional[
  1816. Union[EventHandler, EventSpec, list, Callable, Var]
  1817. ] = None,
  1818. on_mouse_move: Optional[
  1819. Union[EventHandler, EventSpec, list, Callable, Var]
  1820. ] = None,
  1821. on_mouse_out: Optional[
  1822. Union[EventHandler, EventSpec, list, Callable, Var]
  1823. ] = None,
  1824. on_mouse_over: Optional[
  1825. Union[EventHandler, EventSpec, list, Callable, Var]
  1826. ] = None,
  1827. on_mouse_up: Optional[
  1828. Union[EventHandler, EventSpec, list, Callable, Var]
  1829. ] = None,
  1830. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1831. on_unmount: Optional[
  1832. Union[EventHandler, EventSpec, list, Callable, Var]
  1833. ] = None,
  1834. **props,
  1835. ) -> "ReferenceDot":
  1836. """Create the component.
  1837. Args:
  1838. *children: The children of the component.
  1839. 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.
  1840. 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.
  1841. r: The radius of dot.
  1842. fill: The color of the area fill.
  1843. stroke: The color of the line stroke.
  1844. x_axis_id: The id of x-axis which is corresponding to the data.
  1845. y_axis_id: The id of y-axis which is corresponding to the data.
  1846. 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.
  1847. label: If set a string or a number, default label will be drawn, and the option is content.
  1848. is_front: If set true, the line will be rendered in front of bars in BarChart, etc.
  1849. style: The style of the component.
  1850. key: A unique key for the component.
  1851. id: The id for the component.
  1852. class_name: The class name for the component.
  1853. autofocus: Whether the component should take the focus once the page is loaded
  1854. custom_attrs: custom attribute
  1855. **props: The props of the component.
  1856. Returns:
  1857. The component.
  1858. """
  1859. ...
  1860. class ReferenceArea(Recharts):
  1861. @overload
  1862. @classmethod
  1863. def create( # type: ignore
  1864. cls,
  1865. *children,
  1866. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  1867. fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  1868. fill_opacity: Optional[Union[Var[float], float]] = None,
  1869. x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1870. y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1871. x1: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1872. x2: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1873. y1: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1874. y2: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1875. if_overflow: Optional[
  1876. Union[
  1877. Literal["discard", "extendDomain", "hidden", "visible"],
  1878. Var[Literal["discard", "extendDomain", "hidden", "visible"]],
  1879. ]
  1880. ] = None,
  1881. is_front: Optional[Union[Var[bool], bool]] = None,
  1882. style: Optional[Style] = None,
  1883. key: Optional[Any] = None,
  1884. id: Optional[Any] = None,
  1885. class_name: Optional[Any] = None,
  1886. autofocus: Optional[bool] = None,
  1887. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1888. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1889. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1890. on_context_menu: Optional[
  1891. Union[EventHandler, EventSpec, list, Callable, Var]
  1892. ] = None,
  1893. on_double_click: Optional[
  1894. Union[EventHandler, EventSpec, list, Callable, Var]
  1895. ] = None,
  1896. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1897. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1898. on_mouse_down: Optional[
  1899. Union[EventHandler, EventSpec, list, Callable, Var]
  1900. ] = None,
  1901. on_mouse_enter: Optional[
  1902. Union[EventHandler, EventSpec, list, Callable, Var]
  1903. ] = None,
  1904. on_mouse_leave: Optional[
  1905. Union[EventHandler, EventSpec, list, Callable, Var]
  1906. ] = None,
  1907. on_mouse_move: Optional[
  1908. Union[EventHandler, EventSpec, list, Callable, Var]
  1909. ] = None,
  1910. on_mouse_out: Optional[
  1911. Union[EventHandler, EventSpec, list, Callable, Var]
  1912. ] = None,
  1913. on_mouse_over: Optional[
  1914. Union[EventHandler, EventSpec, list, Callable, Var]
  1915. ] = None,
  1916. on_mouse_up: Optional[
  1917. Union[EventHandler, EventSpec, list, Callable, Var]
  1918. ] = None,
  1919. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1920. on_unmount: Optional[
  1921. Union[EventHandler, EventSpec, list, Callable, Var]
  1922. ] = None,
  1923. **props,
  1924. ) -> "ReferenceArea":
  1925. """Create the component.
  1926. Args:
  1927. *children: The children of the component.
  1928. stroke: Stroke color
  1929. fill: Fill color
  1930. fill_opacity: The opacity of area.
  1931. x_axis_id: The id of x-axis which is corresponding to the data.
  1932. y_axis_id: The id of y-axis which is corresponding to the data.
  1933. 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.
  1934. 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.
  1935. 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.
  1936. 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.
  1937. 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.
  1938. is_front: If set true, the line will be rendered in front of bars in BarChart, etc.
  1939. style: The style of the component.
  1940. key: A unique key for the component.
  1941. id: The id for the component.
  1942. class_name: The class name for the component.
  1943. autofocus: Whether the component should take the focus once the page is loaded
  1944. custom_attrs: custom attribute
  1945. **props: The props of the component.
  1946. Returns:
  1947. The component.
  1948. """
  1949. ...
  1950. class Grid(Recharts):
  1951. @overload
  1952. @classmethod
  1953. def create( # type: ignore
  1954. cls,
  1955. *children,
  1956. x: Optional[Union[Var[int], int]] = None,
  1957. y: Optional[Union[Var[int], int]] = None,
  1958. width: Optional[Union[Var[int], int]] = None,
  1959. height: Optional[Union[Var[int], int]] = None,
  1960. style: Optional[Style] = None,
  1961. key: Optional[Any] = None,
  1962. id: Optional[Any] = None,
  1963. class_name: Optional[Any] = None,
  1964. autofocus: Optional[bool] = None,
  1965. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1966. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1967. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1968. on_context_menu: Optional[
  1969. Union[EventHandler, EventSpec, list, Callable, Var]
  1970. ] = None,
  1971. on_double_click: Optional[
  1972. Union[EventHandler, EventSpec, list, Callable, Var]
  1973. ] = None,
  1974. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1975. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1976. on_mouse_down: Optional[
  1977. Union[EventHandler, EventSpec, list, Callable, Var]
  1978. ] = None,
  1979. on_mouse_enter: Optional[
  1980. Union[EventHandler, EventSpec, list, Callable, Var]
  1981. ] = None,
  1982. on_mouse_leave: Optional[
  1983. Union[EventHandler, EventSpec, list, Callable, Var]
  1984. ] = None,
  1985. on_mouse_move: Optional[
  1986. Union[EventHandler, EventSpec, list, Callable, Var]
  1987. ] = None,
  1988. on_mouse_out: Optional[
  1989. Union[EventHandler, EventSpec, list, Callable, Var]
  1990. ] = None,
  1991. on_mouse_over: Optional[
  1992. Union[EventHandler, EventSpec, list, Callable, Var]
  1993. ] = None,
  1994. on_mouse_up: Optional[
  1995. Union[EventHandler, EventSpec, list, Callable, Var]
  1996. ] = None,
  1997. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  1998. on_unmount: Optional[
  1999. Union[EventHandler, EventSpec, list, Callable, Var]
  2000. ] = None,
  2001. **props,
  2002. ) -> "Grid":
  2003. """Create the component.
  2004. Args:
  2005. *children: The children of the component.
  2006. x: The x-coordinate of grid.
  2007. y: The y-coordinate of grid.
  2008. width: The width of grid.
  2009. height: The height of grid.
  2010. style: The style of the component.
  2011. key: A unique key for the component.
  2012. id: The id for the component.
  2013. class_name: The class name for the component.
  2014. autofocus: Whether the component should take the focus once the page is loaded
  2015. custom_attrs: custom attribute
  2016. **props: The props of the component.
  2017. Returns:
  2018. The component.
  2019. """
  2020. ...
  2021. class CartesianGrid(Grid):
  2022. @overload
  2023. @classmethod
  2024. def create( # type: ignore
  2025. cls,
  2026. *children,
  2027. horizontal: Optional[Union[Var[bool], bool]] = None,
  2028. vertical: Optional[Union[Var[bool], bool]] = None,
  2029. vertical_points: Optional[
  2030. Union[List[Union[int, str]], Var[List[Union[int, str]]]]
  2031. ] = None,
  2032. horizontal_points: Optional[
  2033. Union[List[Union[int, str]], Var[List[Union[int, str]]]]
  2034. ] = None,
  2035. fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  2036. fill_opacity: Optional[Union[Var[float], float]] = None,
  2037. stroke_dasharray: Optional[Union[Var[str], str]] = None,
  2038. stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
  2039. x: Optional[Union[Var[int], int]] = None,
  2040. y: Optional[Union[Var[int], int]] = None,
  2041. width: Optional[Union[Var[int], int]] = None,
  2042. height: Optional[Union[Var[int], int]] = None,
  2043. style: Optional[Style] = None,
  2044. key: Optional[Any] = None,
  2045. id: Optional[Any] = None,
  2046. class_name: Optional[Any] = None,
  2047. autofocus: Optional[bool] = None,
  2048. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  2049. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  2050. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  2051. on_context_menu: Optional[
  2052. Union[EventHandler, EventSpec, list, Callable, Var]
  2053. ] = None,
  2054. on_double_click: Optional[
  2055. Union[EventHandler, EventSpec, list, Callable, Var]
  2056. ] = None,
  2057. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  2058. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  2059. on_mouse_down: Optional[
  2060. Union[EventHandler, EventSpec, list, Callable, Var]
  2061. ] = None,
  2062. on_mouse_enter: Optional[
  2063. Union[EventHandler, EventSpec, list, Callable, Var]
  2064. ] = None,
  2065. on_mouse_leave: Optional[
  2066. Union[EventHandler, EventSpec, list, Callable, Var]
  2067. ] = None,
  2068. on_mouse_move: Optional[
  2069. Union[EventHandler, EventSpec, list, Callable, Var]
  2070. ] = None,
  2071. on_mouse_out: Optional[
  2072. Union[EventHandler, EventSpec, list, Callable, Var]
  2073. ] = None,
  2074. on_mouse_over: Optional[
  2075. Union[EventHandler, EventSpec, list, Callable, Var]
  2076. ] = None,
  2077. on_mouse_up: Optional[
  2078. Union[EventHandler, EventSpec, list, Callable, Var]
  2079. ] = None,
  2080. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  2081. on_unmount: Optional[
  2082. Union[EventHandler, EventSpec, list, Callable, Var]
  2083. ] = None,
  2084. **props,
  2085. ) -> "CartesianGrid":
  2086. """Create the component.
  2087. Args:
  2088. *children: The children of the component.
  2089. horizontal: The horizontal line configuration.
  2090. vertical: The vertical line configuration.
  2091. vertical_points: The x-coordinates in pixel values of all vertical lines.
  2092. horizontal_points: The x-coordinates in pixel values of all vertical lines.
  2093. fill: The background of grid.
  2094. fill_opacity: The opacity of the background used to fill the space between grid lines
  2095. stroke_dasharray: The pattern of dashes and gaps used to paint the lines of the grid
  2096. stroke: the stroke color of grid
  2097. x: The x-coordinate of grid.
  2098. y: The y-coordinate of grid.
  2099. width: The width of grid.
  2100. height: The height of grid.
  2101. style: The style of the component.
  2102. key: A unique key for the component.
  2103. id: The id for the component.
  2104. class_name: The class name for the component.
  2105. autofocus: Whether the component should take the focus once the page is loaded
  2106. custom_attrs: custom attribute
  2107. **props: The props of the component.
  2108. Returns:
  2109. The component.
  2110. """
  2111. ...
  2112. class CartesianAxis(Grid):
  2113. @overload
  2114. @classmethod
  2115. def create( # type: ignore
  2116. cls,
  2117. *children,
  2118. orientation: Optional[
  2119. Union[
  2120. Literal["bottom", "left", "right", "top"],
  2121. Var[Literal["bottom", "left", "right", "top"]],
  2122. ]
  2123. ] = None,
  2124. view_box: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
  2125. axis_line: Optional[Union[Var[bool], bool]] = None,
  2126. tick: Optional[Union[Var[bool], bool]] = None,
  2127. tick_line: Optional[Union[Var[bool], bool]] = None,
  2128. tick_size: Optional[Union[Var[int], int]] = None,
  2129. interval: Optional[
  2130. Union[
  2131. Literal["preserveEnd", "preserveStart", "preserveStartEnd"],
  2132. Var[Literal["preserveEnd", "preserveStart", "preserveStartEnd"]],
  2133. ]
  2134. ] = None,
  2135. label: Optional[Union[Var[Union[int, str]], int, str]] = None,
  2136. mirror: Optional[Union[Var[bool], bool]] = None,
  2137. tick_margin: Optional[Union[Var[int], int]] = None,
  2138. x: Optional[Union[Var[int], int]] = None,
  2139. y: Optional[Union[Var[int], int]] = None,
  2140. width: Optional[Union[Var[int], int]] = None,
  2141. height: Optional[Union[Var[int], int]] = None,
  2142. style: Optional[Style] = None,
  2143. key: Optional[Any] = None,
  2144. id: Optional[Any] = None,
  2145. class_name: Optional[Any] = None,
  2146. autofocus: Optional[bool] = None,
  2147. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  2148. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  2149. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  2150. on_context_menu: Optional[
  2151. Union[EventHandler, EventSpec, list, Callable, Var]
  2152. ] = None,
  2153. on_double_click: Optional[
  2154. Union[EventHandler, EventSpec, list, Callable, Var]
  2155. ] = None,
  2156. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  2157. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  2158. on_mouse_down: Optional[
  2159. Union[EventHandler, EventSpec, list, Callable, Var]
  2160. ] = None,
  2161. on_mouse_enter: Optional[
  2162. Union[EventHandler, EventSpec, list, Callable, Var]
  2163. ] = None,
  2164. on_mouse_leave: Optional[
  2165. Union[EventHandler, EventSpec, list, Callable, Var]
  2166. ] = None,
  2167. on_mouse_move: Optional[
  2168. Union[EventHandler, EventSpec, list, Callable, Var]
  2169. ] = None,
  2170. on_mouse_out: Optional[
  2171. Union[EventHandler, EventSpec, list, Callable, Var]
  2172. ] = None,
  2173. on_mouse_over: Optional[
  2174. Union[EventHandler, EventSpec, list, Callable, Var]
  2175. ] = None,
  2176. on_mouse_up: Optional[
  2177. Union[EventHandler, EventSpec, list, Callable, Var]
  2178. ] = None,
  2179. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  2180. on_unmount: Optional[
  2181. Union[EventHandler, EventSpec, list, Callable, Var]
  2182. ] = None,
  2183. **props,
  2184. ) -> "CartesianAxis":
  2185. """Create the component.
  2186. Args:
  2187. *children: The children of the component.
  2188. orientation: The orientation of axis 'top' | 'bottom' | 'left' | 'right'. Default: "bottom"
  2189. view_box: The box of viewing area. Default: {"x": 0, "y": 0, "width": 0, "height": 0}
  2190. 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
  2191. tick: If set false, no ticks will be drawn.
  2192. 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
  2193. tick_size: The length of tick line. Default: 6
  2194. 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"
  2195. label: If set a string or a number, default label will be drawn, and the option is content.
  2196. mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. Default: False
  2197. tick_margin: The margin between tick line and tick.
  2198. x: The x-coordinate of grid.
  2199. y: The y-coordinate of grid.
  2200. width: The width of grid.
  2201. height: The height of grid.
  2202. style: The style of the component.
  2203. key: A unique key for the component.
  2204. id: The id for the component.
  2205. class_name: The class name for the component.
  2206. autofocus: Whether the component should take the focus once the page is loaded
  2207. custom_attrs: custom attribute
  2208. **props: The props of the component.
  2209. Returns:
  2210. The component.
  2211. """
  2212. ...
  2213. area = Area.create
  2214. bar = Bar.create
  2215. line = Line.create
  2216. scatter = Scatter.create
  2217. x_axis = XAxis.create
  2218. y_axis = YAxis.create
  2219. z_axis = ZAxis.create
  2220. brush = Brush.create
  2221. cartesian_axis = CartesianAxis.create
  2222. cartesian_grid = CartesianGrid.create
  2223. reference_line = ReferenceLine.create
  2224. reference_dot = ReferenceDot.create
  2225. reference_area = ReferenceArea.create
  2226. error_bar = ErrorBar.create
  2227. funnel = Funnel.create