general.pyi 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. """Stub file for reflex/components/recharts/general.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Callable, Dict, Literal, Optional, Union, overload
  6. from reflex.components.component import MemoizationLeaf
  7. from reflex.constants.colors import Color
  8. from reflex.event import EventHandler, EventSpec
  9. from reflex.style import Style
  10. from reflex.vars import BaseVar, Var
  11. from .recharts import (
  12. Recharts,
  13. )
  14. class ResponsiveContainer(Recharts, MemoizationLeaf):
  15. @overload
  16. @classmethod
  17. def create( # type: ignore
  18. cls,
  19. *children,
  20. aspect: Optional[Union[Var[int], int]] = None,
  21. width: Optional[Union[Var[Union[int, str]], int, str]] = None,
  22. height: Optional[Union[Var[Union[int, str]], int, str]] = None,
  23. min_width: Optional[Union[Var[int], int]] = None,
  24. min_height: Optional[Union[Var[int], int]] = None,
  25. debounce: Optional[Union[Var[int], int]] = None,
  26. style: Optional[Style] = None,
  27. key: Optional[Any] = None,
  28. id: Optional[Any] = None,
  29. class_name: Optional[Any] = None,
  30. autofocus: Optional[bool] = None,
  31. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  32. on_blur: Optional[
  33. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  34. ] = None,
  35. on_click: Optional[
  36. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  37. ] = None,
  38. on_context_menu: Optional[
  39. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  40. ] = None,
  41. on_double_click: Optional[
  42. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  43. ] = None,
  44. on_focus: Optional[
  45. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  46. ] = None,
  47. on_mount: Optional[
  48. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  49. ] = None,
  50. on_mouse_down: Optional[
  51. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  52. ] = None,
  53. on_mouse_enter: Optional[
  54. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  55. ] = None,
  56. on_mouse_leave: Optional[
  57. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  58. ] = None,
  59. on_mouse_move: Optional[
  60. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  61. ] = None,
  62. on_mouse_out: Optional[
  63. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  64. ] = None,
  65. on_mouse_over: Optional[
  66. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  67. ] = None,
  68. on_mouse_up: Optional[
  69. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  70. ] = None,
  71. on_scroll: Optional[
  72. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  73. ] = None,
  74. on_unmount: Optional[
  75. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  76. ] = None,
  77. **props,
  78. ) -> "ResponsiveContainer":
  79. """Create a new memoization leaf component.
  80. Args:
  81. *children: The children of the component.
  82. aspect: The aspect ratio of the container. The final aspect ratio of the SVG element will be (width / height) * aspect. Number
  83. width: The width of chart container. Can be a number or string
  84. height: The height of chart container. Number
  85. min_width: The minimum width of chart container.
  86. min_height: The minimum height of chart container. Number
  87. debounce: If specified a positive number, debounced function will be used to handle the resize event.
  88. style: The style of the component.
  89. key: A unique key for the component.
  90. id: The id for the component.
  91. class_name: The class name for the component.
  92. autofocus: Whether the component should take the focus once the page is loaded
  93. custom_attrs: custom attribute
  94. **props: The props of the component.
  95. Returns:
  96. The memoization leaf
  97. """
  98. ...
  99. class Legend(Recharts):
  100. @overload
  101. @classmethod
  102. def create( # type: ignore
  103. cls,
  104. *children,
  105. width: Optional[Union[Var[int], int]] = None,
  106. height: Optional[Union[Var[int], int]] = None,
  107. layout: Optional[
  108. Union[
  109. Var[Literal["horizontal", "vertical"]],
  110. Literal["horizontal", "vertical"],
  111. ]
  112. ] = None,
  113. align: Optional[
  114. Union[
  115. Var[Literal["left", "center", "right"]],
  116. Literal["left", "center", "right"],
  117. ]
  118. ] = None,
  119. vertical_align: Optional[
  120. Union[
  121. Var[Literal["top", "middle", "bottom"]],
  122. Literal["top", "middle", "bottom"],
  123. ]
  124. ] = None,
  125. icon_size: Optional[Union[Var[int], int]] = None,
  126. icon_type: Optional[
  127. Union[
  128. Var[
  129. Literal[
  130. "line",
  131. "plainline",
  132. "square",
  133. "rect",
  134. "circle",
  135. "cross",
  136. "diamond",
  137. "star",
  138. "triangle",
  139. "wye",
  140. ]
  141. ],
  142. Literal[
  143. "line",
  144. "plainline",
  145. "square",
  146. "rect",
  147. "circle",
  148. "cross",
  149. "diamond",
  150. "star",
  151. "triangle",
  152. "wye",
  153. ],
  154. ]
  155. ] = None,
  156. chart_width: Optional[Union[Var[int], int]] = None,
  157. chart_height: Optional[Union[Var[int], int]] = None,
  158. margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  159. style: Optional[Style] = None,
  160. key: Optional[Any] = None,
  161. id: Optional[Any] = None,
  162. class_name: Optional[Any] = None,
  163. autofocus: Optional[bool] = None,
  164. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  165. on_blur: Optional[
  166. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  167. ] = None,
  168. on_click: Optional[
  169. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  170. ] = None,
  171. on_context_menu: Optional[
  172. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  173. ] = None,
  174. on_double_click: Optional[
  175. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  176. ] = None,
  177. on_focus: Optional[
  178. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  179. ] = None,
  180. on_mount: Optional[
  181. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  182. ] = None,
  183. on_mouse_down: Optional[
  184. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  185. ] = None,
  186. on_mouse_enter: Optional[
  187. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  188. ] = None,
  189. on_mouse_leave: Optional[
  190. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  191. ] = None,
  192. on_mouse_move: Optional[
  193. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  194. ] = None,
  195. on_mouse_out: Optional[
  196. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  197. ] = None,
  198. on_mouse_over: Optional[
  199. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  200. ] = None,
  201. on_mouse_up: Optional[
  202. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  203. ] = None,
  204. on_scroll: Optional[
  205. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  206. ] = None,
  207. on_unmount: Optional[
  208. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  209. ] = None,
  210. **props,
  211. ) -> "Legend":
  212. """Create the component.
  213. Args:
  214. *children: The children of the component.
  215. width: The width of legend container. Number
  216. height: The height of legend container. Number
  217. layout: The layout of legend items. 'horizontal' | 'vertical'
  218. align: The alignment of legend items in 'horizontal' direction, which can be 'left', 'center', 'right'.
  219. vertical_align: The alignment of legend items in 'vertical' direction, which can be 'top', 'middle', 'bottom'.
  220. icon_size: The size of icon in each legend item.
  221. icon_type: The type of icon in each legend item. 'line' | 'plainline' | 'square' | 'rect' | 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye'
  222. chart_width: The width of chart container, usually calculated internally.
  223. chart_height: The height of chart container, usually calculated internally.
  224. margin: The margin of chart container, usually calculated internally.
  225. style: The style of the component.
  226. key: A unique key for the component.
  227. id: The id for the component.
  228. class_name: The class name for the component.
  229. autofocus: Whether the component should take the focus once the page is loaded
  230. custom_attrs: custom attribute
  231. **props: The props of the component.
  232. Returns:
  233. The component.
  234. """
  235. ...
  236. class GraphingTooltip(Recharts):
  237. @overload
  238. @classmethod
  239. def create( # type: ignore
  240. cls,
  241. *children,
  242. separator: Optional[Union[Var[str], str]] = None,
  243. offset: Optional[Union[Var[int], int]] = None,
  244. filter_null: Optional[Union[Var[bool], bool]] = None,
  245. cursor: Optional[
  246. Union[Var[Union[Dict[str, Any], bool]], Dict[str, Any], bool]
  247. ] = None,
  248. view_box: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  249. item_style: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  250. wrapper_style: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  251. content_style: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  252. label_style: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  253. allow_escape_view_box: Optional[
  254. Union[Var[Dict[str, bool]], Dict[str, bool]]
  255. ] = None,
  256. active: Optional[Union[Var[bool], bool]] = None,
  257. position: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  258. coordinate: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  259. is_animation_active: Optional[Union[Var[bool], bool]] = None,
  260. animation_duration: Optional[Union[Var[int], int]] = None,
  261. animation_easing: Optional[
  262. Union[
  263. Var[Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]],
  264. Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"],
  265. ]
  266. ] = None,
  267. style: Optional[Style] = None,
  268. key: Optional[Any] = None,
  269. id: Optional[Any] = None,
  270. class_name: Optional[Any] = None,
  271. autofocus: Optional[bool] = None,
  272. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  273. on_blur: Optional[
  274. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  275. ] = None,
  276. on_click: Optional[
  277. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  278. ] = None,
  279. on_context_menu: Optional[
  280. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  281. ] = None,
  282. on_double_click: Optional[
  283. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  284. ] = None,
  285. on_focus: Optional[
  286. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  287. ] = None,
  288. on_mount: Optional[
  289. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  290. ] = None,
  291. on_mouse_down: Optional[
  292. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  293. ] = None,
  294. on_mouse_enter: Optional[
  295. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  296. ] = None,
  297. on_mouse_leave: Optional[
  298. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  299. ] = None,
  300. on_mouse_move: Optional[
  301. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  302. ] = None,
  303. on_mouse_out: Optional[
  304. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  305. ] = None,
  306. on_mouse_over: Optional[
  307. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  308. ] = None,
  309. on_mouse_up: Optional[
  310. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  311. ] = None,
  312. on_scroll: Optional[
  313. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  314. ] = None,
  315. on_unmount: Optional[
  316. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  317. ] = None,
  318. **props,
  319. ) -> "GraphingTooltip":
  320. """Create the component.
  321. Args:
  322. *children: The children of the component.
  323. separator: The separator between name and value.
  324. offset: The offset size of tooltip. Number
  325. filter_null: When an item of the payload has value null or undefined, this item won't be displayed.
  326. cursor: If set false, no cursor will be drawn when tooltip is active.
  327. view_box: The box of viewing area, which has the shape of {x: someVal, y: someVal, width: someVal, height: someVal}, usually calculated internally.
  328. item_style: The style of default tooltip content item which is a li element. DEFAULT: {}
  329. wrapper_style: The style of tooltip wrapper which is a dom element. DEFAULT: {}
  330. content_style: The style of tooltip content which is a dom element. DEFAULT: {}
  331. label_style: The style of default tooltip label which is a p element. DEFAULT: {}
  332. allow_escape_view_box: This option allows the tooltip to extend beyond the viewBox of the chart itself. DEFAULT: { x: false, y: false }
  333. active: If set true, the tooltip is displayed. If set false, the tooltip is hidden, usually calculated internally.
  334. position: If this field is set, the tooltip position will be fixed and will not move anymore.
  335. coordinate: The coordinate of tooltip which is usually calculated internally.
  336. is_animation_active: If set false, animation of tooltip will be disabled. DEFAULT: true in CSR, and false in SSR
  337. animation_duration: Specifies the duration of animation, the unit of this option is ms. DEFAULT: 1500
  338. animation_easing: The type of easing function. DEFAULT: 'ease'
  339. style: The style of the component.
  340. key: A unique key for the component.
  341. id: The id for the component.
  342. class_name: The class name for the component.
  343. autofocus: Whether the component should take the focus once the page is loaded
  344. custom_attrs: custom attribute
  345. **props: The props of the component.
  346. Returns:
  347. The component.
  348. """
  349. ...
  350. class Label(Recharts):
  351. @overload
  352. @classmethod
  353. def create( # type: ignore
  354. cls,
  355. *children,
  356. view_box: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  357. value: Optional[Union[Var[str], str]] = None,
  358. offset: Optional[Union[Var[int], int]] = None,
  359. position: Optional[
  360. Union[
  361. Var[
  362. Literal[
  363. "top",
  364. "left",
  365. "right",
  366. "bottom",
  367. "inside",
  368. "outside",
  369. "insideLeft",
  370. "insideRight",
  371. "insideTop",
  372. "insideBottom",
  373. "insideTopLeft",
  374. "insideBottomLeft",
  375. "insideTopRight",
  376. "insideBottomRight",
  377. "insideStart",
  378. "insideEnd",
  379. "end",
  380. "center",
  381. ]
  382. ],
  383. Literal[
  384. "top",
  385. "left",
  386. "right",
  387. "bottom",
  388. "inside",
  389. "outside",
  390. "insideLeft",
  391. "insideRight",
  392. "insideTop",
  393. "insideBottom",
  394. "insideTopLeft",
  395. "insideBottomLeft",
  396. "insideTopRight",
  397. "insideBottomRight",
  398. "insideStart",
  399. "insideEnd",
  400. "end",
  401. "center",
  402. ],
  403. ]
  404. ] = None,
  405. style: Optional[Style] = None,
  406. key: Optional[Any] = None,
  407. id: Optional[Any] = None,
  408. class_name: Optional[Any] = None,
  409. autofocus: Optional[bool] = None,
  410. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  411. on_blur: Optional[
  412. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  413. ] = None,
  414. on_click: Optional[
  415. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  416. ] = None,
  417. on_context_menu: Optional[
  418. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  419. ] = None,
  420. on_double_click: Optional[
  421. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  422. ] = None,
  423. on_focus: Optional[
  424. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  425. ] = None,
  426. on_mount: Optional[
  427. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  428. ] = None,
  429. on_mouse_down: Optional[
  430. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  431. ] = None,
  432. on_mouse_enter: Optional[
  433. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  434. ] = None,
  435. on_mouse_leave: Optional[
  436. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  437. ] = None,
  438. on_mouse_move: Optional[
  439. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  440. ] = None,
  441. on_mouse_out: Optional[
  442. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  443. ] = None,
  444. on_mouse_over: Optional[
  445. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  446. ] = None,
  447. on_mouse_up: Optional[
  448. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  449. ] = None,
  450. on_scroll: Optional[
  451. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  452. ] = None,
  453. on_unmount: Optional[
  454. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  455. ] = None,
  456. **props,
  457. ) -> "Label":
  458. """Create the component.
  459. Args:
  460. *children: The children of the component.
  461. view_box: The box of viewing area, which has the shape of {x: someVal, y: someVal, width: someVal, height: someVal}, usually calculated internally.
  462. value: The value of label, which can be specified by this props or the children of <Label />
  463. offset: The offset of label which can be specified by this props or the children of <Label />
  464. position: The position of label which can be specified by this props or the children of <Label />
  465. style: The style of the component.
  466. key: A unique key for the component.
  467. id: The id for the component.
  468. class_name: The class name for the component.
  469. autofocus: Whether the component should take the focus once the page is loaded
  470. custom_attrs: custom attribute
  471. **props: The props of the component.
  472. Returns:
  473. The component.
  474. """
  475. ...
  476. class LabelList(Recharts):
  477. @overload
  478. @classmethod
  479. def create( # type: ignore
  480. cls,
  481. *children,
  482. data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
  483. position: Optional[
  484. Union[
  485. Var[
  486. Literal[
  487. "top",
  488. "left",
  489. "right",
  490. "bottom",
  491. "inside",
  492. "outside",
  493. "insideLeft",
  494. "insideRight",
  495. "insideTop",
  496. "insideBottom",
  497. "insideTopLeft",
  498. "insideBottomLeft",
  499. "insideTopRight",
  500. "insideBottomRight",
  501. "insideStart",
  502. "insideEnd",
  503. "end",
  504. "center",
  505. ]
  506. ],
  507. Literal[
  508. "top",
  509. "left",
  510. "right",
  511. "bottom",
  512. "inside",
  513. "outside",
  514. "insideLeft",
  515. "insideRight",
  516. "insideTop",
  517. "insideBottom",
  518. "insideTopLeft",
  519. "insideBottomLeft",
  520. "insideTopRight",
  521. "insideBottomRight",
  522. "insideStart",
  523. "insideEnd",
  524. "end",
  525. "center",
  526. ],
  527. ]
  528. ] = None,
  529. offset: Optional[Union[Var[int], int]] = None,
  530. fill: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
  531. stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
  532. style: Optional[Style] = None,
  533. key: Optional[Any] = None,
  534. id: Optional[Any] = None,
  535. class_name: Optional[Any] = None,
  536. autofocus: Optional[bool] = None,
  537. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  538. on_blur: Optional[
  539. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  540. ] = None,
  541. on_click: Optional[
  542. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  543. ] = None,
  544. on_context_menu: Optional[
  545. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  546. ] = None,
  547. on_double_click: Optional[
  548. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  549. ] = None,
  550. on_focus: Optional[
  551. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  552. ] = None,
  553. on_mount: Optional[
  554. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  555. ] = None,
  556. on_mouse_down: Optional[
  557. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  558. ] = None,
  559. on_mouse_enter: Optional[
  560. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  561. ] = None,
  562. on_mouse_leave: Optional[
  563. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  564. ] = None,
  565. on_mouse_move: Optional[
  566. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  567. ] = None,
  568. on_mouse_out: Optional[
  569. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  570. ] = None,
  571. on_mouse_over: Optional[
  572. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  573. ] = None,
  574. on_mouse_up: Optional[
  575. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  576. ] = None,
  577. on_scroll: Optional[
  578. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  579. ] = None,
  580. on_unmount: Optional[
  581. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  582. ] = None,
  583. **props,
  584. ) -> "LabelList":
  585. """Create the component.
  586. Args:
  587. *children: The children of the component.
  588. data_key: The key of a group of label values in data.
  589. position: The position of each label relative to it view box。"Top" | "left" | "right" | "bottom" | "inside" | "outside" | "insideLeft" | "insideRight" | "insideTop" | "insideBottom" | "insideTopLeft" | "insideBottomLeft" | "insideTopRight" | "insideBottomRight" | "insideStart" | "insideEnd" | "end" | "center"
  590. offset: The offset to the specified "position"
  591. fill: The fill color of each label
  592. stroke: The stroke color of each label
  593. style: The style of the component.
  594. key: A unique key for the component.
  595. id: The id for the component.
  596. class_name: The class name for the component.
  597. autofocus: Whether the component should take the focus once the page is loaded
  598. custom_attrs: custom attribute
  599. **props: The props of the component.
  600. Returns:
  601. The component.
  602. """
  603. ...
  604. responsive_container = ResponsiveContainer.create
  605. legend = Legend.create
  606. graphing_tooltip = GraphingTooltip.create
  607. label = Label.create
  608. label_list = LabelList.create