polar.pyi 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. """Stub file for reflex/components/graphing/recharts/polar.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `scripts/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.vars import Var, BaseVar, ComputedVar
  7. from reflex.event import EventChain, EventHandler, EventSpec
  8. from reflex.style import Style
  9. from typing import Any, Dict, List, Union
  10. from reflex.constants import EventTriggers
  11. from reflex.vars import Var
  12. from .recharts import (
  13. LiteralAnimationEasing,
  14. LiteralGridType,
  15. LiteralPolarRadiusType,
  16. LiteralScale,
  17. Recharts,
  18. )
  19. class Pie(Recharts):
  20. def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
  21. @overload
  22. @classmethod
  23. def create( # type: ignore
  24. cls,
  25. *children,
  26. data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
  27. data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
  28. cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  29. cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  30. inner_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  31. outer_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  32. start_angle: Optional[Union[Var[int], int]] = None,
  33. end_angle: Optional[Union[Var[int], int]] = None,
  34. min_angle: Optional[Union[Var[int], int]] = None,
  35. padding_angle: Optional[Union[Var[int], int]] = None,
  36. name_key: Optional[Union[Var[str], str]] = None,
  37. legend_type: Optional[Union[Var[str], str]] = None,
  38. label: Optional[Union[Var[bool], bool]] = None,
  39. label_line: Optional[Union[Var[bool], bool]] = None,
  40. fill: Optional[Union[Var[str], str]] = None,
  41. stroke: Optional[Union[Var[str], str]] = None,
  42. style: Optional[Style] = None,
  43. key: Optional[Any] = None,
  44. id: Optional[Any] = None,
  45. class_name: Optional[Any] = None,
  46. autofocus: Optional[bool] = None,
  47. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  48. on_click: Optional[
  49. Union[EventHandler, EventSpec, list, function, BaseVar]
  50. ] = None,
  51. on_mouse_enter: Optional[
  52. Union[EventHandler, EventSpec, list, function, BaseVar]
  53. ] = None,
  54. on_mouse_leave: Optional[
  55. Union[EventHandler, EventSpec, list, function, BaseVar]
  56. ] = None,
  57. on_mouse_move: Optional[
  58. Union[EventHandler, EventSpec, list, function, BaseVar]
  59. ] = None,
  60. on_mouse_out: Optional[
  61. Union[EventHandler, EventSpec, list, function, BaseVar]
  62. ] = None,
  63. on_mouse_over: Optional[
  64. Union[EventHandler, EventSpec, list, function, BaseVar]
  65. ] = None,
  66. **props
  67. ) -> "Pie":
  68. """Create the component.
  69. Args:
  70. *children: The children of the component.
  71. data: data
  72. data_key: The key of each sector's value.
  73. cx: The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width.
  74. cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height.
  75. inner_radius: The inner radius of pie, which can be set to a percent value.
  76. outer_radius: The outer radius of pie, which can be set to a percent value.
  77. start_angle: The angle of first sector.
  78. end_angle: The direction of sectors. 1 means clockwise and -1 means anticlockwise.
  79. min_angle: The minimum angle of each unzero data.
  80. padding_angle: The angle between two sectors.
  81. name_key: The key of each sector's name.
  82. legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered.
  83. label: If false set, labels will not be drawn.
  84. label_line: If false set, label lines will not be drawn.
  85. fill: fill color
  86. stroke: stroke color
  87. style: The style of the component.
  88. key: A unique key for the component.
  89. id: The id for the component.
  90. class_name: The class name for the component.
  91. autofocus: Whether the component should take the focus once the page is loaded
  92. custom_attrs: custom attribute
  93. **props: The props of the component.
  94. Returns:
  95. The component.
  96. Raises:
  97. TypeError: If an invalid child is passed.
  98. """
  99. ...
  100. class Radar(Recharts):
  101. @overload
  102. @classmethod
  103. def create( # type: ignore
  104. cls,
  105. *children,
  106. data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
  107. points: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
  108. dot: Optional[Union[Var[bool], bool]] = None,
  109. stroke: Optional[Union[Var[str], str]] = None,
  110. fill: Optional[Union[Var[str], str]] = None,
  111. fill_opacity: Optional[Union[Var[float], float]] = None,
  112. legend_type: Optional[Union[Var[str], str]] = None,
  113. label: Optional[Union[Var[bool], bool]] = None,
  114. animation_begin: Optional[Union[Var[int], int]] = None,
  115. animation_duration: Optional[Union[Var[int], int]] = None,
  116. animation_easing: Optional[
  117. Union[
  118. Var[Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]],
  119. Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"],
  120. ]
  121. ] = None,
  122. style: Optional[Style] = None,
  123. key: Optional[Any] = None,
  124. id: Optional[Any] = None,
  125. class_name: Optional[Any] = None,
  126. autofocus: Optional[bool] = None,
  127. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  128. on_blur: Optional[
  129. Union[EventHandler, EventSpec, list, function, BaseVar]
  130. ] = None,
  131. on_click: Optional[
  132. Union[EventHandler, EventSpec, list, function, BaseVar]
  133. ] = None,
  134. on_context_menu: Optional[
  135. Union[EventHandler, EventSpec, list, function, BaseVar]
  136. ] = None,
  137. on_double_click: Optional[
  138. Union[EventHandler, EventSpec, list, function, BaseVar]
  139. ] = None,
  140. on_focus: Optional[
  141. Union[EventHandler, EventSpec, list, function, BaseVar]
  142. ] = None,
  143. on_mount: Optional[
  144. Union[EventHandler, EventSpec, list, function, BaseVar]
  145. ] = None,
  146. on_mouse_down: Optional[
  147. Union[EventHandler, EventSpec, list, function, BaseVar]
  148. ] = None,
  149. on_mouse_enter: Optional[
  150. Union[EventHandler, EventSpec, list, function, BaseVar]
  151. ] = None,
  152. on_mouse_leave: Optional[
  153. Union[EventHandler, EventSpec, list, function, BaseVar]
  154. ] = None,
  155. on_mouse_move: Optional[
  156. Union[EventHandler, EventSpec, list, function, BaseVar]
  157. ] = None,
  158. on_mouse_out: Optional[
  159. Union[EventHandler, EventSpec, list, function, BaseVar]
  160. ] = None,
  161. on_mouse_over: Optional[
  162. Union[EventHandler, EventSpec, list, function, BaseVar]
  163. ] = None,
  164. on_mouse_up: Optional[
  165. Union[EventHandler, EventSpec, list, function, BaseVar]
  166. ] = None,
  167. on_scroll: Optional[
  168. Union[EventHandler, EventSpec, list, function, BaseVar]
  169. ] = None,
  170. on_unmount: Optional[
  171. Union[EventHandler, EventSpec, list, function, BaseVar]
  172. ] = None,
  173. **props
  174. ) -> "Radar":
  175. """Create the component.
  176. Args:
  177. *children: The children of the component.
  178. data_key: The key of a group of data which should be unique in a radar chart.
  179. points: The coordinates of all the vertexes of the radar shape, like [{ x, y }].
  180. dot: If false set, dots will not be drawn
  181. stroke: Stoke color
  182. fill: Fill color
  183. fill_opacity: opacity
  184. legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered.
  185. label: If false set, labels will not be drawn
  186. animation_begin: Specifies when the animation should begin, the unit of this option is ms.
  187. animation_duration: Specifies the duration of animation, the unit of this option is ms.
  188. animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'
  189. style: The style of the component.
  190. key: A unique key for the component.
  191. id: The id for the component.
  192. class_name: The class name for the component.
  193. autofocus: Whether the component should take the focus once the page is loaded
  194. custom_attrs: custom attribute
  195. **props: The props of the component.
  196. Returns:
  197. The component.
  198. Raises:
  199. TypeError: If an invalid child is passed.
  200. """
  201. ...
  202. class RadialBar(Recharts):
  203. def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
  204. @overload
  205. @classmethod
  206. def create( # type: ignore
  207. cls,
  208. *children,
  209. data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
  210. min_angle: Optional[Union[Var[int], int]] = None,
  211. legend_type: Optional[Union[Var[str], str]] = None,
  212. label: Optional[Union[Var[bool], bool]] = None,
  213. background: Optional[Union[Var[bool], bool]] = None,
  214. style: Optional[Style] = None,
  215. key: Optional[Any] = None,
  216. id: Optional[Any] = None,
  217. class_name: Optional[Any] = None,
  218. autofocus: Optional[bool] = None,
  219. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  220. on_click: Optional[
  221. Union[EventHandler, EventSpec, list, function, BaseVar]
  222. ] = None,
  223. on_mouse_enter: Optional[
  224. Union[EventHandler, EventSpec, list, function, BaseVar]
  225. ] = None,
  226. on_mouse_leave: Optional[
  227. Union[EventHandler, EventSpec, list, function, BaseVar]
  228. ] = None,
  229. on_mouse_move: Optional[
  230. Union[EventHandler, EventSpec, list, function, BaseVar]
  231. ] = None,
  232. on_mouse_out: Optional[
  233. Union[EventHandler, EventSpec, list, function, BaseVar]
  234. ] = None,
  235. on_mouse_over: Optional[
  236. Union[EventHandler, EventSpec, list, function, BaseVar]
  237. ] = None,
  238. **props
  239. ) -> "RadialBar":
  240. """Create the component.
  241. Args:
  242. *children: The children of the component.
  243. data: The source data which each element is an object.
  244. min_angle: Min angle of each bar. A positive value between 0 and 360.
  245. legend_type: Type of legend
  246. label: If false set, labels will not be drawn.
  247. background: If false set, background sector will not be drawn.
  248. style: The style of the component.
  249. key: A unique key for the component.
  250. id: The id for the component.
  251. class_name: The class name for the component.
  252. autofocus: Whether the component should take the focus once the page is loaded
  253. custom_attrs: custom attribute
  254. **props: The props of the component.
  255. Returns:
  256. The component.
  257. Raises:
  258. TypeError: If an invalid child is passed.
  259. """
  260. ...
  261. class PolarAngleAxis(Recharts):
  262. def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
  263. @overload
  264. @classmethod
  265. def create( # type: ignore
  266. cls,
  267. *children,
  268. data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
  269. cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  270. cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  271. radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  272. axis_line: Optional[
  273. Union[Var[Union[bool, Dict[str, Any]]], Union[bool, Dict[str, Any]]]
  274. ] = None,
  275. axis_line_type: Optional[Union[Var[str], str]] = None,
  276. tick_line: Optional[
  277. Union[Var[Union[bool, Dict[str, Any]]], Union[bool, Dict[str, Any]]]
  278. ] = None,
  279. tick: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  280. ticks: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
  281. orient: Optional[Union[Var[str], str]] = None,
  282. allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
  283. style: Optional[Style] = None,
  284. key: Optional[Any] = None,
  285. id: Optional[Any] = None,
  286. class_name: Optional[Any] = None,
  287. autofocus: Optional[bool] = None,
  288. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  289. on_click: Optional[
  290. Union[EventHandler, EventSpec, list, function, BaseVar]
  291. ] = None,
  292. on_mouse_enter: Optional[
  293. Union[EventHandler, EventSpec, list, function, BaseVar]
  294. ] = None,
  295. on_mouse_leave: Optional[
  296. Union[EventHandler, EventSpec, list, function, BaseVar]
  297. ] = None,
  298. on_mouse_move: Optional[
  299. Union[EventHandler, EventSpec, list, function, BaseVar]
  300. ] = None,
  301. on_mouse_out: Optional[
  302. Union[EventHandler, EventSpec, list, function, BaseVar]
  303. ] = None,
  304. on_mouse_over: Optional[
  305. Union[EventHandler, EventSpec, list, function, BaseVar]
  306. ] = None,
  307. **props
  308. ) -> "PolarAngleAxis":
  309. """Create the component.
  310. Args:
  311. *children: The children of the component.
  312. data_key: The key of a group of data which should be unique to show the meaning of angle axis.
  313. cx: The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width.
  314. cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height.
  315. radius: The outer radius of circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy.
  316. axis_line: If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option.
  317. axis_line_type: The type of axis line.
  318. tick_line: If false set, tick lines will not be drawn. If true set, tick lines will be drawn which have the props calculated internally. If object set, tick lines will be drawn which have the props mergered by the internal calculated props and the option.
  319. tick: The width or height of tick.
  320. ticks: The array of every tick's value and angle.
  321. orient: The orientation of axis text.
  322. allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category".
  323. style: The style of the component.
  324. key: A unique key for the component.
  325. id: The id for the component.
  326. class_name: The class name for the component.
  327. autofocus: Whether the component should take the focus once the page is loaded
  328. custom_attrs: custom attribute
  329. **props: The props of the component.
  330. Returns:
  331. The component.
  332. Raises:
  333. TypeError: If an invalid child is passed.
  334. """
  335. ...
  336. class PolarGrid(Recharts):
  337. @overload
  338. @classmethod
  339. def create( # type: ignore
  340. cls,
  341. *children,
  342. cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  343. cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  344. inner_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  345. outer_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  346. polar_angles: Optional[Union[Var[List[int]], List[int]]] = None,
  347. polar_radius: Optional[Union[Var[List[int]], List[int]]] = None,
  348. grid_type: Optional[
  349. Union[Var[Literal["polygon", "circle"]], Literal["polygon", "circle"]]
  350. ] = None,
  351. style: Optional[Style] = None,
  352. key: Optional[Any] = None,
  353. id: Optional[Any] = None,
  354. class_name: Optional[Any] = None,
  355. autofocus: Optional[bool] = None,
  356. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  357. on_blur: Optional[
  358. Union[EventHandler, EventSpec, list, function, BaseVar]
  359. ] = None,
  360. on_click: Optional[
  361. Union[EventHandler, EventSpec, list, function, BaseVar]
  362. ] = None,
  363. on_context_menu: Optional[
  364. Union[EventHandler, EventSpec, list, function, BaseVar]
  365. ] = None,
  366. on_double_click: Optional[
  367. Union[EventHandler, EventSpec, list, function, BaseVar]
  368. ] = None,
  369. on_focus: Optional[
  370. Union[EventHandler, EventSpec, list, function, BaseVar]
  371. ] = None,
  372. on_mount: Optional[
  373. Union[EventHandler, EventSpec, list, function, BaseVar]
  374. ] = None,
  375. on_mouse_down: Optional[
  376. Union[EventHandler, EventSpec, list, function, BaseVar]
  377. ] = None,
  378. on_mouse_enter: Optional[
  379. Union[EventHandler, EventSpec, list, function, BaseVar]
  380. ] = None,
  381. on_mouse_leave: Optional[
  382. Union[EventHandler, EventSpec, list, function, BaseVar]
  383. ] = None,
  384. on_mouse_move: Optional[
  385. Union[EventHandler, EventSpec, list, function, BaseVar]
  386. ] = None,
  387. on_mouse_out: Optional[
  388. Union[EventHandler, EventSpec, list, function, BaseVar]
  389. ] = None,
  390. on_mouse_over: Optional[
  391. Union[EventHandler, EventSpec, list, function, BaseVar]
  392. ] = None,
  393. on_mouse_up: Optional[
  394. Union[EventHandler, EventSpec, list, function, BaseVar]
  395. ] = None,
  396. on_scroll: Optional[
  397. Union[EventHandler, EventSpec, list, function, BaseVar]
  398. ] = None,
  399. on_unmount: Optional[
  400. Union[EventHandler, EventSpec, list, function, BaseVar]
  401. ] = None,
  402. **props
  403. ) -> "PolarGrid":
  404. """Create the component.
  405. Args:
  406. *children: The children of the component.
  407. cx: The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width.
  408. cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height.
  409. inner_radius: The radius of the inner polar grid.
  410. outer_radius: The radius of the outer polar grid.
  411. polar_angles: The array of every line grid's angle.
  412. polar_radius: The array of every line grid's radius.
  413. grid_type: The type of polar grids. 'polygon' | 'circle'
  414. style: The style of the component.
  415. key: A unique key for the component.
  416. id: The id for the component.
  417. class_name: The class name for the component.
  418. autofocus: Whether the component should take the focus once the page is loaded
  419. custom_attrs: custom attribute
  420. **props: The props of the component.
  421. Returns:
  422. The component.
  423. Raises:
  424. TypeError: If an invalid child is passed.
  425. """
  426. ...
  427. class PolarRadiusAxis(Recharts):
  428. def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
  429. @overload
  430. @classmethod
  431. def create( # type: ignore
  432. cls,
  433. *children,
  434. angle: Optional[Union[Var[int], int]] = None,
  435. type_: Optional[
  436. Union[Var[Literal["number", "category"]], Literal["number", "category"]]
  437. ] = None,
  438. allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
  439. cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  440. cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  441. reversed: Optional[Union[Var[bool], bool]] = None,
  442. orientation: Optional[Union[Var[str], str]] = None,
  443. axis_line: Optional[
  444. Union[Var[Union[bool, Dict[str, Any]]], Union[bool, Dict[str, Any]]]
  445. ] = None,
  446. tick: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
  447. tick_count: Optional[Union[Var[int], int]] = None,
  448. scale: Optional[
  449. Union[
  450. Var[
  451. Literal[
  452. "auto",
  453. "linear",
  454. "pow",
  455. "sqrt",
  456. "log",
  457. "identity",
  458. "time",
  459. "band",
  460. "point",
  461. "ordinal",
  462. "quantile",
  463. "quantize",
  464. "utc",
  465. "sequential",
  466. "threshold",
  467. ]
  468. ],
  469. Literal[
  470. "auto",
  471. "linear",
  472. "pow",
  473. "sqrt",
  474. "log",
  475. "identity",
  476. "time",
  477. "band",
  478. "point",
  479. "ordinal",
  480. "quantile",
  481. "quantize",
  482. "utc",
  483. "sequential",
  484. "threshold",
  485. ],
  486. ]
  487. ] = None,
  488. style: Optional[Style] = None,
  489. key: Optional[Any] = None,
  490. id: Optional[Any] = None,
  491. class_name: Optional[Any] = None,
  492. autofocus: Optional[bool] = None,
  493. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  494. on_click: Optional[
  495. Union[EventHandler, EventSpec, list, function, BaseVar]
  496. ] = None,
  497. on_mouse_enter: Optional[
  498. Union[EventHandler, EventSpec, list, function, BaseVar]
  499. ] = None,
  500. on_mouse_leave: Optional[
  501. Union[EventHandler, EventSpec, list, function, BaseVar]
  502. ] = None,
  503. on_mouse_move: Optional[
  504. Union[EventHandler, EventSpec, list, function, BaseVar]
  505. ] = None,
  506. on_mouse_out: Optional[
  507. Union[EventHandler, EventSpec, list, function, BaseVar]
  508. ] = None,
  509. on_mouse_over: Optional[
  510. Union[EventHandler, EventSpec, list, function, BaseVar]
  511. ] = None,
  512. **props
  513. ) -> "PolarRadiusAxis":
  514. """Create the component.
  515. Args:
  516. *children: The children of the component.
  517. angle: The angle of radial direction line to display axis text.
  518. type_: The type of axis line. 'number' | 'category'
  519. allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category".
  520. cx: The x-coordinate of center.
  521. cy: The y-coordinate of center.
  522. reversed: If set to true, the ticks of this axis are reversed.
  523. orientation: The orientation of axis text.
  524. axis_line: If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option.
  525. tick: The width or height of tick.
  526. tick_count: The count of ticks.
  527. scale: If 'auto' set, the scale funtion is linear scale. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold'
  528. style: The style of the component.
  529. key: A unique key for the component.
  530. id: The id for the component.
  531. class_name: The class name for the component.
  532. autofocus: Whether the component should take the focus once the page is loaded
  533. custom_attrs: custom attribute
  534. **props: The props of the component.
  535. Returns:
  536. The component.
  537. Raises:
  538. TypeError: If an invalid child is passed.
  539. """
  540. ...