reflex 0.6.2.post1__py3-none-any.whl → 0.6.3a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of reflex might be problematic. Click here for more details.

Files changed (177) hide show
  1. reflex/__init__.py +3 -2
  2. reflex/__init__.pyi +3 -1
  3. reflex/components/base/app_wrap.pyi +17 -37
  4. reflex/components/base/body.pyi +17 -37
  5. reflex/components/base/document.pyi +77 -177
  6. reflex/components/base/error_boundary.pyi +18 -38
  7. reflex/components/base/fragment.pyi +17 -37
  8. reflex/components/base/head.pyi +32 -72
  9. reflex/components/base/link.pyi +32 -72
  10. reflex/components/base/meta.pyi +62 -142
  11. reflex/components/base/script.py +4 -4
  12. reflex/components/base/script.pyi +20 -40
  13. reflex/components/component.py +12 -2
  14. reflex/components/core/banner.pyi +77 -177
  15. reflex/components/core/client_side_routing.pyi +32 -72
  16. reflex/components/core/clipboard.py +3 -3
  17. reflex/components/core/clipboard.pyi +18 -38
  18. reflex/components/core/debounce.py +2 -2
  19. reflex/components/core/debounce.pyi +18 -38
  20. reflex/components/core/html.pyi +17 -37
  21. reflex/components/core/upload.py +4 -5
  22. reflex/components/core/upload.pyi +65 -145
  23. reflex/components/datadisplay/code.pyi +32 -72
  24. reflex/components/datadisplay/dataeditor.py +13 -13
  25. reflex/components/datadisplay/dataeditor.pyi +33 -83
  26. reflex/components/dynamic.py +6 -7
  27. reflex/components/el/__init__.pyi +1 -0
  28. reflex/components/el/element.pyi +17 -37
  29. reflex/components/el/elements/base.pyi +17 -37
  30. reflex/components/el/elements/forms.py +29 -14
  31. reflex/components/el/elements/forms.pyi +222 -504
  32. reflex/components/el/elements/inline.pyi +422 -982
  33. reflex/components/el/elements/media.pyi +377 -877
  34. reflex/components/el/elements/metadata.pyi +92 -212
  35. reflex/components/el/elements/other.pyi +107 -247
  36. reflex/components/el/elements/scripts.pyi +47 -107
  37. reflex/components/el/elements/sectioning.pyi +227 -527
  38. reflex/components/el/elements/tables.pyi +152 -352
  39. reflex/components/el/elements/typography.pyi +227 -527
  40. reflex/components/gridjs/datatable.py +2 -2
  41. reflex/components/gridjs/datatable.pyi +32 -72
  42. reflex/components/lucide/icon.pyi +32 -72
  43. reflex/components/markdown/markdown.pyi +16 -36
  44. reflex/components/moment/moment.py +2 -2
  45. reflex/components/moment/moment.pyi +18 -38
  46. reflex/components/next/base.pyi +17 -37
  47. reflex/components/next/image.py +3 -3
  48. reflex/components/next/image.pyi +19 -39
  49. reflex/components/next/link.pyi +17 -37
  50. reflex/components/next/video.pyi +17 -37
  51. reflex/components/plotly/plotly.py +1 -1
  52. reflex/components/plotly/plotly.pyi +35 -87
  53. reflex/components/radix/primitives/accordion.py +14 -2
  54. reflex/components/radix/primitives/accordion.pyi +110 -250
  55. reflex/components/radix/primitives/base.pyi +32 -72
  56. reflex/components/radix/primitives/drawer.py +30 -12
  57. reflex/components/radix/primitives/drawer.pyi +159 -373
  58. reflex/components/radix/primitives/form.py +3 -3
  59. reflex/components/radix/primitives/form.pyi +158 -364
  60. reflex/components/radix/primitives/progress.pyi +77 -177
  61. reflex/components/radix/primitives/slider.py +17 -3
  62. reflex/components/radix/primitives/slider.pyi +81 -183
  63. reflex/components/radix/themes/base.pyi +107 -247
  64. reflex/components/radix/themes/color_mode.pyi +48 -117
  65. reflex/components/radix/themes/components/alert_dialog.py +5 -5
  66. reflex/components/radix/themes/components/alert_dialog.pyi +111 -259
  67. reflex/components/radix/themes/components/aspect_ratio.pyi +17 -37
  68. reflex/components/radix/themes/components/avatar.pyi +17 -37
  69. reflex/components/radix/themes/components/badge.pyi +17 -37
  70. reflex/components/radix/themes/components/button.pyi +17 -37
  71. reflex/components/radix/themes/components/callout.pyi +77 -177
  72. reflex/components/radix/themes/components/card.pyi +17 -37
  73. reflex/components/radix/themes/components/checkbox.py +3 -3
  74. reflex/components/radix/themes/components/checkbox.pyi +50 -110
  75. reflex/components/radix/themes/components/checkbox_cards.pyi +32 -72
  76. reflex/components/radix/themes/components/checkbox_group.pyi +32 -72
  77. reflex/components/radix/themes/components/context_menu.py +11 -11
  78. reflex/components/radix/themes/components/context_menu.pyi +132 -312
  79. reflex/components/radix/themes/components/data_list.pyi +62 -142
  80. reflex/components/radix/themes/components/dialog.py +7 -7
  81. reflex/components/radix/themes/components/dialog.pyi +114 -268
  82. reflex/components/radix/themes/components/dropdown_menu.py +13 -13
  83. reflex/components/radix/themes/components/dropdown_menu.pyi +134 -316
  84. reflex/components/radix/themes/components/hover_card.py +2 -2
  85. reflex/components/radix/themes/components/hover_card.pyi +64 -148
  86. reflex/components/radix/themes/components/icon_button.pyi +17 -37
  87. reflex/components/radix/themes/components/inset.pyi +17 -37
  88. reflex/components/radix/themes/components/popover.py +8 -8
  89. reflex/components/radix/themes/components/popover.pyi +69 -163
  90. reflex/components/radix/themes/components/progress.pyi +17 -37
  91. reflex/components/radix/themes/components/radio.pyi +17 -37
  92. reflex/components/radix/themes/components/radio_cards.py +2 -2
  93. reflex/components/radix/themes/components/radio_cards.pyi +33 -75
  94. reflex/components/radix/themes/components/radio_group.py +4 -4
  95. reflex/components/radix/themes/components/radio_group.pyi +63 -143
  96. reflex/components/radix/themes/components/scroll_area.pyi +17 -37
  97. reflex/components/radix/themes/components/segmented_control.py +14 -2
  98. reflex/components/radix/themes/components/segmented_control.pyi +35 -73
  99. reflex/components/radix/themes/components/select.py +6 -5
  100. reflex/components/radix/themes/components/select.pyi +146 -338
  101. reflex/components/radix/themes/components/separator.pyi +17 -37
  102. reflex/components/radix/themes/components/skeleton.pyi +17 -37
  103. reflex/components/radix/themes/components/slider.py +19 -3
  104. reflex/components/radix/themes/components/slider.pyi +23 -41
  105. reflex/components/radix/themes/components/spinner.pyi +17 -37
  106. reflex/components/radix/themes/components/switch.py +2 -2
  107. reflex/components/radix/themes/components/switch.pyi +18 -38
  108. reflex/components/radix/themes/components/table.pyi +107 -247
  109. reflex/components/radix/themes/components/tabs.py +2 -2
  110. reflex/components/radix/themes/components/tabs.pyi +79 -179
  111. reflex/components/radix/themes/components/text_area.py +0 -16
  112. reflex/components/radix/themes/components/text_area.pyi +20 -42
  113. reflex/components/radix/themes/components/text_field.py +6 -6
  114. reflex/components/radix/themes/components/text_field.pyi +53 -117
  115. reflex/components/radix/themes/components/tooltip.py +4 -4
  116. reflex/components/radix/themes/components/tooltip.pyi +20 -46
  117. reflex/components/radix/themes/layout/base.pyi +17 -37
  118. reflex/components/radix/themes/layout/box.pyi +17 -37
  119. reflex/components/radix/themes/layout/center.pyi +17 -37
  120. reflex/components/radix/themes/layout/container.pyi +17 -37
  121. reflex/components/radix/themes/layout/flex.pyi +17 -37
  122. reflex/components/radix/themes/layout/grid.pyi +17 -37
  123. reflex/components/radix/themes/layout/list.pyi +77 -177
  124. reflex/components/radix/themes/layout/section.pyi +17 -37
  125. reflex/components/radix/themes/layout/spacer.pyi +17 -37
  126. reflex/components/radix/themes/layout/stack.pyi +47 -107
  127. reflex/components/radix/themes/typography/blockquote.pyi +17 -37
  128. reflex/components/radix/themes/typography/code.pyi +17 -37
  129. reflex/components/radix/themes/typography/heading.pyi +17 -37
  130. reflex/components/radix/themes/typography/link.pyi +17 -37
  131. reflex/components/radix/themes/typography/text.pyi +107 -247
  132. reflex/components/react_player/audio.pyi +33 -69
  133. reflex/components/react_player/react_player.py +17 -17
  134. reflex/components/react_player/react_player.pyi +33 -69
  135. reflex/components/react_player/video.pyi +33 -69
  136. reflex/components/recharts/cartesian.py +215 -185
  137. reflex/components/recharts/cartesian.pyi +623 -832
  138. reflex/components/recharts/charts.py +57 -54
  139. reflex/components/recharts/charts.pyi +213 -433
  140. reflex/components/recharts/general.py +27 -21
  141. reflex/components/recharts/general.pyi +94 -189
  142. reflex/components/recharts/polar.py +115 -77
  143. reflex/components/recharts/polar.pyi +219 -229
  144. reflex/components/recharts/recharts.py +5 -1
  145. reflex/components/recharts/recharts.pyi +37 -73
  146. reflex/components/sonner/toast.py +1 -1
  147. reflex/components/sonner/toast.pyi +17 -37
  148. reflex/components/suneditor/editor.pyi +26 -52
  149. reflex/components/tags/iter_tag.py +2 -2
  150. reflex/config.py +16 -0
  151. reflex/constants/__init__.py +2 -0
  152. reflex/constants/compiler.py +25 -0
  153. reflex/constants/installer.py +17 -16
  154. reflex/constants/state.py +11 -0
  155. reflex/constants/style.py +1 -1
  156. reflex/event.py +237 -18
  157. reflex/experimental/layout.pyi +78 -180
  158. reflex/istate/dynamic.py +3 -0
  159. reflex/state.py +195 -118
  160. reflex/testing.py +8 -5
  161. reflex/utils/compat.py +1 -3
  162. reflex/utils/exceptions.py +8 -0
  163. reflex/utils/path_ops.py +2 -2
  164. reflex/utils/prerequisites.py +2 -2
  165. reflex/utils/pyi_generator.py +44 -4
  166. reflex/utils/registry.py +17 -3
  167. reflex/utils/telemetry.py +1 -3
  168. reflex/utils/types.py +60 -16
  169. reflex/vars/__init__.py +2 -0
  170. reflex/vars/base.py +127 -72
  171. reflex/vars/object.py +5 -1
  172. reflex/vars/sequence.py +10 -1
  173. {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/METADATA +3 -3
  174. {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/RECORD +177 -175
  175. {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/LICENSE +0 -0
  176. {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/WHEEL +0 -0
  177. {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/entry_points.txt +0 -0
@@ -3,10 +3,10 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
6
+ from typing import Any, Dict, List, Literal, Optional, Union, overload
7
7
 
8
8
  from reflex.constants.colors import Color
9
- from reflex.event import EventHandler, EventSpec
9
+ from reflex.event import EventType
10
10
  from reflex.style import Style
11
11
  from reflex.vars.base import Var
12
12
 
@@ -27,9 +27,32 @@ class Axis(Recharts):
27
27
  type_: Optional[
28
28
  Union[Literal["category", "number"], Var[Literal["category", "number"]]]
29
29
  ] = None,
30
+ interval: Optional[
31
+ Union[
32
+ Literal[
33
+ "equidistantPreserveStart",
34
+ "preserveEnd",
35
+ "preserveStart",
36
+ "preserveStartEnd",
37
+ ],
38
+ Var[
39
+ Union[
40
+ Literal[
41
+ "equidistantPreserveStart",
42
+ "preserveEnd",
43
+ "preserveStart",
44
+ "preserveStartEnd",
45
+ ],
46
+ int,
47
+ ]
48
+ ],
49
+ int,
50
+ ]
51
+ ] = None,
30
52
  allow_decimals: Optional[Union[Var[bool], bool]] = None,
31
53
  allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
32
54
  allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
55
+ domain: Optional[Union[List, Var[List]]] = None,
33
56
  axis_line: Optional[Union[Var[bool], bool]] = None,
34
57
  mirror: Optional[Union[Var[bool], bool]] = None,
35
58
  reversed: Optional[Union[Var[bool], bool]] = None,
@@ -87,48 +110,33 @@ class Axis(Recharts):
87
110
  tick_size: Optional[Union[Var[int], int]] = None,
88
111
  min_tick_gap: Optional[Union[Var[int], int]] = None,
89
112
  stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
90
- text_anchor: Optional[Union[Var[str], str]] = None,
113
+ text_anchor: Optional[
114
+ Union[
115
+ Literal["end", "middle", "start"],
116
+ Var[Literal["end", "middle", "start"]],
117
+ ]
118
+ ] = None,
91
119
  style: Optional[Style] = None,
92
120
  key: Optional[Any] = None,
93
121
  id: Optional[Any] = None,
94
122
  class_name: Optional[Any] = None,
95
123
  autofocus: Optional[bool] = None,
96
124
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
97
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
98
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
99
- on_context_menu: Optional[
100
- Union[EventHandler, EventSpec, list, Callable, Var]
101
- ] = None,
102
- on_double_click: Optional[
103
- Union[EventHandler, EventSpec, list, Callable, Var]
104
- ] = None,
105
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
106
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
107
- on_mouse_down: Optional[
108
- Union[EventHandler, EventSpec, list, Callable, Var]
109
- ] = None,
110
- on_mouse_enter: Optional[
111
- Union[EventHandler, EventSpec, list, Callable, Var]
112
- ] = None,
113
- on_mouse_leave: Optional[
114
- Union[EventHandler, EventSpec, list, Callable, Var]
115
- ] = None,
116
- on_mouse_move: Optional[
117
- Union[EventHandler, EventSpec, list, Callable, Var]
118
- ] = None,
119
- on_mouse_out: Optional[
120
- Union[EventHandler, EventSpec, list, Callable, Var]
121
- ] = None,
122
- on_mouse_over: Optional[
123
- Union[EventHandler, EventSpec, list, Callable, Var]
124
- ] = None,
125
- on_mouse_up: Optional[
126
- Union[EventHandler, EventSpec, list, Callable, Var]
127
- ] = None,
128
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
129
- on_unmount: Optional[
130
- Union[EventHandler, EventSpec, list, Callable, Var]
131
- ] = None,
125
+ on_blur: Optional[EventType[[]]] = None,
126
+ on_click: Optional[EventType[[]]] = None,
127
+ on_context_menu: Optional[EventType[[]]] = None,
128
+ on_double_click: Optional[EventType[[]]] = None,
129
+ on_focus: Optional[EventType[[]]] = None,
130
+ on_mount: Optional[EventType[[]]] = None,
131
+ on_mouse_down: Optional[EventType[[]]] = None,
132
+ on_mouse_enter: Optional[EventType[[]]] = None,
133
+ on_mouse_leave: Optional[EventType[[]]] = None,
134
+ on_mouse_move: Optional[EventType[[]]] = None,
135
+ on_mouse_out: Optional[EventType[[]]] = None,
136
+ on_mouse_over: Optional[EventType[[]]] = None,
137
+ on_mouse_up: Optional[EventType[[]]] = None,
138
+ on_scroll: Optional[EventType[[]]] = None,
139
+ on_unmount: Optional[EventType[[]]] = None,
132
140
  **props,
133
141
  ) -> "Axis":
134
142
  """Create the component.
@@ -136,28 +144,30 @@ class Axis(Recharts):
136
144
  Args:
137
145
  *children: The children of the component.
138
146
  data_key: The key of data displayed in the axis.
139
- hide: If set true, the axis do not display in the chart.
147
+ hide: If set true, the axis do not display in the chart. Default: False
140
148
  width: The width of axis which is usually calculated internally.
141
149
  height: The height of axis, which can be setted by user.
142
150
  type_: The type of axis 'number' | 'category'
143
- allow_decimals: Allow the ticks of XAxis to be decimals or not.
144
- allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain.
145
- allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category".
146
- axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line.
147
- mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside.
148
- reversed: Reverse the ticks or not.
151
+ interval: If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically. Default: "preserveEnd"
152
+ allow_decimals: Allow the ticks of Axis to be decimals or not. Default: True
153
+ allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain. Default: False
154
+ allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category". Default: True
155
+ domain: The range of the axis. Work best in conjuction with allow_data_overflow. Default: [0, "auto"]
156
+ axis_line: If set false, no axis line will be drawn. Default: True
157
+ mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. Default: False
158
+ reversed: Reverse the ticks or not. Default: False
149
159
  label: The label of axis, which appears next to the axis.
150
- scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold' | Function
160
+ scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold'. Default: "auto"
151
161
  unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
152
162
  name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
153
163
  ticks: Set the values of axis ticks manually.
154
164
  tick: If set false, no ticks will be drawn.
155
- tick_count: The count of axis ticks.
156
- tick_line: If set false, no axis tick lines will be drawn.
157
- tick_size: The length of tick line.
158
- min_tick_gap: The minimum gap between two adjacent labels
159
- stroke: The stroke color of axis
160
- text_anchor: The text anchor of axis
165
+ tick_count: The count of axis ticks. Not used if 'type' is 'category'. Default: 5
166
+ tick_line: If set false, no axis tick lines will be drawn. Default: True
167
+ tick_size: The length of tick line. Default: 6
168
+ min_tick_gap: The minimum gap between two adjacent labels. Default: 5
169
+ stroke: The stroke color of axis. Default: rx.color("gray", 9)
170
+ text_anchor: The text anchor of axis. Default: "middle"
161
171
  style: The style of the component.
162
172
  key: A unique key for the component.
163
173
  id: The id for the component.
@@ -182,7 +192,8 @@ class XAxis(Axis):
182
192
  ] = None,
183
193
  x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
184
194
  include_hidden: Optional[Union[Var[bool], bool]] = None,
185
- domain: Optional[Union[List, Var[List]]] = None,
195
+ angle: Optional[Union[Var[int], int]] = None,
196
+ padding: Optional[Union[Dict[str, int], Var[Dict[str, int]]]] = None,
186
197
  data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
187
198
  hide: Optional[Union[Var[bool], bool]] = None,
188
199
  width: Optional[Union[Var[Union[int, str]], int, str]] = None,
@@ -190,9 +201,32 @@ class XAxis(Axis):
190
201
  type_: Optional[
191
202
  Union[Literal["category", "number"], Var[Literal["category", "number"]]]
192
203
  ] = None,
204
+ interval: Optional[
205
+ Union[
206
+ Literal[
207
+ "equidistantPreserveStart",
208
+ "preserveEnd",
209
+ "preserveStart",
210
+ "preserveStartEnd",
211
+ ],
212
+ Var[
213
+ Union[
214
+ Literal[
215
+ "equidistantPreserveStart",
216
+ "preserveEnd",
217
+ "preserveStart",
218
+ "preserveStartEnd",
219
+ ],
220
+ int,
221
+ ]
222
+ ],
223
+ int,
224
+ ]
225
+ ] = None,
193
226
  allow_decimals: Optional[Union[Var[bool], bool]] = None,
194
227
  allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
195
228
  allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
229
+ domain: Optional[Union[List, Var[List]]] = None,
196
230
  axis_line: Optional[Union[Var[bool], bool]] = None,
197
231
  mirror: Optional[Union[Var[bool], bool]] = None,
198
232
  reversed: Optional[Union[Var[bool], bool]] = None,
@@ -250,81 +284,69 @@ class XAxis(Axis):
250
284
  tick_size: Optional[Union[Var[int], int]] = None,
251
285
  min_tick_gap: Optional[Union[Var[int], int]] = None,
252
286
  stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
253
- text_anchor: Optional[Union[Var[str], str]] = None,
287
+ text_anchor: Optional[
288
+ Union[
289
+ Literal["end", "middle", "start"],
290
+ Var[Literal["end", "middle", "start"]],
291
+ ]
292
+ ] = None,
254
293
  style: Optional[Style] = None,
255
294
  key: Optional[Any] = None,
256
295
  id: Optional[Any] = None,
257
296
  class_name: Optional[Any] = None,
258
297
  autofocus: Optional[bool] = None,
259
298
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
260
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
261
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
262
- on_context_menu: Optional[
263
- Union[EventHandler, EventSpec, list, Callable, Var]
264
- ] = None,
265
- on_double_click: Optional[
266
- Union[EventHandler, EventSpec, list, Callable, Var]
267
- ] = None,
268
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
269
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
270
- on_mouse_down: Optional[
271
- Union[EventHandler, EventSpec, list, Callable, Var]
272
- ] = None,
273
- on_mouse_enter: Optional[
274
- Union[EventHandler, EventSpec, list, Callable, Var]
275
- ] = None,
276
- on_mouse_leave: Optional[
277
- Union[EventHandler, EventSpec, list, Callable, Var]
278
- ] = None,
279
- on_mouse_move: Optional[
280
- Union[EventHandler, EventSpec, list, Callable, Var]
281
- ] = None,
282
- on_mouse_out: Optional[
283
- Union[EventHandler, EventSpec, list, Callable, Var]
284
- ] = None,
285
- on_mouse_over: Optional[
286
- Union[EventHandler, EventSpec, list, Callable, Var]
287
- ] = None,
288
- on_mouse_up: Optional[
289
- Union[EventHandler, EventSpec, list, Callable, Var]
290
- ] = None,
291
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
292
- on_unmount: Optional[
293
- Union[EventHandler, EventSpec, list, Callable, Var]
294
- ] = None,
299
+ on_blur: Optional[EventType[[]]] = None,
300
+ on_click: Optional[EventType[[]]] = None,
301
+ on_context_menu: Optional[EventType[[]]] = None,
302
+ on_double_click: Optional[EventType[[]]] = None,
303
+ on_focus: Optional[EventType[[]]] = None,
304
+ on_mount: Optional[EventType[[]]] = None,
305
+ on_mouse_down: Optional[EventType[[]]] = None,
306
+ on_mouse_enter: Optional[EventType[[]]] = None,
307
+ on_mouse_leave: Optional[EventType[[]]] = None,
308
+ on_mouse_move: Optional[EventType[[]]] = None,
309
+ on_mouse_out: Optional[EventType[[]]] = None,
310
+ on_mouse_over: Optional[EventType[[]]] = None,
311
+ on_mouse_up: Optional[EventType[[]]] = None,
312
+ on_scroll: Optional[EventType[[]]] = None,
313
+ on_unmount: Optional[EventType[[]]] = None,
295
314
  **props,
296
315
  ) -> "XAxis":
297
316
  """Create the component.
298
317
 
299
318
  Args:
300
319
  *children: The children of the component.
301
- orientation: The orientation of axis 'top' | 'bottom'
302
- x_axis_id: The id of x-axis which is corresponding to the data.
303
- include_hidden: Ensures that all datapoints within a chart contribute to its domain calculation, even when they are hidden
304
- domain: The range of the axis. Work best in conjuction with allow_data_overflow.
320
+ orientation: The orientation of axis 'top' | 'bottom'. Default: "bottom"
321
+ x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
322
+ include_hidden: Ensures that all datapoints within a chart contribute to its domain calculation, even when they are hidden. Default: False
323
+ angle: The angle of axis ticks. Default: 0
324
+ padding: Specify the padding of x-axis. Default: {"left": 0, "right": 0}
305
325
  data_key: The key of data displayed in the axis.
306
- hide: If set true, the axis do not display in the chart.
326
+ hide: If set true, the axis do not display in the chart. Default: False
307
327
  width: The width of axis which is usually calculated internally.
308
328
  height: The height of axis, which can be setted by user.
309
329
  type_: The type of axis 'number' | 'category'
310
- allow_decimals: Allow the ticks of XAxis to be decimals or not.
311
- allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain.
312
- allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category".
313
- axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line.
314
- mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside.
315
- reversed: Reverse the ticks or not.
330
+ interval: If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically. Default: "preserveEnd"
331
+ allow_decimals: Allow the ticks of Axis to be decimals or not. Default: True
332
+ allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain. Default: False
333
+ allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category". Default: True
334
+ domain: The range of the axis. Work best in conjuction with allow_data_overflow. Default: [0, "auto"]
335
+ axis_line: If set false, no axis line will be drawn. Default: True
336
+ mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. Default: False
337
+ reversed: Reverse the ticks or not. Default: False
316
338
  label: The label of axis, which appears next to the axis.
317
- scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold' | Function
339
+ scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold'. Default: "auto"
318
340
  unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
319
341
  name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
320
342
  ticks: Set the values of axis ticks manually.
321
343
  tick: If set false, no ticks will be drawn.
322
- tick_count: The count of axis ticks.
323
- tick_line: If set false, no axis tick lines will be drawn.
324
- tick_size: The length of tick line.
325
- min_tick_gap: The minimum gap between two adjacent labels
326
- stroke: The stroke color of axis
327
- text_anchor: The text anchor of axis
344
+ tick_count: The count of axis ticks. Not used if 'type' is 'category'. Default: 5
345
+ tick_line: If set false, no axis tick lines will be drawn. Default: True
346
+ tick_size: The length of tick line. Default: 6
347
+ min_tick_gap: The minimum gap between two adjacent labels. Default: 5
348
+ stroke: The stroke color of axis. Default: rx.color("gray", 9)
349
+ text_anchor: The text anchor of axis. Default: "middle"
328
350
  style: The style of the component.
329
351
  key: A unique key for the component.
330
352
  id: The id for the component.
@@ -348,7 +370,7 @@ class YAxis(Axis):
348
370
  Union[Literal["left", "right"], Var[Literal["left", "right"]]]
349
371
  ] = None,
350
372
  y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
351
- domain: Optional[Union[List, Var[List]]] = None,
373
+ padding: Optional[Union[Dict[str, int], Var[Dict[str, int]]]] = None,
352
374
  data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
353
375
  hide: Optional[Union[Var[bool], bool]] = None,
354
376
  width: Optional[Union[Var[Union[int, str]], int, str]] = None,
@@ -356,9 +378,32 @@ class YAxis(Axis):
356
378
  type_: Optional[
357
379
  Union[Literal["category", "number"], Var[Literal["category", "number"]]]
358
380
  ] = None,
381
+ interval: Optional[
382
+ Union[
383
+ Literal[
384
+ "equidistantPreserveStart",
385
+ "preserveEnd",
386
+ "preserveStart",
387
+ "preserveStartEnd",
388
+ ],
389
+ Var[
390
+ Union[
391
+ Literal[
392
+ "equidistantPreserveStart",
393
+ "preserveEnd",
394
+ "preserveStart",
395
+ "preserveStartEnd",
396
+ ],
397
+ int,
398
+ ]
399
+ ],
400
+ int,
401
+ ]
402
+ ] = None,
359
403
  allow_decimals: Optional[Union[Var[bool], bool]] = None,
360
404
  allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
361
405
  allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
406
+ domain: Optional[Union[List, Var[List]]] = None,
362
407
  axis_line: Optional[Union[Var[bool], bool]] = None,
363
408
  mirror: Optional[Union[Var[bool], bool]] = None,
364
409
  reversed: Optional[Union[Var[bool], bool]] = None,
@@ -416,80 +461,67 @@ class YAxis(Axis):
416
461
  tick_size: Optional[Union[Var[int], int]] = None,
417
462
  min_tick_gap: Optional[Union[Var[int], int]] = None,
418
463
  stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
419
- text_anchor: Optional[Union[Var[str], str]] = None,
464
+ text_anchor: Optional[
465
+ Union[
466
+ Literal["end", "middle", "start"],
467
+ Var[Literal["end", "middle", "start"]],
468
+ ]
469
+ ] = None,
420
470
  style: Optional[Style] = None,
421
471
  key: Optional[Any] = None,
422
472
  id: Optional[Any] = None,
423
473
  class_name: Optional[Any] = None,
424
474
  autofocus: Optional[bool] = None,
425
475
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
426
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
427
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
428
- on_context_menu: Optional[
429
- Union[EventHandler, EventSpec, list, Callable, Var]
430
- ] = None,
431
- on_double_click: Optional[
432
- Union[EventHandler, EventSpec, list, Callable, Var]
433
- ] = None,
434
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
435
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
436
- on_mouse_down: Optional[
437
- Union[EventHandler, EventSpec, list, Callable, Var]
438
- ] = None,
439
- on_mouse_enter: Optional[
440
- Union[EventHandler, EventSpec, list, Callable, Var]
441
- ] = None,
442
- on_mouse_leave: Optional[
443
- Union[EventHandler, EventSpec, list, Callable, Var]
444
- ] = None,
445
- on_mouse_move: Optional[
446
- Union[EventHandler, EventSpec, list, Callable, Var]
447
- ] = None,
448
- on_mouse_out: Optional[
449
- Union[EventHandler, EventSpec, list, Callable, Var]
450
- ] = None,
451
- on_mouse_over: Optional[
452
- Union[EventHandler, EventSpec, list, Callable, Var]
453
- ] = None,
454
- on_mouse_up: Optional[
455
- Union[EventHandler, EventSpec, list, Callable, Var]
456
- ] = None,
457
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
458
- on_unmount: Optional[
459
- Union[EventHandler, EventSpec, list, Callable, Var]
460
- ] = None,
476
+ on_blur: Optional[EventType[[]]] = None,
477
+ on_click: Optional[EventType[[]]] = None,
478
+ on_context_menu: Optional[EventType[[]]] = None,
479
+ on_double_click: Optional[EventType[[]]] = None,
480
+ on_focus: Optional[EventType[[]]] = None,
481
+ on_mount: Optional[EventType[[]]] = None,
482
+ on_mouse_down: Optional[EventType[[]]] = None,
483
+ on_mouse_enter: Optional[EventType[[]]] = None,
484
+ on_mouse_leave: Optional[EventType[[]]] = None,
485
+ on_mouse_move: Optional[EventType[[]]] = None,
486
+ on_mouse_out: Optional[EventType[[]]] = None,
487
+ on_mouse_over: Optional[EventType[[]]] = None,
488
+ on_mouse_up: Optional[EventType[[]]] = None,
489
+ on_scroll: Optional[EventType[[]]] = None,
490
+ on_unmount: Optional[EventType[[]]] = None,
461
491
  **props,
462
492
  ) -> "YAxis":
463
493
  """Create the component.
464
494
 
465
495
  Args:
466
496
  *children: The children of the component.
467
- orientation: The orientation of axis 'left' | 'right'
468
- y_axis_id: The id of y-axis which is corresponding to the data.
469
- domain: The range of the axis. Work best in conjuction with allow_data_overflow.
497
+ orientation: The orientation of axis 'left' | 'right'. Default: "left"
498
+ y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
499
+ padding: Specify the padding of y-axis. Default: {"top": 0, "bottom": 0}
470
500
  data_key: The key of data displayed in the axis.
471
- hide: If set true, the axis do not display in the chart.
501
+ hide: If set true, the axis do not display in the chart. Default: False
472
502
  width: The width of axis which is usually calculated internally.
473
503
  height: The height of axis, which can be setted by user.
474
504
  type_: The type of axis 'number' | 'category'
475
- allow_decimals: Allow the ticks of XAxis to be decimals or not.
476
- allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain.
477
- allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category".
478
- axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line.
479
- mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside.
480
- reversed: Reverse the ticks or not.
505
+ interval: If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically. Default: "preserveEnd"
506
+ allow_decimals: Allow the ticks of Axis to be decimals or not. Default: True
507
+ allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain. Default: False
508
+ allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category". Default: True
509
+ domain: The range of the axis. Work best in conjuction with allow_data_overflow. Default: [0, "auto"]
510
+ axis_line: If set false, no axis line will be drawn. Default: True
511
+ mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. Default: False
512
+ reversed: Reverse the ticks or not. Default: False
481
513
  label: The label of axis, which appears next to the axis.
482
- scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold' | Function
514
+ scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold'. Default: "auto"
483
515
  unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
484
516
  name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
485
517
  ticks: Set the values of axis ticks manually.
486
518
  tick: If set false, no ticks will be drawn.
487
- tick_count: The count of axis ticks.
488
- tick_line: If set false, no axis tick lines will be drawn.
489
- tick_size: The length of tick line.
490
- min_tick_gap: The minimum gap between two adjacent labels
491
- stroke: The stroke color of axis
492
- text_anchor: The text anchor of axis
519
+ tick_count: The count of axis ticks. Not used if 'type' is 'category'. Default: 5
520
+ tick_line: If set false, no axis tick lines will be drawn. Default: True
521
+ tick_size: The length of tick line. Default: 6
522
+ min_tick_gap: The minimum gap between two adjacent labels. Default: 5
523
+ stroke: The stroke color of axis. Default: rx.color("gray", 9)
524
+ text_anchor: The text anchor of axis. Default: "middle"
493
525
  style: The style of the component.
494
526
  key: A unique key for the component.
495
527
  id: The id for the component.
@@ -510,6 +542,7 @@ class ZAxis(Recharts):
510
542
  cls,
511
543
  *children,
512
544
  data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
545
+ z_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
513
546
  range: Optional[Union[List[int], Var[List[int]]]] = None,
514
547
  unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
515
548
  name: Optional[Union[Var[Union[int, str]], int, str]] = None,
@@ -559,41 +592,21 @@ class ZAxis(Recharts):
559
592
  class_name: Optional[Any] = None,
560
593
  autofocus: Optional[bool] = None,
561
594
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
562
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
563
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
564
- on_context_menu: Optional[
565
- Union[EventHandler, EventSpec, list, Callable, Var]
566
- ] = None,
567
- on_double_click: Optional[
568
- Union[EventHandler, EventSpec, list, Callable, Var]
569
- ] = None,
570
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
571
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
572
- on_mouse_down: Optional[
573
- Union[EventHandler, EventSpec, list, Callable, Var]
574
- ] = None,
575
- on_mouse_enter: Optional[
576
- Union[EventHandler, EventSpec, list, Callable, Var]
577
- ] = None,
578
- on_mouse_leave: Optional[
579
- Union[EventHandler, EventSpec, list, Callable, Var]
580
- ] = None,
581
- on_mouse_move: Optional[
582
- Union[EventHandler, EventSpec, list, Callable, Var]
583
- ] = None,
584
- on_mouse_out: Optional[
585
- Union[EventHandler, EventSpec, list, Callable, Var]
586
- ] = None,
587
- on_mouse_over: Optional[
588
- Union[EventHandler, EventSpec, list, Callable, Var]
589
- ] = None,
590
- on_mouse_up: Optional[
591
- Union[EventHandler, EventSpec, list, Callable, Var]
592
- ] = None,
593
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
594
- on_unmount: Optional[
595
- Union[EventHandler, EventSpec, list, Callable, Var]
596
- ] = None,
595
+ on_blur: Optional[EventType[[]]] = None,
596
+ on_click: Optional[EventType[[]]] = None,
597
+ on_context_menu: Optional[EventType[[]]] = None,
598
+ on_double_click: Optional[EventType[[]]] = None,
599
+ on_focus: Optional[EventType[[]]] = None,
600
+ on_mount: Optional[EventType[[]]] = None,
601
+ on_mouse_down: Optional[EventType[[]]] = None,
602
+ on_mouse_enter: Optional[EventType[[]]] = None,
603
+ on_mouse_leave: Optional[EventType[[]]] = None,
604
+ on_mouse_move: Optional[EventType[[]]] = None,
605
+ on_mouse_out: Optional[EventType[[]]] = None,
606
+ on_mouse_over: Optional[EventType[[]]] = None,
607
+ on_mouse_up: Optional[EventType[[]]] = None,
608
+ on_scroll: Optional[EventType[[]]] = None,
609
+ on_unmount: Optional[EventType[[]]] = None,
597
610
  **props,
598
611
  ) -> "ZAxis":
599
612
  """Create the component.
@@ -601,10 +614,11 @@ class ZAxis(Recharts):
601
614
  Args:
602
615
  *children: The children of the component.
603
616
  data_key: The key of data displayed in the axis.
604
- range: The range of axis.
617
+ z_axis_id: The unique id of z-axis. Default: 0
618
+ range: The range of axis. Default: [10, 10]
605
619
  unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
606
620
  name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
607
- scale: If 'auto' set, the scale function is decided by the type of chart, and the props type.
621
+ scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. Default: "auto"
608
622
  style: The style of the component.
609
623
  key: A unique key for the component.
610
624
  id: The id for the component.
@@ -643,7 +657,7 @@ class Brush(Recharts):
643
657
  class_name: Optional[Any] = None,
644
658
  autofocus: Optional[bool] = None,
645
659
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
646
- on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
660
+ on_change: Optional[EventType[[]]] = None,
647
661
  **props,
648
662
  ) -> "Brush":
649
663
  """Create the component.
@@ -653,15 +667,15 @@ class Brush(Recharts):
653
667
  stroke: The stroke color of brush
654
668
  fill: The fill color of brush
655
669
  data_key: The key of data displayed in the axis.
656
- x: The x-coordinate of brush.
657
- y: The y-coordinate of brush.
658
- width: The width of brush.
659
- height: The height of brush.
660
- data: The data domain of brush, [min, max].
661
- traveller_width: The width of each traveller.
662
- gap: The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time
663
- start_index: The default start index of brush. If the option is not set, the start index will be 0.
664
- end_index: The default end index of brush. If the option is not set, the end index will be 1.
670
+ x: The x-coordinate of brush. Default: 0
671
+ y: The y-coordinate of brush. Default: 0
672
+ width: The width of brush. Default: 0
673
+ height: The height of brush. Default: 40
674
+ data: The original data of a LineChart, a BarChart or an AreaChart.
675
+ traveller_width: The width of each traveller. Default: 5
676
+ gap: The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time. Default: 1
677
+ start_index: The default start index of brush. If the option is not set, the start index will be 0. Default: 0
678
+ end_index: The default end index of brush. If the option is not set, the end index will be calculated by the length of data.
665
679
  style: The style of the component.
666
680
  key: A unique key for the component.
667
681
  id: The id for the component.
@@ -722,47 +736,40 @@ class Cartesian(Recharts):
722
736
  ],
723
737
  ]
724
738
  ] = None,
739
+ is_animation_active: Optional[Union[Var[bool], bool]] = None,
740
+ animation_begin: Optional[Union[Var[int], int]] = None,
741
+ animation_duration: Optional[Union[Var[int], int]] = None,
742
+ animation_easing: Optional[
743
+ Union[
744
+ Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
745
+ Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
746
+ ]
747
+ ] = None,
748
+ unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
749
+ name: Optional[Union[Var[Union[int, str]], int, str]] = None,
725
750
  style: Optional[Style] = None,
726
751
  key: Optional[Any] = None,
727
752
  id: Optional[Any] = None,
728
753
  class_name: Optional[Any] = None,
729
754
  autofocus: Optional[bool] = None,
730
755
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
731
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
732
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
733
- on_context_menu: Optional[
734
- Union[EventHandler, EventSpec, list, Callable, Var]
735
- ] = None,
736
- on_double_click: Optional[
737
- Union[EventHandler, EventSpec, list, Callable, Var]
738
- ] = None,
739
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
740
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
741
- on_mouse_down: Optional[
742
- Union[EventHandler, EventSpec, list, Callable, Var]
743
- ] = None,
744
- on_mouse_enter: Optional[
745
- Union[EventHandler, EventSpec, list, Callable, Var]
746
- ] = None,
747
- on_mouse_leave: Optional[
748
- Union[EventHandler, EventSpec, list, Callable, Var]
749
- ] = None,
750
- on_mouse_move: Optional[
751
- Union[EventHandler, EventSpec, list, Callable, Var]
752
- ] = None,
753
- on_mouse_out: Optional[
754
- Union[EventHandler, EventSpec, list, Callable, Var]
755
- ] = None,
756
- on_mouse_over: Optional[
757
- Union[EventHandler, EventSpec, list, Callable, Var]
758
- ] = None,
759
- on_mouse_up: Optional[
760
- Union[EventHandler, EventSpec, list, Callable, Var]
761
- ] = None,
762
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
763
- on_unmount: Optional[
764
- Union[EventHandler, EventSpec, list, Callable, Var]
765
- ] = None,
756
+ on_animation_end: Optional[EventType[[]]] = None,
757
+ on_animation_start: Optional[EventType[[]]] = None,
758
+ on_blur: Optional[EventType[[]]] = None,
759
+ on_click: Optional[EventType[[]]] = None,
760
+ on_context_menu: Optional[EventType[[]]] = None,
761
+ on_double_click: Optional[EventType[[]]] = None,
762
+ on_focus: Optional[EventType[[]]] = None,
763
+ on_mount: Optional[EventType[[]]] = None,
764
+ on_mouse_down: Optional[EventType[[]]] = None,
765
+ on_mouse_enter: Optional[EventType[[]]] = None,
766
+ on_mouse_leave: Optional[EventType[[]]] = None,
767
+ on_mouse_move: Optional[EventType[[]]] = None,
768
+ on_mouse_out: Optional[EventType[[]]] = None,
769
+ on_mouse_over: Optional[EventType[[]]] = None,
770
+ on_mouse_up: Optional[EventType[[]]] = None,
771
+ on_scroll: Optional[EventType[[]]] = None,
772
+ on_unmount: Optional[EventType[[]]] = None,
766
773
  **props,
767
774
  ) -> "Cartesian":
768
775
  """Create the component.
@@ -771,9 +778,15 @@ class Cartesian(Recharts):
771
778
  *children: The children of the component.
772
779
  layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
773
780
  data_key: The key of a group of data which should be unique in an area chart.
774
- x_axis_id: The id of x-axis which is corresponding to the data.
775
- y_axis_id: The id of y-axis which is corresponding to the data.
776
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none'optional
781
+ x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
782
+ y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
783
+ legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
784
+ is_animation_active: If set false, animation of bar will be disabled. Default: True
785
+ animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
786
+ animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
787
+ animation_easing: The type of easing function. Default: "ease"
788
+ unit: The unit of data. This option will be used in tooltip.
789
+ name: The name of data. This option will be used in tooltip and legend to represent the component. If no value was set to this option, the value of dataKey will be used alternatively.
777
790
  style: The style of the component.
778
791
  key: A unique key for the component.
779
792
  id: The id for the component.
@@ -843,9 +856,12 @@ class Area(Cartesian):
843
856
  Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
844
857
  ] = None,
