cartesian.pyi 104 KB

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