cartesian.pyi 106 KB

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