845
858
  label: Optional[Union[Var[bool], bool]] = None,
859
+ base_line: Optional[
860
+ Union[List[Dict[str, Any]], Var[Union[List[Dict[str, Any]], str]], str]
861
+ ] = None,
862
+ points: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
846
863
  stack_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
847
- unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
848
- name: Optional[Union[Var[Union[int, str]], int, str]] = None,
864
+ connect_nulls: Optional[Union[Var[bool], bool]] = None,
849
865
  layout: Optional[
850
866
  Union[
851
867
  Literal["horizontal", "vertical"],
@@ -887,68 +903,68 @@ class Area(Cartesian):
887
903
  ],
888
904
  ]
889
905
  ] = None,
906
+ is_animation_active: Optional[Union[Var[bool], bool]] = None,
907
+ animation_begin: Optional[Union[Var[int], int]] = None,
908
+ animation_duration: Optional[Union[Var[int], int]] = None,
909
+ animation_easing: Optional[
910
+ Union[
911
+ Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
912
+ Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
913
+ ]
914
+ ] = None,
915
+ unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
916
+ name: Optional[Union[Var[Union[int, str]], int, str]] = None,
890
917
  style: Optional[Style] = None,
891
918
  key: Optional[Any] = None,
892
919
  id: Optional[Any] = None,
