general.pyi 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  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[Union[Var[bool], bool]] = None,
  246. view_box: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  247. item_style: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  248. wrapper_style: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  249. content_style: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  250. label_style: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  251. allow_escape_view_box: Optional[
  252. Union[Var[Dict[str, bool]], Dict[str, bool]]
  253. ] = None,
  254. active: Optional[Union[Var[bool], bool]] = None,
  255. position: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  256. coordinate: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  257. is_animation_active: Optional[Union[Var[bool], bool]] = None,
  258. animation_duration: Optional[Union[Var[int], int]] = None,
  259. animation_easing: Optional[
  260. Union[
  261. Var[Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]],
  262. Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"],
  263. ]
  264. ] = None,
  265. style: Optional[Style] = None,
  266. key: Optional[Any] = None,
  267. id: Optional[Any] = None,
  268. class_name: Optional[Any] = None,
  269. autofocus: Optional[bool] = None,
  270. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  271. on_blur: Optional[
  272. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  273. ] = None,
  274. on_click: Optional[
  275. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  276. ] = None,
  277. on_context_menu: Optional[
  278. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  279. ] = None,
  280. on_double_click: Optional[
  281. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  282. ] = None,
  283. on_focus: Optional[
  284. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  285. ] = None,
  286. on_mount: Optional[
  287. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  288. ] = None,
  289. on_mouse_down: Optional[
  290. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  291. ] = None,
  292. on_mouse_enter: Optional[
  293. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  294. ] = None,
  295. on_mouse_leave: Optional[
  296. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  297. ] = None,
  298. on_mouse_move: Optional[
  299. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  300. ] = None,
  301. on_mouse_out: Optional[
  302. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  303. ] = None,
  304. on_mouse_over: Optional[
  305. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  306. ] = None,
  307. on_mouse_up: Optional[
  308. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  309. ] = None,
  310. on_scroll: Optional[
  311. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  312. ] = None,
  313. on_unmount: Optional[
  314. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  315. ] = None,
  316. **props,
  317. ) -> "GraphingTooltip":
  318. """Create the component.
  319. Args:
  320. *children: The children of the component.
  321. separator: The separator between name and value.
  322. offset: The offset size of tooltip. Number
  323. filter_null: When an item of the payload has value null or undefined, this item won't be displayed.
  324. cursor: If set false, no cursor will be drawn when tooltip is active.
  325. view_box: The box of viewing area, which has the shape of {x: someVal, y: someVal, width: someVal, height: someVal}, usually calculated internally.
  326. item_style: The style of default tooltip content item which is a li element. DEFAULT: {}
  327. wrapper_style: The style of tooltip wrapper which is a dom element. DEFAULT: {}
  328. content_style: The style of tooltip content which is a dom element. DEFAULT: {}
  329. label_style: The style of default tooltip label which is a p element. DEFAULT: {}
  330. allow_escape_view_box: This option allows the tooltip to extend beyond the viewBox of the chart itself. DEFAULT: { x: false, y: false }
  331. active: If set true, the tooltip is displayed. If set false, the tooltip is hidden, usually calculated internally.
  332. position: If this field is set, the tooltip position will be fixed and will not move anymore.
  333. coordinate: The coordinate of tooltip which is usually calculated internally.
  334. is_animation_active: If set false, animation of tooltip will be disabled. DEFAULT: true in CSR, and false in SSR
  335. animation_duration: Specifies the duration of animation, the unit of this option is ms. DEFAULT: 1500
  336. animation_easing: The type of easing function. DEFAULT: 'ease'
  337. style: The style of the component.
  338. key: A unique key for the component.
  339. id: The id for the component.
  340. class_name: The class name for the component.
  341. autofocus: Whether the component should take the focus once the page is loaded
  342. custom_attrs: custom attribute
  343. **props: The props of the component.
  344. Returns:
  345. The component.
  346. """
  347. ...
  348. class Label(Recharts):
  349. @overload
  350. @classmethod
  351. def create( # type: ignore
  352. cls,
  353. *children,
  354. view_box: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
  355. value: Optional[Union[Var[str], str]] = None,
  356. offset: Optional[Union[Var[int], int]] = None,
  357. position: Optional[
  358. Union[
  359. Var[
  360. Literal[
  361. "top",
  362. "left",
  363. "right",
  364. "bottom",
  365. "inside",
  366. "outside",
  367. "insideLeft",
  368. "insideRight",
  369. "insideTop",
  370. "insideBottom",
  371. "insideTopLeft",
  372. "insideBottomLeft",
  373. "insideTopRight",
  374. "insideBottomRight",
  375. "insideStart",
  376. "insideEnd",
  377. "end",
  378. "center",
  379. ]
  380. ],
  381. Literal[
  382. "top",
  383. "left",
  384. "right",
  385. "bottom",
  386. "inside",
  387. "outside",
  388. "insideLeft",
  389. "insideRight",
  390. "insideTop",
  391. "insideBottom",
  392. "insideTopLeft",
  393. "insideBottomLeft",
  394. "insideTopRight",
  395. "insideBottomRight",
  396. "insideStart",
  397. "insideEnd",
  398. "end",
  399. "center",
  400. ],
  401. ]
  402. ] = None,
  403. style: Optional[Style] = None,
  404. key: Optional[Any] = None,
  405. id: Optional[Any] = None,
  406. class_name: Optional[Any] = None,
  407. autofocus: Optional[bool] = None,
  408. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  409. on_blur: Optional[
  410. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  411. ] = None,
  412. on_click: Optional[
  413. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  414. ] = None,
  415. on_context_menu: Optional[
  416. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  417. ] = None,
  418. on_double_click: Optional[
  419. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  420. ] = None,
  421. on_focus: Optional[
  422. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  423. ] = None,
  424. on_mount: Optional[
  425. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  426. ] = None,
  427. on_mouse_down: Optional[
  428. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  429. ] = None,
  430. on_mouse_enter: Optional[
  431. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  432. ] = None,
  433. on_mouse_leave: Optional[
  434. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  435. ] = None,
  436. on_mouse_move: Optional[
  437. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  438. ] = None,
  439. on_mouse_out: Optional[
  440. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  441. ] = None,
  442. on_mouse_over: Optional[
  443. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  444. ] = None,
  445. on_mouse_up: Optional[
  446. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  447. ] = None,
  448. on_scroll: Optional[
  449. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  450. ] = None,
  451. on_unmount: Optional[
  452. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  453. ] = None,
  454. **props,
  455. ) -> "Label":
  456. """Create the component.
  457. Args:
  458. *children: The children of the component.
  459. view_box: The box of viewing area, which has the shape of {x: someVal, y: someVal, width: someVal, height: someVal}, usually calculated internally.
  460. value: The value of label, which can be specified by this props or the children of <Label />
  461. offset: The offset of label which can be specified by this props or the children of <Label />
  462. position: The position of label which can be specified by this props or the children of <Label />
  463. style: The style of the component.
  464. key: A unique key for the component.
  465. id: The id for the component.
  466. class_name: The class name for the component.
  467. autofocus: Whether the component should take the focus once the page is loaded
  468. custom_attrs: custom attribute
  469. **props: The props of the component.
  470. Returns:
  471. The component.
  472. """
  473. ...
  474. class LabelList(Recharts):
  475. @overload
  476. @classmethod
  477. def create( # type: ignore
  478. cls,
  479. *children,
  480. data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
  481. position: Optional[
  482. Union[
  483. Var[
  484. Literal[
  485. "top",
  486. "left",
  487. "right",
  488. "bottom",
  489. "inside",
  490. "outside",
  491. "insideLeft",
  492. "insideRight",
  493. "insideTop",
  494. "insideBottom",
  495. "insideTopLeft",
  496. "insideBottomLeft",
  497. "insideTopRight",
  498. "insideBottomRight",
  499. "insideStart",
  500. "insideEnd",
  501. "end",
  502. "center",
  503. ]
  504. ],
  505. Literal[
  506. "top",
  507. "left",
  508. "right",
  509. "bottom",
  510. "inside",
  511. "outside",
  512. "insideLeft",
  513. "insideRight",
  514. "insideTop",
  515. "insideBottom",
  516. "insideTopLeft",
  517. "insideBottomLeft",
  518. "insideTopRight",
  519. "insideBottomRight",
  520. "insideStart",
  521. "insideEnd",
  522. "end",
  523. "center",
  524. ],
  525. ]
  526. ] = None,
  527. offset: Optional[Union[Var[int], int]] = None,
  528. stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
  529. fill: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
  530. style: Optional[Style] = None,
  531. key: Optional[Any] = None,
  532. id: Optional[Any] = None,
  533. class_name: Optional[Any] = None,
  534. autofocus: Optional[bool] = None,
  535. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  536. on_blur: Optional[
  537. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  538. ] = None,
  539. on_click: Optional[
  540. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  541. ] = None,
  542. on_context_menu: Optional[
  543. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  544. ] = None,
  545. on_double_click: Optional[
  546. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  547. ] = None,
  548. on_focus: Optional[
  549. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  550. ] = None,
  551. on_mount: Optional[
  552. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  553. ] = None,
  554. on_mouse_down: Optional[
  555. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  556. ] = None,
  557. on_mouse_enter: Optional[
  558. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  559. ] = None,
  560. on_mouse_leave: Optional[
  561. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  562. ] = None,
  563. on_mouse_move: Optional[
  564. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  565. ] = None,
  566. on_mouse_out: Optional[
  567. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  568. ] = None,
  569. on_mouse_over: Optional[
  570. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  571. ] = None,
  572. on_mouse_up: Optional[
  573. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  574. ] = None,
  575. on_scroll: Optional[
  576. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  577. ] = None,
  578. on_unmount: Optional[
  579. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  580. ] = None,
  581. **props,
  582. ) -> "LabelList":
  583. """Create the component.
  584. Args:
  585. *children: The children of the component.
  586. data_key: The key of a group of label values in data.
  587. 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"
  588. offset: The offset to the specified "position"
  589. stroke: The color of the line stroke.
  590. fill: The width of the line stroke.
  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. responsive_container = ResponsiveContainer.create
  603. legend = Legend.create
  604. graphing_tooltip = GraphingTooltip.create
  605. label = Label.create
  606. label_list = LabelList.create