polar.pyi 27 KB

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