893
920
  class_name: Optional[Any] = None,
894
921
  autofocus: Optional[bool] = None,
895
922
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
896
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
897
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
898
- on_context_menu: Optional[
899
- Union[EventHandler, EventSpec, list, Callable, Var]
900
- ] = None,
901
- on_double_click: Optional[
902
- Union[EventHandler, EventSpec, list, Callable, Var]
903
- ] = None,
904
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
905
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
906
- on_mouse_down: Optional[
907
- Union[EventHandler, EventSpec, list, Callable, Var]
908
- ] = None,
909
- on_mouse_enter: Optional[
910
- Union[EventHandler, EventSpec, list, Callable, Var]
911
- ] = None,
912
- on_mouse_leave: Optional[
913
- Union[EventHandler, EventSpec, list, Callable, Var]
914
- ] = None,
915
- on_mouse_move: Optional[
916
- Union[EventHandler, EventSpec, list, Callable, Var]
917
- ] = None,
918
- on_mouse_out: Optional[
919
- Union[EventHandler, EventSpec, list, Callable, Var]
920
- ] = None,
921
- on_mouse_over: Optional[
922
- Union[EventHandler, EventSpec, list, Callable, Var]
923
- ] = None,
924
- on_mouse_up: Optional[
925
- Union[EventHandler, EventSpec, list, Callable, Var]
926
- ] = None,
927
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
928
- on_unmount: Optional[
929
- Union[EventHandler, EventSpec, list, Callable, Var]
930
- ] = None,
923
+ on_animation_end: Optional[EventType[[]]] = None,
924
+ on_animation_start: Optional[EventType[[]]] = None,
925
+ on_blur: Optional[EventType[[]]] = None,
926
+ on_click: Optional[EventType[[]]] = None,
927
+ on_context_menu: Optional[EventType[[]]] = None,
928
+ on_double_click: Optional[EventType[[]]] = None,
929
+ on_focus: Optional[EventType[[]]] = None,
930
+ on_mount: Optional[EventType[[]]] = None,
931
+ on_mouse_down: Optional[EventType[[]]] = None,
932
+ on_mouse_enter: Optional[EventType[[]]] = None,
933
+ on_mouse_leave: Optional[EventType[[]]] = None,
934
+ on_mouse_move: Optional[EventType[[]]] = None,
935
+ on_mouse_out: Optional[EventType[[]]] = None,
936
+ on_mouse_over: Optional[EventType[[]]] = None,
937
+ on_mouse_up: Optional[EventType[[]]] = None,
938
+ on_scroll: Optional[EventType[[]]] = None,
939
+ on_unmount: Optional[EventType[[]]] = None,
931
940
  **props,
