cartesian.pyi 99 KB

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