932
941
  ) -> "Area":
933
942
  """Create the component.
934
943
 
935
944
  Args:
936
945
  *children: The children of the component.
937
- stroke: The color of the line stroke.
938
- stroke_width: The width of the line stroke.
939
- fill: The color of the area fill.
940
- type_: The interpolation type of area. And customized interpolation function can be set to type. 'basis' | 'basisClosed' | 'basisOpen' | 'bumpX' | 'bumpY' | 'bump' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' |
941
- dot: If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally.
942
- active_dot: The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally.
943
- label: If set false, labels will not be drawn. If set true, labels will be drawn which have the props calculated internally.
946
+ stroke: The color of the line stroke. Default: rx.color("accent", 9)
947
+ stroke_width: The width of the line stroke. Default: 1
948
+ fill: The color of the area fill. Default: rx.color("accent", 5)
949
+ type_: The interpolation type of area. And customized interpolation function can be set to type. 'basis' | 'basisClosed' | 'basisOpen' | 'bumpX' | 'bumpY' | 'bump' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter'. Default: "monotone"
950
+ dot: If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally. Default: False
951
+ active_dot: The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {stroke: rx.color("accent", 2), fill: rx.color("accent", 10)}
952
+ label: If set false, labels will not be drawn. If set true, labels will be drawn which have the props calculated internally. Default: False
953
+ base_line: The value which can describle the line, usually calculated internally.
954
+ points: The coordinates of all the points in the area, usually calculated internally.
944
955
  stack_id: The stack id of area, when two areas have the same value axis and same stack_id, then the two areas are stacked in order.
945
- unit: The unit of data. This option will be used in tooltip.
946
- name: The name of data. This option will be used in tooltip and legend to represent a bar. If no value was set to this option, the value of dataKey will be used alternatively.
956
+ connect_nulls: Whether to connect a graph area across null points. Default: False
947
957
  layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
948
958
  data_key: The key of a group of data which should be unique in an area chart.
949
- x_axis_id: The id of x-axis which is corresponding to the data.
950
- y_axis_id: The id of y-axis which is corresponding to the data.
951
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none'optional
959
+ x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
960
+ y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
961
+ legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
962
+ is_animation_active: If set false, animation of bar will be disabled. Default: True
963
+ animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
964
+ animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
965
+ animation_easing: The type of easing function. Default: "ease"
966
+ unit: The unit of data. This option will be used in tooltip.
967
+ name: The name of data. This option will be used in tooltip and legend to represent the component. If no value was set to this option, the value of dataKey will be used alternatively.
952
968
  style: The style of the component.
953
969
  key: A unique key for the component.
954
970
  id: The id for the component.
@@ -979,15 +995,7 @@ class Bar(Cartesian):
979
995
  name: Optional[Union[Var[Union[int, str]], int, str]] = None,
980
996
  bar_size: Optional[Union[Var[int], int]] = None,
981
997
  max_bar_size: Optional[Union[Var[int], int]] = None,
982
- is_animation_active: Optional[Union[Var[bool], bool]] = None,
983
- animation_begin: Optional[Union[Var[int], int]] = None,
984
- animation_duration: Optional[Union[Var[int], int]] = None,
985
- animation_easing: Optional[
986
- Union[
987
- Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
988
- Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
989
- ]
990
- ] = None,
998
+ radius: Optional[Union[List[int], Var[Union[List[int], int]], int]] = None,
991
999
  layout: Optional[
992
1000
  Union[
993
1001
  Literal["horizontal", "vertical"],
@@ -1029,53 +1037,38 @@ class Bar(Cartesian):
1029
1037
  ],
1030
1038
  ]
1031
1039
  ] = None,
1040
+ is_animation_active: Optional[Union[Var[bool], bool]] = None,
1041
+ animation_begin: Optional[Union[Var[int], int]] = None,
1042
+ animation_duration: Optional[Union[Var[int], int]] = None,
1043
+ animation_easing: Optional[
1044
+ Union[
1045
+ Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
1046
+ Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
1047
+ ]
1048
+ ] = None,
1032
1049
  style: Optional[Style] = None,
1033
1050
  key: Optional[Any] = None,
1034
1051
  id: Optional[Any] = None,
1035
1052
  class_name: Optional[Any] = None,
1036
1053
  autofocus: Optional[bool] = None,
1037
1054
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1038
- on_animation_end: Optional[
1039
- Union[EventHandler, EventSpec, list, Callable, Var]
1040
- ] = None,
1041
- on_animation_start: Optional[
1042
- Union[EventHandler, EventSpec, list, Callable, Var]
1043
- ] = None,
1044
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1045
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1046
- on_context_menu: Optional[
1047
- Union[EventHandler, EventSpec, list, Callable, Var]
1048
- ] = None,
1049
- on_double_click: Optional[
1050
- Union[EventHandler, EventSpec, list, Callable, Var]
1051
- ] = None,
1052
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1053
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1054
- on_mouse_down: Optional[
1055
- Union[EventHandler, EventSpec, list, Callable, Var]
1056
- ] = None,
1057
- on_mouse_enter: Optional[
1058
- Union[EventHandler, EventSpec, list, Callable, Var]
1059
- ] = None,
1060
- on_mouse_leave: Optional[
1061
- Union[EventHandler, EventSpec, list, Callable, Var]
1062
- ] = None,
1063
- on_mouse_move: Optional[
1064
- Union[EventHandler, EventSpec, list, Callable, Var]
1065
- ] = None,
1066
- on_mouse_out: Optional[
1067
- Union[EventHandler, EventSpec, list, Callable, Var]
1068
- ] = None,
1069
- on_mouse_over: Optional[
1070
- Union[EventHandler, EventSpec, list, Callable, Var]
1071
- ] = None,
1072
- on_mouse_up: Optional[
1073
- Union[EventHandler, EventSpec, list, Callable, Var]
1074
- ] = None,
1075
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1076
- on_unmount: Optional[
1077
- Union[EventHandler, EventSpec, list, Callable, Var]
1078
- ] = None,
1055
+ on_animation_end: Optional[EventType[[]]] = None,
1056
+ on_animation_start: Optional[EventType[[]]] = None,
1057
+ on_blur: Optional[EventType[[]]] = None,
1058
+ on_click: Optional[EventType[[]]] = None,
1059
+ on_context_menu: Optional[EventType[[]]] = None,
1060
+ on_double_click: Optional[EventType[[]]] = None,
1061
+ on_focus: Optional[EventType[[]]] = None,
1062
+ on_mount: Optional[EventType[[]]] = None,
1063
+ on_mouse_down: Optional[EventType[[]]] = None,
1064
+ on_mouse_enter: Optional[EventType[[]]] = None,
1065
+ on_mouse_leave: Optional[EventType[[]]] = None,
1066
+ on_mouse_move: Optional[EventType[[]]] = None,
1067
+ on_mouse_out: Optional[EventType[[]]] = None,
1068
+ on_mouse_over: Optional[EventType[[]]] = None,
1069
+ on_mouse_up: Optional[EventType[[]]] = None,
1070
+ on_scroll: Optional[EventType[[]]] = None,
1071
+ on_unmount: Optional[EventType[[]]] = None,
1079
1072
  **props,
1080
1073
  ) -> "Bar":
1081
1074
  """Create the component.
@@ -1084,24 +1077,25 @@ class Bar(Cartesian):
1084
1077
  *children: The children of the component.
1085
1078
  stroke: The color of the line stroke.
1086
1079
  stroke_width: The width of the line stroke.
1087
- fill: The width of the line stroke.
1088
- background: If false set, background of bars will not be drawn. If true set, background of bars will be drawn which have the props calculated internally.
1089
- label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally.
1080
+ fill: The width of the line stroke. Default: Color("accent", 9)
1081
+ background: If false set, background of bars will not be drawn. If true set, background of bars will be drawn which have the props calculated internally. Default: False
1082
+ label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
1090
1083
  stack_id: The stack id of bar, when two bars have the same value axis and same stack_id, then the two bars are stacked in order.
1091
1084
  unit: The unit of data. This option will be used in tooltip.
1092
1085
  min_point_size: The minimal height of a bar in a horizontal BarChart, or the minimal width of a bar in a vertical BarChart. By default, 0 values are not shown. To visualize a 0 (or close to zero) point, set the minimal point size to a pixel value like 3. In stacked bar charts, minPointSize might not be respected for tightly packed values. So we strongly recommend not using this prop in stacked BarCharts.
1093
- name: The name of data. This option will be used in tooltip and legend to represent a bar. If no value was set to this option, the value of dataKey will be used alternatively.
1086
+ name: The name of data. This option will be used in tooltip and legend to represent the component. If no value was set to this option, the value of dataKey will be used alternatively.
1094
1087
  bar_size: Size of the bar (if one bar_size is set then a bar_size must be set for all bars)
1095
1088
  max_bar_size: Max size of the bar
1096
- is_animation_active: If set false, animation of bar will be disabled.
1097
- animation_begin: Specifies when the animation should begin, the unit of this option is ms, default 0.
1098
- animation_duration: Specifies the duration of animation, the unit of this option is ms, default 1500.
1099
- animation_easing: The type of easing function, default 'ease'
1089
+ radius: If set a value, the option is the radius of all the rounded corners. If set a array, the option are in turn the radiuses of top-left corner, top-right corner, bottom-right corner, bottom-left corner. Default: 0
1100
1090
  layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
1101
1091
  data_key: The key of a group of data which should be unique in an area chart.
1102
- x_axis_id: The id of x-axis which is corresponding to the data.
1103
- y_axis_id: The id of y-axis which is corresponding to the data.
1104
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none'optional
1092
+ x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
1093
+ y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
1094
+ legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
1095
+ is_animation_active: If set false, animation of bar will be disabled. Default: True
1096
+ animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
1097
+ animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
1098
+ animation_easing: The type of easing function. Default: "ease"
1105
1099
  style: The style of the component.
1106
1100
  key: A unique key for the component.
1107
1101
  id: The id for the component.
@@ -1173,7 +1167,8 @@ class Line(Cartesian):
1173
1167
  hide: Optional[Union[Var[bool], bool]] = None,
1174
1168
  connect_nulls: Optional[Union[Var[bool], bool]] = None,
1175
1169
  unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
1176
- name: Optional[Union[Var[Union[int, str]], int, str]] = None,
1170
+ points: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
1171
+ stroke_dasharray: Optional[Union[Var[str], str]] = None,
1177
1172
  layout: Optional[
1178
1173
  Union[
1179
1174
  Literal["horizontal", "vertical"],
@@ -1215,47 +1210,39 @@ class Line(Cartesian):
1215
1210
  ],
1216
1211
  ]
1217
1212
  ] = None,
1213
+ is_animation_active: Optional[Union[Var[bool], bool]] = None,
1214
+ animation_begin: Optional[Union[Var[int], int]] = None,
1215
+ animation_duration: Optional[Union[Var[int], int]] = None,
1216
+ animation_easing: Optional[
1217
+ Union[
1218
+ Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
1219
+ Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
1220
+ ]
1221
+ ] = None,
1222
+ name: Optional[Union[Var[Union[int, str]], int, str]] = None,
1218
1223
  style: Optional[Style] = None,
1219
1224
  key: Optional[Any] = None,
1220
1225
  id: Optional[Any] = None,
1221
1226
  class_name: Optional[Any] = None,
1222
1227
  autofocus: Optional[bool] = None,
1223
1228
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1224
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1225
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1226
- on_context_menu: Optional[
1227
- Union[EventHandler, EventSpec, list, Callable, Var]
1228
- ] = None,
1229
- on_double_click: Optional[
1230
- Union[EventHandler, EventSpec, list, Callable, Var]
1231
- ] = None,
1232
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1233
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1234
- on_mouse_down: Optional[
1235
- Union[EventHandler, EventSpec, list, Callable, Var]
1236
- ] = None,
1237
- on_mouse_enter: Optional[
1238
- Union[EventHandler, EventSpec, list, Callable, Var]
1239
- ] = None,
1240
- on_mouse_leave: Optional[
1241
- Union[EventHandler, EventSpec, list, Callable, Var]
1242
- ] = None,
1243
- on_mouse_move: Optional[
1244
- Union[EventHandler, EventSpec, list, Callable, Var]
1245
- ] = None,
1246
- on_mouse_out: Optional[
1247
- Union[EventHandler, EventSpec, list, Callable, Var]
1248
- ] = None,
1249
- on_mouse_over: Optional[
1250
- Union[EventHandler, EventSpec, list, Callable, Var]
1251
- ] = None,
1252
- on_mouse_up: Optional[
1253
- Union[EventHandler, EventSpec, list, Callable, Var]
1254
- ] = None,
1255
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1256
- on_unmount: Optional[
1257
- Union[EventHandler, EventSpec, list, Callable, Var]
1258
- ] = None,
1229
+ on_animation_end: Optional[EventType[[]]] = None,
1230
+ on_animation_start: Optional[EventType[[]]] = None,
1231
+ on_blur: Optional[EventType[[]]] = None,
1232
+ on_click: Optional[EventType[[]]] = None,
1233
+ on_context_menu: Optional[EventType[[]]] = None,
1234
+ on_double_click: Optional[EventType[[]]] = None,
1235
+ on_focus: Optional[EventType[[]]] = None,
1236
+ on_mount: Optional[EventType[[]]] = None,
1237
+ on_mouse_down: Optional[EventType[[]]] = None,
1238
+ on_mouse_enter: Optional[EventType[[]]] = None,
1239
+ on_mouse_leave: Optional[EventType[[]]] = None,
1240
+ on_mouse_move: Optional[EventType[[]]] = None,
1241
+ on_mouse_out: Optional[EventType[[]]] = None,
1242
+ on_mouse_over: Optional[EventType[[]]] = None,
1243
+ on_mouse_up: Optional[EventType[[]]] = None,
1244
+ on_scroll: Optional[EventType[[]]] = None,
1245
+ on_unmount: Optional[EventType[[]]] = None,
1259
1246
  **props,
1260
1247
  ) -> "Line":
1261
1248
  """Create the component.
@@ -1263,20 +1250,26 @@ class Line(Cartesian):
1263
1250
  Args:
1264
1251
  *children: The children of the component.
1265
1252
  type_: The interpolation type of line. And customized interpolation function can be set to type. It's the same as type in Area.
1266
- stroke: The color of the line stroke.
1267
- stroke_width: The width of the line stroke.
1268
- dot: The dot is shown when mouse enter a line chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally.
1269
- active_dot: The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally.
1270
- label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally.
1271
- hide: Hides the line when true, useful when toggling visibility state via legend.
1253
+ stroke: The color of the line stroke. Default: rx.color("accent", 9)
1254
+ stroke_width: The width of the line stroke. Default: 1
1255
+ dot: The dot is shown when mouse enter a line chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {"stroke": rx.color("accent", 10), "fill": rx.color("accent", 4)}
1256
+ active_dot: The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {"stroke": rx.color("accent", 2), "fill": rx.color("accent", 10)}
1257
+ label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
1258
+ hide: Hides the line when true, useful when toggling visibility state via legend. Default: False
1272
1259
  connect_nulls: Whether to connect a graph line across null points.
1273
1260
  unit: The unit of data. This option will be used in tooltip.
1274
- name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
1261
+ points: The coordinates of all the points in the line, usually calculated internally.
1262
+ stroke_dasharray: The pattern of dashes and gaps used to paint the line.
1275
1263
  layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
1276
1264
  data_key: The key of a group of data which should be unique in an area chart.
1277
- x_axis_id: The id of x-axis which is corresponding to the data.
1278
- y_axis_id: The id of y-axis which is corresponding to the data.
1279
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none'optional
1265
+ x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
1266
+ y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
1267
+ legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
1268
+ is_animation_active: If set false, animation of bar will be disabled. Default: True
1269
+ animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
1270
+ animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
1271
+ animation_easing: The type of easing function. Default: "ease"
1272
+ name: The name of data. This option will be used in tooltip and legend to represent the component. If no value was set to this option, the value of dataKey will be used alternatively.
1280
1273
  style: The style of the component.
1281
1274
  key: A unique key for the component.
1282
1275
  id: The id for the component.
@@ -1331,7 +1324,7 @@ class Scatter(Recharts):
1331
1324
  ] = None,
1332
1325
  x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1333
1326
  y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1334
- z_axis_id: Optional[Union[Var[str], str]] = None,
1327
+ z_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1335
1328
  line: Optional[Union[Var[bool], bool]] = None,
1336
1329
  shape: Optional[
1337
1330
  Union[
@@ -1355,7 +1348,6 @@ class Scatter(Recharts):
1355
1348
  Union[Literal["fitting", "joint"], Var[Literal["fitting", "joint"]]]
1356
1349
  ] = None,
1357
1350
  fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1358
- name: Optional[Union[Var[Union[int, str]], int, str]] = None,
1359
1351
  is_animation_active: Optional[Union[Var[bool], bool]] = None,
1360
1352
  animation_begin: Optional[Union[Var[int], int]] = None,
1361
1353
  animation_duration: Optional[Union[Var[int], int]] = None,
@@ -1371,41 +1363,21 @@ class Scatter(Recharts):
1371
1363
  class_name: Optional[Any] = None,
1372
1364
  autofocus: Optional[bool] = None,
1373
1365
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1374
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1375
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1376
- on_context_menu: Optional[
1377
- Union[EventHandler, EventSpec, list, Callable, Var]
1378
- ] = None,
1379
- on_double_click: Optional[
1380
- Union[EventHandler, EventSpec, list, Callable, Var]
1381
- ] = None,
1382
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1383
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1384
- on_mouse_down: Optional[
1385
- Union[EventHandler, EventSpec, list, Callable, Var]
1386
- ] = None,
1387
- on_mouse_enter: Optional[
1388
- Union[EventHandler, EventSpec, list, Callable, Var]
1389
- ] = None,
1390
- on_mouse_leave: Optional[
1391
- Union[EventHandler, EventSpec, list, Callable, Var]
1392
- ] = None,
1393
- on_mouse_move: Optional[
1394
- Union[EventHandler, EventSpec, list, Callable, Var]
1395
- ] = None,
1396
- on_mouse_out: Optional[
1397
- Union[EventHandler, EventSpec, list, Callable, Var]
1398
- ] = None,
1399
- on_mouse_over: Optional[
1400
- Union[EventHandler, EventSpec, list, Callable, Var]
1401
- ] = None,
1402
- on_mouse_up: Optional[
1403
- Union[EventHandler, EventSpec, list, Callable, Var]
1404
- ] = None,
1405
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1406
- on_unmount: Optional[
1407
- Union[EventHandler, EventSpec, list, Callable, Var]
1408
- ] = None,
1366
+ on_blur: Optional[EventType[[]]] = None,
1367
+ on_click: Optional[EventType[[]]] = None,
1368
+ on_context_menu: Optional[EventType[[]]] = None,
1369
+ on_double_click: Optional[EventType[[]]] = None,
1370
+ on_focus: Optional[EventType[[]]] = None,
1371
+ on_mount: Optional[EventType[[]]] = None,
1372
+ on_mouse_down: Optional[EventType[[]]] = None,
1373
+ on_mouse_enter: Optional[EventType[[]]] = None,
1374
+ on_mouse_leave: Optional[EventType[[]]] = None,
1375
+ on_mouse_move: Optional[EventType[[]]] = None,
1376
+ on_mouse_out: Optional[EventType[[]]] = None,
1377
+ on_mouse_over: Optional[EventType[[]]] = None,
1378
+ on_mouse_up: Optional[EventType[[]]] = None,
1379
+ on_scroll: Optional[EventType[[]]] = None,
1380
+ on_unmount: Optional[EventType[[]]] = None,
1409
1381
  **props,
1410
1382
  ) -> "Scatter":
1411
1383
  """Create the component.
@@ -1413,19 +1385,18 @@ class Scatter(Recharts):
1413
1385
  Args:
1414
1386
  *children: The children of the component.
1415
1387
  data: The source data, in which each element is an object.
1416
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' | 'none'
1417
- x_axis_id: The id of x-axis which is corresponding to the data.
1418
- y_axis_id: The id of y-axis which is corresponding to the data.
1419
- z_axis_id: The id of z-axis which is corresponding to the data.
1420
- line: If false set, line will not be drawn. If true set, line will be drawn which have the props calculated internally.
1421
- shape: If a string set, specified symbol will be used to show scatter item. 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye'
1422
- line_type: If 'joint' set, line will generated by just jointing all the points. If 'fitting' set, line will be generated by fitting algorithm. 'joint' | 'fitting'
1423
- fill: The fill
1424
- name: the name
1425
- is_animation_active: If set false, animation of bar will be disabled.
1426
- animation_begin: Specifies when the animation should begin, the unit of this option is ms, default 0.
1427
- animation_duration: Specifies the duration of animation, the unit of this option is ms, default 1500.
1428
- animation_easing: The type of easing function, default 'ease'
1388
+ legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' | 'none'. Default: "circle"
1389
+ x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
1390
+ y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
1391
+ z_axis_id: The id of z-axis which is corresponding to the data. Default: 0
1392
+ line: If false set, line will not be drawn. If true set, line will be drawn which have the props calculated internally. Default: False
1393
+ shape: If a string set, specified symbol will be used to show scatter item. 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye'. Default: "circle"
1394
+ line_type: If 'joint' set, line will generated by just jointing all the points. If 'fitting' set, line will be generated by fitting algorithm. 'joint' | 'fitting'. Default: "joint"
1395
+ fill: The fill color of the scatter. Default: rx.color("accent", 9)
1396
+ is_animation_active: If set false, animation of bar will be disabled. Default: True in CSR, False in SSR
1397
+ animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
1398
+ animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
1399
+ animation_easing: The type of easing function. Default: "ease"
1429
1400
  style: The style of the component.
1430
1401
  key: A unique key for the component.
1431
1402
  id: The id for the component.
@@ -1490,53 +1461,32 @@ class Funnel(Recharts):
1490
1461
  ]
1491
1462
  ] = None,
1492
1463
  stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1464
+ trapezoids: Optional[
1465
+ Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]
1466
+ ] = None,
1493
1467
  style: Optional[Style] = None,
1494
1468
  key: Optional[Any] = None,
1495
1469
  id: Optional[Any] = None,
1496
1470
  class_name: Optional[Any] = None,
1497
1471
  autofocus: Optional[bool] = None,
1498
1472
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1499
- on_animation_end: Optional[
1500
- Union[EventHandler, EventSpec, list, Callable, Var]
1501
- ] = None,
1502
- on_animation_start: Optional[
1503
- Union[EventHandler, EventSpec, list, Callable, Var]
1504
- ] = None,
1505
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1506
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1507
- on_context_menu: Optional[
1508
- Union[EventHandler, EventSpec, list, Callable, Var]
1509
- ] = None,
1510
- on_double_click: Optional[
1511
- Union[EventHandler, EventSpec, list, Callable, Var]
1512
- ] = None,
1513
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1514
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1515
- on_mouse_down: Optional[
1516
- Union[EventHandler, EventSpec, list, Callable, Var]
1517
- ] = None,
1518
- on_mouse_enter: Optional[
1519
- Union[EventHandler, EventSpec, list, Callable, Var]
1520
- ] = None,
1521
- on_mouse_leave: Optional[
1522
- Union[EventHandler, EventSpec, list, Callable, Var]
1523
- ] = None,
1524
- on_mouse_move: Optional[
1525
- Union[EventHandler, EventSpec, list, Callable, Var]
1526
- ] = None,
1527
- on_mouse_out: Optional[
1528
- Union[EventHandler, EventSpec, list, Callable, Var]
1529
- ] = None,
1530
- on_mouse_over: Optional[
1531
- Union[EventHandler, EventSpec, list, Callable, Var]
1532
- ] = None,
1533
- on_mouse_up: Optional[
1534
- Union[EventHandler, EventSpec, list, Callable, Var]
1535
- ] = None,
1536
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1537
- on_unmount: Optional[
1538
- Union[EventHandler, EventSpec, list, Callable, Var]
1539
- ] = None,
1473
+ on_animation_end: Optional[EventType[[]]] = None,
1474
+ on_animation_start: Optional[EventType[[]]] = None,
1475
+ on_blur: Optional[EventType[[]]] = None,
1476
+ on_click: Optional[EventType[[]]] = None,
1477
+ on_context_menu: Optional[EventType[[]]] = None,
1478
+ on_double_click: Optional[EventType[[]]] = None,
1479
+ on_focus: Optional[EventType[[]]] = None,
1480
+ on_mount: Optional[EventType[[]]] = None,
1481
+ on_mouse_down: Optional[EventType[[]]] = None,
1482
+ on_mouse_enter: Optional[EventType[[]]] = None,
1483
+ on_mouse_leave: Optional[EventType[[]]] = None,
1484
+ on_mouse_move: Optional[EventType[[]]] = None,
1485
+ on_mouse_out: Optional[EventType[[]]] = None,
1486
+ on_mouse_over: Optional[EventType[[]]] = None,
1487
+ on_mouse_up: Optional[EventType[[]]] = None,
1488
+ on_scroll: Optional[EventType[[]]] = None,
1489
+ on_unmount: Optional[EventType[[]]] = None,
1540
1490
  **props,
1541
1491
  ) -> "Funnel":
1542
1492
  """Create the component.
@@ -1544,14 +1494,15 @@ class Funnel(Recharts):
1544
1494
  Args:
1545
1495
  *children: The children of the component.
1546
1496
  data: The source data, in which each element is an object.
1547
- data_key: The key of a group of data which should be unique in an area chart.
1548
- name_key: The key or getter of a group of data which should be unique in a LineChart.
1549
- legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered.
1550
- is_animation_active: If set false, animation of line will be disabled.
1551
- animation_begin: Specifies when the animation should begin, the unit of this option is ms.
1552
- animation_duration: Specifies the duration of animation, the unit of this option is ms.
1553
- animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'
1554
- stroke: stroke color
1497
+ data_key: The key or getter of a group of data which should be unique in a FunnelChart.
1498
+ name_key: The key of each sector's name. Default: "name"
1499
+ legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. Default: "line"
1500
+ is_animation_active: If set false, animation of line will be disabled. Default: True
1501
+ animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
1502
+ animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
1503
+ animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. Default "ease"
1504
+ stroke: Stroke color. Default: rx.color("gray", 3)
1505
+ trapezoids: The coordinates of all the trapezoids in the funnel, usually calculated internally.
1555
1506
  style: The style of the component.
1556
1507
  key: A unique key for the component.
1557
1508
  id: The id for the component.
@@ -1571,65 +1522,43 @@ class ErrorBar(Recharts):
1571
1522
  def create( # type: ignore
1572
1523
  cls,
1573
1524
  *children,
1574
- direction: Optional[
1575
- Union[Literal["both", "x", "y"], Var[Literal["both", "x", "y"]]]
1576
- ] = None,
1525
+ direction: Optional[Union[Literal["x", "y"], Var[Literal["x", "y"]]]] = None,
1577
1526
  data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
1578
1527
  width: Optional[Union[Var[int], int]] = None,
1579
1528
  stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1580
- stroke_width: Optional[Union[Var[int], int]] = None,
1529
+ stroke_width: Optional[Union[Var[Union[float, int]], float, int]] = None,
1581
1530
  style: Optional[Style] = None,
1582
1531
  key: Optional[Any] = None,
1583
1532
  id: Optional[Any] = None,
1584
1533
  class_name: Optional[Any] = None,
1585
1534
  autofocus: Optional[bool] = None,
1586
1535
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1587
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1588
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1589
- on_context_menu: Optional[
1590
- Union[EventHandler, EventSpec, list, Callable, Var]
1591
- ] = None,
1592
- on_double_click: Optional[
1593
- Union[EventHandler, EventSpec, list, Callable, Var]
1594
- ] = None,
1595
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1596
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1597
- on_mouse_down: Optional[
1598
- Union[EventHandler, EventSpec, list, Callable, Var]
1599
- ] = None,
1600
- on_mouse_enter: Optional[
1601
- Union[EventHandler, EventSpec, list, Callable, Var]
1602
- ] = None,
1603
- on_mouse_leave: Optional[
1604
- Union[EventHandler, EventSpec, list, Callable, Var]
1605
- ] = None,
1606
- on_mouse_move: Optional[
1607
- Union[EventHandler, EventSpec, list, Callable, Var]
1608
- ] = None,
1609
- on_mouse_out: Optional[
1610
- Union[EventHandler, EventSpec, list, Callable, Var]
1611
- ] = None,
1612
- on_mouse_over: Optional[
1613
- Union[EventHandler, EventSpec, list, Callable, Var]
1614
- ] = None,
1615
- on_mouse_up: Optional[
1616
- Union[EventHandler, EventSpec, list, Callable, Var]
1617
- ] = None,
1618
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1619
- on_unmount: Optional[
1620
- Union[EventHandler, EventSpec, list, Callable, Var]
1621
- ] = None,
1536
+ on_blur: Optional[EventType[[]]] = None,
1537
+ on_click: Optional[EventType[[]]] = None,
1538
+ on_context_menu: Optional[EventType[[]]] = None,
1539
+ on_double_click: Optional[EventType[[]]] = None,
1540
+ on_focus: Optional[EventType[[]]] = None,
1541
+ on_mount: Optional[EventType[[]]] = None,
1542
+ on_mouse_down: Optional[EventType[[]]] = None,
1543
+ on_mouse_enter: Optional[EventType[[]]] = None,
1544
+ on_mouse_leave: Optional[EventType[[]]] = None,
1545
+ on_mouse_move: Optional[EventType[[]]] = None,
1546
+ on_mouse_out: Optional[EventType[[]]] = None,
1547
+ on_mouse_over: Optional[EventType[[]]] = None,
1548
+ on_mouse_up: Optional[EventType[[]]] = None,
1549
+ on_scroll: Optional[EventType[[]]] = None,
1550
+ on_unmount: Optional[EventType[[]]] = None,
1622
1551
  **props,
1623
1552
  ) -> "ErrorBar":
1624
1553
  """Create the component.
1625
1554
 
1626
1555
  Args:
1627
1556
  *children: The children of the component.
1628
- direction: The direction of error bar. 'x' | 'y' | 'both'
1557
+ direction: Only used for ScatterChart with error bars in two directions. Only accepts a value of "x" or "y" and makes the error bars lie in that direction.
1629
1558
  data_key: The key of a group of data which should be unique in an area chart.
1630
- width: The width of the error bar ends.
1631
- stroke: The stroke color of error bar.
1632
- stroke_width: The stroke width of error bar.
1559
+ width: The width of the error bar ends. Default: 5
1560
+ stroke: The stroke color of error bar. Default: rx.color("gray", 8)
1561
+ stroke_width: The stroke width of error bar. Default: 1.5
1633
1562
  style: The style of the component.
1634
1563
  key: A unique key for the component.
1635
1564
  id: The id for the component.
@@ -1665,52 +1594,32 @@ class Reference(Recharts):
1665
1594
  class_name: Optional[Any] = None,
1666
1595
  autofocus: Optional[bool] = None,
1667
1596
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1668
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1669
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1670
- on_context_menu: Optional[
1671
- Union[EventHandler, EventSpec, list, Callable, Var]
1672
- ] = None,
1673
- on_double_click: Optional[
1674
- Union[EventHandler, EventSpec, list, Callable, Var]
1675
- ] = None,
1676
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1677
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1678
- on_mouse_down: Optional[
1679
- Union[EventHandler, EventSpec, list, Callable, Var]
1680
- ] = None,
1681
- on_mouse_enter: Optional[
1682
- Union[EventHandler, EventSpec, list, Callable, Var]
1683
- ] = None,
1684
- on_mouse_leave: Optional[
1685
- Union[EventHandler, EventSpec, list, Callable, Var]
1686
- ] = None,
1687
- on_mouse_move: Optional[
1688
- Union[EventHandler, EventSpec, list, Callable, Var]
1689
- ] = None,
1690
- on_mouse_out: Optional[
1691
- Union[EventHandler, EventSpec, list, Callable, Var]
1692
- ] = None,
1693
- on_mouse_over: Optional[
1694
- Union[EventHandler, EventSpec, list, Callable, Var]
1695
- ] = None,
1696
- on_mouse_up: Optional[
1697
- Union[EventHandler, EventSpec, list, Callable, Var]
1698
- ] = None,
1699
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1700
- on_unmount: Optional[
1701
- Union[EventHandler, EventSpec, list, Callable, Var]
1702
- ] = None,
1597
+ on_blur: Optional[EventType[[]]] = None,
1598
+ on_click: Optional[EventType[[]]] = None,
1599
+ on_context_menu: Optional[EventType[[]]] = None,
1600
+ on_double_click: Optional[EventType[[]]] = None,
1601
+ on_focus: Optional[EventType[[]]] = None,
1602
+ on_mount: Optional[EventType[[]]] = None,
1603
+ on_mouse_down: Optional[EventType[[]]] = None,
1604
+ on_mouse_enter: Optional[EventType[[]]] = None,
1605
+ on_mouse_leave: Optional[EventType[[]]] = None,
1606
+ on_mouse_move: Optional[EventType[[]]] = None,
1607
+ on_mouse_out: Optional[EventType[[]]] = None,
1608
+ on_mouse_over: Optional[EventType[[]]] = None,
1609
+ on_mouse_up: Optional[EventType[[]]] = None,
1610
+ on_scroll: Optional[EventType[[]]] = None,
1611
+ on_unmount: Optional[EventType[[]]] = None,
1703
1612
  **props,
1704
1613
  ) -> "Reference":
1705
1614
  """Create the component.
1706
1615
 
1707
1616
  Args:
1708
1617
  *children: The children of the component.
1709
- x_axis_id: The id of x-axis which is corresponding to the data.
1710
- y_axis_id: The id of y-axis which is corresponding to the data.
1711
- if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas.
1618
+ x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
1619
+ y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
1620
+ if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
1712
1621
  label: If set a string or a number, default label will be drawn, and the option is content.
1713
- is_front: If set true, the line will be rendered in front of bars in BarChart, etc.
1622
+ is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
1714
1623
  style: The style of the component.
1715
1624
  key: A unique key for the component.
1716
1625
  id: The id for the component.
@@ -1751,41 +1660,21 @@ class ReferenceLine(Reference):
1751
1660
  class_name: Optional[Any] = None,
1752
1661
  autofocus: Optional[bool] = None,
1753
1662
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1754
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1755
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1756
- on_context_menu: Optional[
1757
- Union[EventHandler, EventSpec, list, Callable, Var]
1758
- ] = None,
1759
- on_double_click: Optional[
1760
- Union[EventHandler, EventSpec, list, Callable, Var]
1761
- ] = None,
1762
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1763
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1764
- on_mouse_down: Optional[
1765
- Union[EventHandler, EventSpec, list, Callable, Var]
1766
- ] = None,
1767
- on_mouse_enter: Optional[
1768
- Union[EventHandler, EventSpec, list, Callable, Var]
1769
- ] = None,
1770
- on_mouse_leave: Optional[
1771
- Union[EventHandler, EventSpec, list, Callable, Var]
1772
- ] = None,
1773
- on_mouse_move: Optional[
1774
- Union[EventHandler, EventSpec, list, Callable, Var]
1775
- ] = None,
1776
- on_mouse_out: Optional[
1777
- Union[EventHandler, EventSpec, list, Callable, Var]
1778
- ] = None,
1779
- on_mouse_over: Optional[
1780
- Union[EventHandler, EventSpec, list, Callable, Var]
1781
- ] = None,
1782
- on_mouse_up: Optional[
1783
- Union[EventHandler, EventSpec, list, Callable, Var]
1784
- ] = None,
1785
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1786
- on_unmount: Optional[
1787
- Union[EventHandler, EventSpec, list, Callable, Var]
1788
- ] = None,
1663
+ on_blur: Optional[EventType[[]]] = None,
1664
+ on_click: Optional[EventType[[]]] = None,
1665
+ on_context_menu: Optional[EventType[[]]] = None,
1666
+ on_double_click: Optional[EventType[[]]] = None,
1667
+ on_focus: Optional[EventType[[]]] = None,
1668
+ on_mount: Optional[EventType[[]]] = None,
1669
+ on_mouse_down: Optional[EventType[[]]] = None,
1670
+ on_mouse_enter: Optional[EventType[[]]] = None,
1671
+ on_mouse_leave: Optional[EventType[[]]] = None,
1672
+ on_mouse_move: Optional[EventType[[]]] = None,
1673
+ on_mouse_out: Optional[EventType[[]]] = None,
1674
+ on_mouse_over: Optional[EventType[[]]] = None,
1675
+ on_mouse_up: Optional[EventType[[]]] = None,
1676
+ on_scroll: Optional[EventType[[]]] = None,
1677
+ on_unmount: Optional[EventType[[]]] = None,
1789
1678
  **props,
1790
1679
  ) -> "ReferenceLine":
1791
1680
  """Create the component.
@@ -1795,13 +1684,13 @@ class ReferenceLine(Reference):
1795
1684
  x: If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn.
1796
1685
  y: If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn.
1797
1686
  stroke: The color of the reference line.
1798
- stroke_width: The width of the stroke.
1687
+ stroke_width: The width of the stroke. Default: 1
1799
1688
  segment: Array of endpoints in { x, y } format. These endpoints would be used to draw the ReferenceLine.
1800
- x_axis_id: The id of x-axis which is corresponding to the data.
1801
- y_axis_id: The id of y-axis which is corresponding to the data.
1802
- if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas.
1689
+ x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
1690
+ y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
1691
+ if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
1803
1692
  label: If set a string or a number, default label will be drawn, and the option is content.
1804
- is_front: If set true, the line will be rendered in front of bars in BarChart, etc.
1693
+ is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
1805
1694
  style: The style of the component.
1806
1695
  key: A unique key for the component.
1807
1696
  id: The id for the component.
@@ -1842,41 +1731,21 @@ class ReferenceDot(Reference):
1842
1731
  class_name: Optional[Any] = None,
1843
1732
  autofocus: Optional[bool] = None,
1844
1733
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1845
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1846
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1847
- on_context_menu: Optional[
1848
- Union[EventHandler, EventSpec, list, Callable, Var]
1849
- ] = None,
1850
- on_double_click: Optional[
1851
- Union[EventHandler, EventSpec, list, Callable, Var]
1852
- ] = None,
1853
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1854
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1855
- on_mouse_down: Optional[
1856
- Union[EventHandler, EventSpec, list, Callable, Var]
1857
- ] = None,
1858
- on_mouse_enter: Optional[
1859
- Union[EventHandler, EventSpec, list, Callable, Var]
1860
- ] = None,
1861
- on_mouse_leave: Optional[
1862
- Union[EventHandler, EventSpec, list, Callable, Var]
1863
- ] = None,
1864
- on_mouse_move: Optional[
1865
- Union[EventHandler, EventSpec, list, Callable, Var]
1866
- ] = None,
1867
- on_mouse_out: Optional[
1868
- Union[EventHandler, EventSpec, list, Callable, Var]
1869
- ] = None,
1870
- on_mouse_over: Optional[
1871
- Union[EventHandler, EventSpec, list, Callable, Var]
1872
- ] = None,
1873
- on_mouse_up: Optional[
1874
- Union[EventHandler, EventSpec, list, Callable, Var]
1875
- ] = None,
1876
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1877
- on_unmount: Optional[
1878
- Union[EventHandler, EventSpec, list, Callable, Var]
1879
- ] = None,
1734
+ on_blur: Optional[EventType[[]]] = None,
1735
+ on_click: Optional[EventType[[]]] = None,
1736
+ on_context_menu: Optional[EventType[[]]] = None,
1737
+ on_double_click: Optional[EventType[[]]] = None,
1738
+ on_focus: Optional[EventType[[]]] = None,
1739
+ on_mount: Optional[EventType[[]]] = None,
1740
+ on_mouse_down: Optional[EventType[[]]] = None,
1741
+ on_mouse_enter: Optional[EventType[[]]] = None,
1742
+ on_mouse_leave: Optional[EventType[[]]] = None,
1743
+ on_mouse_move: Optional[EventType[[]]] = None,
1744
+ on_mouse_out: Optional[EventType[[]]] = None,
1745
+ on_mouse_over: Optional[EventType[[]]] = None,
1746
+ on_mouse_up: Optional[EventType[[]]] = None,
1747
+ on_scroll: Optional[EventType[[]]] = None,
1748
+ on_unmount: Optional[EventType[[]]] = None,
1880
1749
  **props,
1881
1750
  ) -> "ReferenceDot":
1882
1751
  """Create the component.
@@ -1888,11 +1757,11 @@ class ReferenceDot(Reference):
1888
1757
  r: The radius of dot.
1889
1758
  fill: The color of the area fill.
1890
1759
  stroke: The color of the line stroke.
1891
- x_axis_id: The id of x-axis which is corresponding to the data.
1892
- y_axis_id: The id of y-axis which is corresponding to the data.
1893
- if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas.
1760
+ x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
1761
+ y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
1762
+ if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
1894
1763
  label: If set a string or a number, default label will be drawn, and the option is content.
1895
- is_front: If set true, the line will be rendered in front of bars in BarChart, etc.
1764
+ is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
1896
1765
  style: The style of the component.
1897
1766
  key: A unique key for the component.
1898
1767
  id: The id for the component.
@@ -1934,41 +1803,21 @@ class ReferenceArea(Recharts):
1934
1803
  class_name: Optional[Any] = None,
1935
1804
  autofocus: Optional[bool] = None,
1936
1805
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1937
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1938
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1939
- on_context_menu: Optional[
1940
- Union[EventHandler, EventSpec, list, Callable, Var]
1941
- ] = None,
1942
- on_double_click: Optional[
1943
- Union[EventHandler, EventSpec, list, Callable, Var]
1944
- ] = None,
1945
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1946
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1947
- on_mouse_down: Optional[
1948
- Union[EventHandler, EventSpec, list, Callable, Var]
1949
- ] = None,
1950
- on_mouse_enter: Optional[
1951
- Union[EventHandler, EventSpec, list, Callable, Var]
1952
- ] = None,
1953
- on_mouse_leave: Optional[
1954
- Union[EventHandler, EventSpec, list, Callable, Var]
1955
- ] = None,
1956
- on_mouse_move: Optional[
1957
- Union[EventHandler, EventSpec, list, Callable, Var]
1958
- ] = None,
1959
- on_mouse_out: Optional[
1960
- Union[EventHandler, EventSpec, list, Callable, Var]
1961
- ] = None,
1962
- on_mouse_over: Optional[
1963
- Union[EventHandler, EventSpec, list, Callable, Var]
1964
- ] = None,
1965
- on_mouse_up: Optional[
1966
- Union[EventHandler, EventSpec, list, Callable, Var]
1967
- ] = None,
1968
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1969
- on_unmount: Optional[
1970
- Union[EventHandler, EventSpec, list, Callable, Var]
1971
- ] = None,
1806
+ on_blur: Optional[EventType[[]]] = None,
1807
+ on_click: Optional[EventType[[]]] = None,
1808
+ on_context_menu: Optional[EventType[[]]] = None,
1809
+ on_double_click: Optional[EventType[[]]] = None,
1810
+ on_focus: Optional[EventType[[]]] = None,
1811
+ on_mount: Optional[EventType[[]]] = None,
1812
+ on_mouse_down: Optional[EventType[[]]] = None,
1813
+ on_mouse_enter: Optional[EventType[[]]] = None,
1814
+ on_mouse_leave: Optional[EventType[[]]] = None,
1815
+ on_mouse_move: Optional[EventType[[]]] = None,
1816
+ on_mouse_out: Optional[EventType[[]]] = None,
1817
+ on_mouse_over: Optional[EventType[[]]] = None,
1818
+ on_mouse_up: Optional[EventType[[]]] = None,
1819
+ on_scroll: Optional[EventType[[]]] = None,
1820
+ on_unmount: Optional[EventType[[]]] = None,
1972
1821
  **props,
1973
1822
  ) -> "ReferenceArea":
1974
1823
  """Create the component.
@@ -1984,8 +1833,8 @@ class ReferenceArea(Recharts):
1984
1833
  x2: A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys. If one of x1 or x2 is invalidate, the area will cover along x-axis.
1985
1834
  y1: A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis.
1986
1835
  y2: A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis.
1987
- if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas.
1988
- is_front: If set true, the line will be rendered in front of bars in BarChart, etc.
1836
+ if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
1837
+ is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
1989
1838
  style: The style of the component.
1990
1839
  key: A unique key for the component.
1991
1840
  id: The id for the component.
@@ -2015,51 +1864,31 @@ class Grid(Recharts):
2015
1864
  class_name: Optional[Any] = None,
2016
1865
  autofocus: Optional[bool] = None,
2017
1866
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
2018
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2019
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2020
- on_context_menu: Optional[
2021
- Union[EventHandler, EventSpec, list, Callable, Var]
2022
- ] = None,
2023
- on_double_click: Optional[
2024
- Union[EventHandler, EventSpec, list, Callable, Var]
2025
- ] = None,
2026
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2027
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2028
- on_mouse_down: Optional[
2029
- Union[EventHandler, EventSpec, list, Callable, Var]
2030
- ] = None,
2031
- on_mouse_enter: Optional[
2032
- Union[EventHandler, EventSpec, list, Callable, Var]
2033
- ] = None,
2034
- on_mouse_leave: Optional[
2035
- Union[EventHandler, EventSpec, list, Callable, Var]
2036
- ] = None,
2037
- on_mouse_move: Optional[
2038
- Union[EventHandler, EventSpec, list, Callable, Var]
2039
- ] = None,
2040
- on_mouse_out: Optional[
2041
- Union[EventHandler, EventSpec, list, Callable, Var]
2042
- ] = None,
2043
- on_mouse_over: Optional[
2044
- Union[EventHandler, EventSpec, list, Callable, Var]
2045
- ] = None,
2046
- on_mouse_up: Optional[
2047
- Union[EventHandler, EventSpec, list, Callable, Var]
2048
- ] = None,
2049
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2050
- on_unmount: Optional[
2051
- Union[EventHandler, EventSpec, list, Callable, Var]
2052
- ] = None,
1867
+ on_blur: Optional[EventType[[]]] = None,
1868
+ on_click: Optional[EventType[[]]] = None,
1869
+ on_context_menu: Optional[EventType[[]]] = None,
1870
+ on_double_click: Optional[EventType[[]]] = None,
1871
+ on_focus: Optional[EventType[[]]] = None,
1872
+ on_mount: Optional[EventType[[]]] = None,
1873
+ on_mouse_down: Optional[EventType[[]]] = None,
1874
+ on_mouse_enter: Optional[EventType[[]]] = None,
1875
+ on_mouse_leave: Optional[EventType[[]]] = None,
1876
+ on_mouse_move: Optional[EventType[[]]] = None,
1877
+ on_mouse_out: Optional[EventType[[]]] = None,
1878
+ on_mouse_over: Optional[EventType[[]]] = None,
1879
+ on_mouse_up: Optional[EventType[[]]] = None,
1880
+ on_scroll: Optional[EventType[[]]] = None,
1881
+ on_unmount: Optional[EventType[[]]] = None,
2053
1882
  **props,
2054
1883
  ) -> "Grid":
2055
1884
  """Create the component.
2056
1885
 
2057
1886
  Args:
2058
1887
  *children: The children of the component.
2059
- x: The x-coordinate of grid.
2060
- y: The y-coordinate of grid.
2061
- width: The width of grid.
2062
- height: The height of grid.
1888
+ x: The x-coordinate of grid. Default: 0
1889
+ y: The y-coordinate of grid. Default: 0
1890
+ width: The width of grid. Default: 0
1891
+ height: The height of grid. Default: 0
2063
1892
  style: The style of the component.
2064
1893
  key: A unique key for the component.
2065
1894
  id: The id for the component.
@@ -2101,59 +1930,39 @@ class CartesianGrid(Grid):
2101
1930
  class_name: Optional[Any] = None,
2102
1931
  autofocus: Optional[bool] = None,
2103
1932
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
2104
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2105
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2106
- on_context_menu: Optional[
2107
- Union[EventHandler, EventSpec, list, Callable, Var]
2108
- ] = None,
2109
- on_double_click: Optional[
2110
- Union[EventHandler, EventSpec, list, Callable, Var]
2111
- ] = None,
2112
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2113
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2114
- on_mouse_down: Optional[
2115
- Union[EventHandler, EventSpec, list, Callable, Var]
2116
- ] = None,
2117
- on_mouse_enter: Optional[
2118
- Union[EventHandler, EventSpec, list, Callable, Var]
2119
- ] = None,
2120
- on_mouse_leave: Optional[
2121
- Union[EventHandler, EventSpec, list, Callable, Var]
2122
- ] = None,
2123
- on_mouse_move: Optional[
2124
- Union[EventHandler, EventSpec, list, Callable, Var]
2125
- ] = None,
2126
- on_mouse_out: Optional[
2127
- Union[EventHandler, EventSpec, list, Callable, Var]
2128
- ] = None,
2129
- on_mouse_over: Optional[
2130
- Union[EventHandler, EventSpec, list, Callable, Var]
2131
- ] = None,
2132
- on_mouse_up: Optional[
2133
- Union[EventHandler, EventSpec, list, Callable, Var]
2134
- ] = None,
2135
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2136
- on_unmount: Optional[
2137
- Union[EventHandler, EventSpec, list, Callable, Var]
2138
- ] = None,
1933
+ on_blur: Optional[EventType[[]]] = None,
1934
+ on_click: Optional[EventType[[]]] = None,
1935
+ on_context_menu: Optional[EventType[[]]] = None,
1936
+ on_double_click: Optional[EventType[[]]] = None,
1937
+ on_focus: Optional[EventType[[]]] = None,
1938
+ on_mount: Optional[EventType[[]]] = None,
1939
+ on_mouse_down: Optional[EventType[[]]] = None,
1940
+ on_mouse_enter: Optional[EventType[[]]] = None,
1941
+ on_mouse_leave: Optional[EventType[[]]] = None,
1942
+ on_mouse_move: Optional[EventType[[]]] = None,
1943
+ on_mouse_out: Optional[EventType[[]]] = None,
1944
+ on_mouse_over: Optional[EventType[[]]] = None,
1945
+ on_mouse_up: Optional[EventType[[]]] = None,
1946
+ on_scroll: Optional[EventType[[]]] = None,
1947
+ on_unmount: Optional[EventType[[]]] = None,
2139
1948
  **props,
2140
1949
  ) -> "CartesianGrid":
2141
1950
  """Create the component.
2142
1951
 
2143
1952
  Args:
2144
1953
  *children: The children of the component.
2145
- horizontal: The horizontal line configuration.
2146
- vertical: The vertical line configuration.
2147
- vertical_points: The x-coordinates in pixel values of all vertical lines.
2148
- horizontal_points: The x-coordinates in pixel values of all vertical lines.
1954
+ horizontal: The horizontal line configuration. Default: True
1955
+ vertical: The vertical line configuration. Default: True
1956
+ vertical_points: The x-coordinates in pixel values of all vertical lines. Default: []
1957
+ horizontal_points: The x-coordinates in pixel values of all vertical lines. Default: []
2149
1958
  fill: The background of grid.
2150
- fill_opacity: The opacity of the background used to fill the space between grid lines
2151
- stroke_dasharray: The pattern of dashes and gaps used to paint the lines of the grid
2152
- stroke: the stroke color of grid
2153
- x: The x-coordinate of grid.
2154
- y: The y-coordinate of grid.
2155
- width: The width of grid.
2156
- height: The height of grid.
1959
+ fill_opacity: The opacity of the background used to fill the space between grid lines.
1960
+ stroke_dasharray: The pattern of dashes and gaps used to paint the lines of the grid.
1961
+ stroke: the stroke color of grid. Default: rx.color("gray", 7)
1962
+ x: The x-coordinate of grid. Default: 0
1963
+ y: The y-coordinate of grid. Default: 0
1964
+ width: The width of grid. Default: 0
1965
+ height: The height of grid. Default: 0
2157
1966
  style: The style of the component.
2158
1967
  key: A unique key for the component.
2159
1968
  id: The id for the component.
@@ -2179,7 +1988,9 @@ class CartesianAxis(Grid):
2179
1988
  Var[Literal["bottom", "left", "right", "top"]],
2180
1989
  ]
2181
1990
  ] = None,
1991
+ view_box: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
2182
1992
  axis_line: Optional[Union[Var[bool], bool]] = None,
1993
+ tick: Optional[Union[Var[bool], bool]] = None,
2183
1994
  tick_line: Optional[Union[Var[bool], bool]] = None,
2184
1995
  tick_size: Optional[Union[Var[int], int]] = None,
2185
1996
  interval: Optional[
@@ -2188,8 +1999,7 @@ class CartesianAxis(Grid):
2188
1999
  Var[Literal["preserveEnd", "preserveStart", "preserveStartEnd"]],
2189
2000
  ]
2190
2001
  ] = None,
2191
- ticks: Optional[Union[Var[bool], bool]] = None,
2192
- label: Optional[Union[Var[str], str]] = None,
2002
+ label: Optional[Union[Var[Union[int, str]], int, str]] = None,
2193
2003
  mirror: Optional[Union[Var[bool], bool]] = None,
2194
2004
  tick_margin: Optional[Union[Var[int], int]] = None,
2195
2005
  x: Optional[Union[Var[int], int]] = None,
@@ -2202,60 +2012,41 @@ class CartesianAxis(Grid):
2202
2012
  class_name: Optional[Any] = None,
2203
2013
  autofocus: Optional[bool] = None,
2204
2014
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
2205
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2206
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2207
- on_context_menu: Optional[
2208
- Union[EventHandler, EventSpec, list, Callable, Var]
2209
- ] = None,
2210
- on_double_click: Optional[
2211
- Union[EventHandler, EventSpec, list, Callable, Var]
2212
- ] = None,
2213
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2214
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2215
- on_mouse_down: Optional[
2216
- Union[EventHandler, EventSpec, list, Callable, Var]
2217
- ] = None,
2218
- on_mouse_enter: Optional[
2219
- Union[EventHandler, EventSpec, list, Callable, Var]
2220
- ] = None,
2221
- on_mouse_leave: Optional[
2222
- Union[EventHandler, EventSpec, list, Callable, Var]
2223
- ] = None,
2224
- on_mouse_move: Optional[
2225
- Union[EventHandler, EventSpec, list, Callable, Var]
2226
- ] = None,
2227
- on_mouse_out: Optional[
2228
- Union[EventHandler, EventSpec, list, Callable, Var]
2229
- ] = None,
2230
- on_mouse_over: Optional[
2231
- Union[EventHandler, EventSpec, list, Callable, Var]
2232
- ] = None,
2233
- on_mouse_up: Optional[
2234
- Union[EventHandler, EventSpec, list, Callable, Var]
2235
- ] = None,
2236
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2237
- on_unmount: Optional[
2238
- Union[EventHandler, EventSpec, list, Callable, Var]
2239
- ] = None,
2015
+ on_blur: Optional[EventType[[]]] = None,
2016
+ on_click: Optional[EventType[[]]] = None,
2017
+ on_context_menu: Optional[EventType[[]]] = None,
2018
+ on_double_click: Optional[EventType[[]]] = None,
2019
+ on_focus: Optional[EventType[[]]] = None,
2020
+ on_mount: Optional[EventType[[]]] = None,
2021
+ on_mouse_down: Optional[EventType[[]]] = None,
2022
+ on_mouse_enter: Optional[EventType[[]]] = None,
2023
+ on_mouse_leave: Optional[EventType[[]]] = None,
2024
+ on_mouse_move: Optional[EventType[[]]] = None,
2025
+ on_mouse_out: Optional[EventType[[]]] = None,
2026
+ on_mouse_over: Optional[EventType[[]]] = None,
2027
+ on_mouse_up: Optional[EventType[[]]] = None,
2028
+ on_scroll: Optional[EventType[[]]] = None,
2029
+ on_unmount: Optional[EventType[[]]] = None,
2240
2030
  **props,
2241
2031
  ) -> "CartesianAxis":
2242
2032
  """Create the component.
2243
2033
 
2244
2034
  Args:
2245
2035
  *children: The children of the component.
2246
- orientation: The orientation of axis 'top' | 'bottom' | 'left' | 'right'
2247
- axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line.
2248
- tick_line: If set false, no axis tick lines will be drawn. If set a object, the option is the configuration of tick lines.
2249
- tick_size: The length of tick line.
2250
- interval: If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically.
2251
- ticks: If set false, no ticks will be drawn.
2036
+ orientation: The orientation of axis 'top' | 'bottom' | 'left' | 'right'. Default: "bottom"
2037
+ view_box: The box of viewing area. Default: {"x": 0, "y": 0, "width": 0, "height": 0}
2038
+ axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line. Default: True
2039
+ tick: If set false, no ticks will be drawn.
2040
+ tick_line: If set false, no axis tick lines will be drawn. If set a object, the option is the configuration of tick lines. Default: True
2041
+ tick_size: The length of tick line. Default: 6
2042
+ interval: If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically. Default: "preserveEnd"
2252
2043
  label: If set a string or a number, default label will be drawn, and the option is content.
2253
- mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside.
2044
+ mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. Default: False
2254
2045
  tick_margin: The margin between tick line and tick.
2255
- x: The x-coordinate of grid.
2256
- y: The y-coordinate of grid.
2257
- width: The width of grid.
2258
- height: The height of grid.
2046
+ x: The x-coordinate of grid. Default: 0
2047
+ y: The y-coordinate of grid. Default: 0
2048
+ width: The width of grid. Default: 0
2049
+ height: The height of grid. Default: 0
2259
2050
  style: The style of the component.
2260
2051
  key: A unique key for the component.
2261
2052
  id: The id for the component.