reflex 0.6.2a2__py3-none-any.whl → 0.6.3__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.
- reflex/__init__.py +3 -2
- reflex/__init__.pyi +3 -1
- reflex/components/base/app_wrap.pyi +17 -37
- reflex/components/base/body.pyi +17 -37
- reflex/components/base/document.pyi +77 -177
- reflex/components/base/error_boundary.pyi +18 -38
- reflex/components/base/fragment.pyi +17 -37
- reflex/components/base/head.pyi +32 -72
- reflex/components/base/link.pyi +32 -72
- reflex/components/base/meta.pyi +62 -142
- reflex/components/base/script.py +4 -4
- reflex/components/base/script.pyi +20 -40
- reflex/components/component.py +30 -19
- reflex/components/core/banner.pyi +77 -177
- reflex/components/core/client_side_routing.pyi +32 -72
- reflex/components/core/clipboard.py +3 -3
- reflex/components/core/clipboard.pyi +18 -38
- reflex/components/core/debounce.py +2 -2
- reflex/components/core/debounce.pyi +18 -38
- reflex/components/core/html.pyi +17 -37
- reflex/components/core/upload.py +4 -4
- reflex/components/core/upload.pyi +65 -145
- reflex/components/datadisplay/code.pyi +32 -72
- reflex/components/datadisplay/dataeditor.py +13 -13
- reflex/components/datadisplay/dataeditor.pyi +33 -83
- reflex/components/dynamic.py +6 -7
- reflex/components/el/__init__.pyi +1 -0
- reflex/components/el/element.pyi +17 -37
- reflex/components/el/elements/base.pyi +17 -37
- reflex/components/el/elements/forms.py +29 -14
- reflex/components/el/elements/forms.pyi +222 -504
- reflex/components/el/elements/inline.pyi +422 -982
- reflex/components/el/elements/media.pyi +377 -877
- reflex/components/el/elements/metadata.pyi +92 -212
- reflex/components/el/elements/other.pyi +107 -247
- reflex/components/el/elements/scripts.pyi +47 -107
- reflex/components/el/elements/sectioning.pyi +227 -527
- reflex/components/el/elements/tables.pyi +152 -352
- reflex/components/el/elements/typography.pyi +227 -527
- reflex/components/gridjs/datatable.py +2 -2
- reflex/components/gridjs/datatable.pyi +32 -72
- reflex/components/lucide/icon.pyi +32 -72
- reflex/components/markdown/markdown.pyi +16 -36
- reflex/components/moment/moment.py +2 -2
- reflex/components/moment/moment.pyi +18 -38
- reflex/components/next/base.pyi +17 -37
- reflex/components/next/image.py +3 -3
- reflex/components/next/image.pyi +19 -39
- reflex/components/next/link.pyi +17 -37
- reflex/components/next/video.pyi +17 -37
- reflex/components/plotly/plotly.py +1 -1
- reflex/components/plotly/plotly.pyi +35 -87
- reflex/components/radix/primitives/accordion.py +14 -2
- reflex/components/radix/primitives/accordion.pyi +110 -250
- reflex/components/radix/primitives/base.pyi +32 -72
- reflex/components/radix/primitives/drawer.py +30 -12
- reflex/components/radix/primitives/drawer.pyi +159 -373
- reflex/components/radix/primitives/form.py +3 -3
- reflex/components/radix/primitives/form.pyi +158 -364
- reflex/components/radix/primitives/progress.pyi +77 -177
- reflex/components/radix/primitives/slider.py +17 -3
- reflex/components/radix/primitives/slider.pyi +81 -183
- reflex/components/radix/themes/base.pyi +107 -247
- reflex/components/radix/themes/color_mode.pyi +48 -117
- reflex/components/radix/themes/components/alert_dialog.py +5 -5
- reflex/components/radix/themes/components/alert_dialog.pyi +111 -259
- reflex/components/radix/themes/components/aspect_ratio.pyi +17 -37
- reflex/components/radix/themes/components/avatar.pyi +17 -37
- reflex/components/radix/themes/components/badge.pyi +17 -37
- reflex/components/radix/themes/components/button.pyi +17 -37
- reflex/components/radix/themes/components/callout.pyi +77 -177
- reflex/components/radix/themes/components/card.pyi +17 -37
- reflex/components/radix/themes/components/checkbox.py +3 -3
- reflex/components/radix/themes/components/checkbox.pyi +50 -110
- reflex/components/radix/themes/components/checkbox_cards.pyi +32 -72
- reflex/components/radix/themes/components/checkbox_group.pyi +32 -72
- reflex/components/radix/themes/components/context_menu.py +11 -11
- reflex/components/radix/themes/components/context_menu.pyi +132 -312
- reflex/components/radix/themes/components/data_list.pyi +62 -142
- reflex/components/radix/themes/components/dialog.py +7 -7
- reflex/components/radix/themes/components/dialog.pyi +114 -268
- reflex/components/radix/themes/components/dropdown_menu.py +13 -13
- reflex/components/radix/themes/components/dropdown_menu.pyi +134 -316
- reflex/components/radix/themes/components/hover_card.py +2 -2
- reflex/components/radix/themes/components/hover_card.pyi +64 -148
- reflex/components/radix/themes/components/icon_button.pyi +17 -37
- reflex/components/radix/themes/components/inset.pyi +17 -37
- reflex/components/radix/themes/components/popover.py +8 -8
- reflex/components/radix/themes/components/popover.pyi +69 -163
- reflex/components/radix/themes/components/progress.pyi +17 -37
- reflex/components/radix/themes/components/radio.pyi +17 -37
- reflex/components/radix/themes/components/radio_cards.py +2 -2
- reflex/components/radix/themes/components/radio_cards.pyi +33 -75
- reflex/components/radix/themes/components/radio_group.py +4 -4
- reflex/components/radix/themes/components/radio_group.pyi +63 -143
- reflex/components/radix/themes/components/scroll_area.pyi +17 -37
- reflex/components/radix/themes/components/segmented_control.py +14 -2
- reflex/components/radix/themes/components/segmented_control.pyi +35 -73
- reflex/components/radix/themes/components/select.py +6 -5
- reflex/components/radix/themes/components/select.pyi +146 -338
- reflex/components/radix/themes/components/separator.pyi +17 -37
- reflex/components/radix/themes/components/skeleton.pyi +17 -37
- reflex/components/radix/themes/components/slider.py +19 -3
- reflex/components/radix/themes/components/slider.pyi +23 -41
- reflex/components/radix/themes/components/spinner.pyi +17 -37
- reflex/components/radix/themes/components/switch.py +2 -2
- reflex/components/radix/themes/components/switch.pyi +18 -38
- reflex/components/radix/themes/components/table.pyi +107 -247
- reflex/components/radix/themes/components/tabs.py +2 -2
- reflex/components/radix/themes/components/tabs.pyi +79 -179
- reflex/components/radix/themes/components/text_area.py +0 -16
- reflex/components/radix/themes/components/text_area.pyi +20 -42
- reflex/components/radix/themes/components/text_field.py +6 -6
- reflex/components/radix/themes/components/text_field.pyi +53 -117
- reflex/components/radix/themes/components/tooltip.py +4 -4
- reflex/components/radix/themes/components/tooltip.pyi +20 -46
- reflex/components/radix/themes/layout/base.pyi +17 -37
- reflex/components/radix/themes/layout/box.pyi +17 -37
- reflex/components/radix/themes/layout/center.pyi +17 -37
- reflex/components/radix/themes/layout/container.pyi +17 -37
- reflex/components/radix/themes/layout/flex.pyi +17 -37
- reflex/components/radix/themes/layout/grid.pyi +17 -37
- reflex/components/radix/themes/layout/list.pyi +77 -177
- reflex/components/radix/themes/layout/section.pyi +17 -37
- reflex/components/radix/themes/layout/spacer.pyi +17 -37
- reflex/components/radix/themes/layout/stack.pyi +47 -107
- reflex/components/radix/themes/typography/blockquote.pyi +17 -37
- reflex/components/radix/themes/typography/code.pyi +17 -37
- reflex/components/radix/themes/typography/heading.pyi +17 -37
- reflex/components/radix/themes/typography/link.pyi +17 -37
- reflex/components/radix/themes/typography/text.pyi +107 -247
- reflex/components/react_player/audio.pyi +33 -69
- reflex/components/react_player/react_player.py +17 -17
- reflex/components/react_player/react_player.pyi +33 -69
- reflex/components/react_player/video.pyi +33 -69
- reflex/components/recharts/cartesian.py +216 -186
- reflex/components/recharts/cartesian.pyi +623 -832
- reflex/components/recharts/charts.py +68 -65
- reflex/components/recharts/charts.pyi +213 -433
- reflex/components/recharts/general.py +27 -21
- reflex/components/recharts/general.pyi +94 -189
- reflex/components/recharts/polar.py +135 -97
- reflex/components/recharts/polar.pyi +219 -229
- reflex/components/recharts/recharts.py +5 -1
- reflex/components/recharts/recharts.pyi +37 -73
- reflex/components/sonner/toast.py +1 -1
- reflex/components/sonner/toast.pyi +17 -37
- reflex/components/suneditor/editor.pyi +26 -52
- reflex/components/tags/iter_tag.py +2 -2
- reflex/config.py +16 -0
- reflex/constants/__init__.py +2 -0
- reflex/constants/compiler.py +25 -0
- reflex/constants/installer.py +17 -16
- reflex/constants/state.py +11 -0
- reflex/constants/style.py +1 -1
- reflex/custom_components/custom_components.py +1 -1
- reflex/event.py +337 -84
- reflex/experimental/layout.pyi +78 -180
- reflex/istate/dynamic.py +3 -0
- reflex/state.py +197 -118
- reflex/style.py +5 -0
- reflex/testing.py +8 -5
- reflex/utils/compat.py +1 -3
- reflex/utils/exceptions.py +8 -0
- reflex/utils/path_ops.py +2 -2
- reflex/utils/prerequisites.py +2 -2
- reflex/utils/pyi_generator.py +44 -4
- reflex/utils/registry.py +17 -3
- reflex/utils/telemetry.py +1 -3
- reflex/utils/types.py +60 -16
- reflex/vars/__init__.py +2 -0
- reflex/vars/base.py +127 -72
- reflex/vars/object.py +5 -1
- reflex/vars/sequence.py +15 -3
- {reflex-0.6.2a2.dist-info → reflex-0.6.3.dist-info}/METADATA +3 -3
- {reflex-0.6.2a2.dist-info → reflex-0.6.3.dist-info}/RECORD +179 -177
- {reflex-0.6.2a2.dist-info → reflex-0.6.3.dist-info}/LICENSE +0 -0
- {reflex-0.6.2a2.dist-info → reflex-0.6.3.dist-info}/WHEEL +0 -0
- {reflex-0.6.2a2.dist-info → reflex-0.6.3.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,
|
|
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
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -28,41 +28,21 @@ class ChartBase(RechartsCharts):
|
|
|
28
28
|
class_name: Optional[Any] = None,
|
|
29
29
|
autofocus: Optional[bool] = None,
|
|
30
30
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
31
|
-
on_blur: Optional[
|
|
32
|
-
on_click: Optional[
|
|
33
|
-
on_context_menu: Optional[
|
|
34
|
-
|
|
35
|
-
] = None,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
] = None,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
] = None,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
] = None,
|
|
47
|
-
on_mouse_leave: Optional[
|
|
48
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
49
|
-
] = None,
|
|
50
|
-
on_mouse_move: Optional[
|
|
51
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
52
|
-
] = None,
|
|
53
|
-
on_mouse_out: Optional[
|
|
54
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
55
|
-
] = None,
|
|
56
|
-
on_mouse_over: Optional[
|
|
57
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
58
|
-
] = None,
|
|
59
|
-
on_mouse_up: Optional[
|
|
60
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
61
|
-
] = None,
|
|
62
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
63
|
-
on_unmount: Optional[
|
|
64
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
65
|
-
] = None,
|
|
31
|
+
on_blur: Optional[EventType[[]]] = None,
|
|
32
|
+
on_click: Optional[EventType[[]]] = None,
|
|
33
|
+
on_context_menu: Optional[EventType[[]]] = None,
|
|
34
|
+
on_double_click: Optional[EventType[[]]] = None,
|
|
35
|
+
on_focus: Optional[EventType[[]]] = None,
|
|
36
|
+
on_mount: Optional[EventType[[]]] = None,
|
|
37
|
+
on_mouse_down: Optional[EventType[[]]] = None,
|
|
38
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
39
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
40
|
+
on_mouse_move: Optional[EventType[[]]] = None,
|
|
41
|
+
on_mouse_out: Optional[EventType[[]]] = None,
|
|
42
|
+
on_mouse_over: Optional[EventType[[]]] = None,
|
|
43
|
+
on_mouse_up: Optional[EventType[[]]] = None,
|
|
44
|
+
on_scroll: Optional[EventType[[]]] = None,
|
|
45
|
+
on_unmount: Optional[EventType[[]]] = None,
|
|
66
46
|
**props,
|
|
67
47
|
) -> "ChartBase":
|
|
68
48
|
"""Create a chart component.
|
|
@@ -116,41 +96,21 @@ class CategoricalChartBase(ChartBase):
|
|
|
116
96
|
class_name: Optional[Any] = None,
|
|
117
97
|
autofocus: Optional[bool] = None,
|
|
118
98
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
119
|
-
on_blur: Optional[
|
|
120
|
-
on_click: Optional[
|
|
121
|
-
on_context_menu: Optional[
|
|
122
|
-
|
|
123
|
-
] = None,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
] = None,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
] = None,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
] = None,
|
|
135
|
-
on_mouse_leave: Optional[
|
|
136
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
137
|
-
] = None,
|
|
138
|
-
on_mouse_move: Optional[
|
|
139
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
140
|
-
] = None,
|
|
141
|
-
on_mouse_out: Optional[
|
|
142
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
143
|
-
] = None,
|
|
144
|
-
on_mouse_over: Optional[
|
|
145
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
146
|
-
] = None,
|
|
147
|
-
on_mouse_up: Optional[
|
|
148
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
149
|
-
] = None,
|
|
150
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
151
|
-
on_unmount: Optional[
|
|
152
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
153
|
-
] = None,
|
|
99
|
+
on_blur: Optional[EventType[[]]] = None,
|
|
100
|
+
on_click: Optional[EventType[[]]] = None,
|
|
101
|
+
on_context_menu: Optional[EventType[[]]] = None,
|
|
102
|
+
on_double_click: Optional[EventType[[]]] = None,
|
|
103
|
+
on_focus: Optional[EventType[[]]] = None,
|
|
104
|
+
on_mount: Optional[EventType[[]]] = None,
|
|
105
|
+
on_mouse_down: Optional[EventType[[]]] = None,
|
|
106
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
107
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
108
|
+
on_mouse_move: Optional[EventType[[]]] = None,
|
|
109
|
+
on_mouse_out: Optional[EventType[[]]] = None,
|
|
110
|
+
on_mouse_over: Optional[EventType[[]]] = None,
|
|
111
|
+
on_mouse_up: Optional[EventType[[]]] = None,
|
|
112
|
+
on_scroll: Optional[EventType[[]]] = None,
|
|
113
|
+
on_unmount: Optional[EventType[[]]] = None,
|
|
154
114
|
**props,
|
|
155
115
|
) -> "CategoricalChartBase":
|
|
156
116
|
"""Create a chart component.
|
|
@@ -160,8 +120,8 @@ class CategoricalChartBase(ChartBase):
|
|
|
160
120
|
data: The source data, in which each element is an object.
|
|
161
121
|
margin: The sizes of whitespace around the chart, i.e. {"top": 50, "right": 30, "left": 20, "bottom": 5}.
|
|
162
122
|
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
163
|
-
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
164
|
-
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
123
|
+
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function. Default: "index"
|
|
124
|
+
layout: The layout of area in the chart. 'horizontal' | 'vertical'. Default: "horizontal"
|
|
165
125
|
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
166
126
|
width: The width of chart container. String or Integer
|
|
167
127
|
height: The height of chart container.
|
|
@@ -217,53 +177,33 @@ class AreaChart(CategoricalChartBase):
|
|
|
217
177
|
class_name: Optional[Any] = None,
|
|
218
178
|
autofocus: Optional[bool] = None,
|
|
219
179
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
220
|
-
on_blur: Optional[
|
|
221
|
-
on_click: Optional[
|
|
222
|
-
on_context_menu: Optional[
|
|
223
|
-
|
|
224
|
-
] = None,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
] = None,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
] = None,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
] = None,
|
|
236
|
-
on_mouse_leave: Optional[
|
|
237
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
238
|
-
] = None,
|
|
239
|
-
on_mouse_move: Optional[
|
|
240
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
241
|
-
] = None,
|
|
242
|
-
on_mouse_out: Optional[
|
|
243
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
244
|
-
] = None,
|
|
245
|
-
on_mouse_over: Optional[
|
|
246
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
247
|
-
] = None,
|
|
248
|
-
on_mouse_up: Optional[
|
|
249
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
250
|
-
] = None,
|
|
251
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
252
|
-
on_unmount: Optional[
|
|
253
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
254
|
-
] = None,
|
|
180
|
+
on_blur: Optional[EventType[[]]] = None,
|
|
181
|
+
on_click: Optional[EventType[[]]] = None,
|
|
182
|
+
on_context_menu: Optional[EventType[[]]] = None,
|
|
183
|
+
on_double_click: Optional[EventType[[]]] = None,
|
|
184
|
+
on_focus: Optional[EventType[[]]] = None,
|
|
185
|
+
on_mount: Optional[EventType[[]]] = None,
|
|
186
|
+
on_mouse_down: Optional[EventType[[]]] = None,
|
|
187
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
188
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
189
|
+
on_mouse_move: Optional[EventType[[]]] = None,
|
|
190
|
+
on_mouse_out: Optional[EventType[[]]] = None,
|
|
191
|
+
on_mouse_over: Optional[EventType[[]]] = None,
|
|
192
|
+
on_mouse_up: Optional[EventType[[]]] = None,
|
|
193
|
+
on_scroll: Optional[EventType[[]]] = None,
|
|
194
|
+
on_unmount: Optional[EventType[[]]] = None,
|
|
255
195
|
**props,
|
|
256
196
|
) -> "AreaChart":
|
|
257
197
|
"""Create a chart component.
|
|
258
198
|
|
|
259
199
|
Args:
|
|
260
200
|
*children: The children of the chart component.
|
|
261
|
-
base_value: The base value of area. Number | 'dataMin' | 'dataMax' | 'auto'
|
|
201
|
+
base_value: The base value of area. Number | 'dataMin' | 'dataMax' | 'auto'. Default: "auto"
|
|
262
202
|
data: The source data, in which each element is an object.
|
|
263
203
|
margin: The sizes of whitespace around the chart, i.e. {"top": 50, "right": 30, "left": 20, "bottom": 5}.
|
|
264
204
|
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
265
|
-
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
266
|
-
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
205
|
+
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function. Default: "index"
|
|
206
|
+
layout: The layout of area in the chart. 'horizontal' | 'vertical'. Default: "horizontal"
|
|
267
207
|
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
268
208
|
width: The width of chart container. String or Integer
|
|
269
209
|
height: The height of chart container.
|
|
@@ -317,58 +257,38 @@ class BarChart(CategoricalChartBase):
|
|
|
317
257
|
class_name: Optional[Any] = None,
|
|
318
258
|
autofocus: Optional[bool] = None,
|
|
319
259
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
320
|
-
on_blur: Optional[
|
|
321
|
-
on_click: Optional[
|
|
322
|
-
on_context_menu: Optional[
|
|
323
|
-
|
|
324
|
-
] = None,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
] = None,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
] = None,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
] = None,
|
|
336
|
-
on_mouse_leave: Optional[
|
|
337
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
338
|
-
] = None,
|
|
339
|
-
on_mouse_move: Optional[
|
|
340
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
341
|
-
] = None,
|
|
342
|
-
on_mouse_out: Optional[
|
|
343
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
344
|
-
] = None,
|
|
345
|
-
on_mouse_over: Optional[
|
|
346
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
347
|
-
] = None,
|
|
348
|
-
on_mouse_up: Optional[
|
|
349
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
350
|
-
] = None,
|
|
351
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
352
|
-
on_unmount: Optional[
|
|
353
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
354
|
-
] = None,
|
|
260
|
+
on_blur: Optional[EventType[[]]] = None,
|
|
261
|
+
on_click: Optional[EventType[[]]] = None,
|
|
262
|
+
on_context_menu: Optional[EventType[[]]] = None,
|
|
263
|
+
on_double_click: Optional[EventType[[]]] = None,
|
|
264
|
+
on_focus: Optional[EventType[[]]] = None,
|
|
265
|
+
on_mount: Optional[EventType[[]]] = None,
|
|
266
|
+
on_mouse_down: Optional[EventType[[]]] = None,
|
|
267
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
268
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
269
|
+
on_mouse_move: Optional[EventType[[]]] = None,
|
|
270
|
+
on_mouse_out: Optional[EventType[[]]] = None,
|
|
271
|
+
on_mouse_over: Optional[EventType[[]]] = None,
|
|
272
|
+
on_mouse_up: Optional[EventType[[]]] = None,
|
|
273
|
+
on_scroll: Optional[EventType[[]]] = None,
|
|
274
|
+
on_unmount: Optional[EventType[[]]] = None,
|
|
355
275
|
**props,
|
|
356
276
|
) -> "BarChart":
|
|
357
277
|
"""Create a chart component.
|
|
358
278
|
|
|
359
279
|
Args:
|
|
360
280
|
*children: The children of the chart component.
|
|
361
|
-
bar_category_gap: The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number
|
|
362
|
-
bar_gap: The gap between two bars in the same category, which can be a percent value or a fixed value. Percentage | Number
|
|
281
|
+
bar_category_gap: The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number. Default: "10%"
|
|
282
|
+
bar_gap: The gap between two bars in the same category, which can be a percent value or a fixed value. Percentage | Number. Default: 4
|
|
363
283
|
bar_size: The width of all the bars in the chart. Number
|
|
364
284
|
max_bar_size: The maximum width of all the bars in a horizontal BarChart, or maximum height in a vertical BarChart.
|
|
365
285
|
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
366
|
-
reverse_stack_order: If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position.)
|
|
286
|
+
reverse_stack_order: If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position.) Default: False
|
|
367
287
|
data: The source data, in which each element is an object.
|
|
368
288
|
margin: The sizes of whitespace around the chart, i.e. {"top": 50, "right": 30, "left": 20, "bottom": 5}.
|
|
369
289
|
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
370
|
-
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
371
|
-
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
290
|
+
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function. Default: "index"
|
|
291
|
+
layout: The layout of area in the chart. 'horizontal' | 'vertical'. Default: "horizontal"
|
|
372
292
|
width: The width of chart container. String or Integer
|
|
373
293
|
height: The height of chart container.
|
|
374
294
|
style: The style of the component.
|
|
@@ -416,41 +336,21 @@ class LineChart(CategoricalChartBase):
|
|
|
416
336
|
class_name: Optional[Any] = None,
|
|
417
337
|
autofocus: Optional[bool] = None,
|
|
418
338
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
419
|
-
on_blur: Optional[
|
|
420
|
-
on_click: Optional[
|
|
421
|
-
on_context_menu: Optional[
|
|
422
|
-
|
|
423
|
-
] = None,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
] = None,
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
] = None,
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
] = None,
|
|
435
|
-
on_mouse_leave: Optional[
|
|
436
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
437
|
-
] = None,
|
|
438
|
-
on_mouse_move: Optional[
|
|
439
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
440
|
-
] = None,
|
|
441
|
-
on_mouse_out: Optional[
|
|
442
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
443
|
-
] = None,
|
|
444
|
-
on_mouse_over: Optional[
|
|
445
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
446
|
-
] = None,
|
|
447
|
-
on_mouse_up: Optional[
|
|
448
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
449
|
-
] = None,
|
|
450
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
451
|
-
on_unmount: Optional[
|
|
452
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
453
|
-
] = None,
|
|
339
|
+
on_blur: Optional[EventType[[]]] = None,
|
|
340
|
+
on_click: Optional[EventType[[]]] = None,
|
|
341
|
+
on_context_menu: Optional[EventType[[]]] = None,
|
|
342
|
+
on_double_click: Optional[EventType[[]]] = None,
|
|
343
|
+
on_focus: Optional[EventType[[]]] = None,
|
|
344
|
+
on_mount: Optional[EventType[[]]] = None,
|
|
345
|
+
on_mouse_down: Optional[EventType[[]]] = None,
|
|
346
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
347
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
348
|
+
on_mouse_move: Optional[EventType[[]]] = None,
|
|
349
|
+
on_mouse_out: Optional[EventType[[]]] = None,
|
|
350
|
+
on_mouse_over: Optional[EventType[[]]] = None,
|
|
351
|
+
on_mouse_up: Optional[EventType[[]]] = None,
|
|
352
|
+
on_scroll: Optional[EventType[[]]] = None,
|
|
353
|
+
on_unmount: Optional[EventType[[]]] = None,
|
|
454
354
|
**props,
|
|
455
355
|
) -> "LineChart":
|
|
456
356
|
"""Create a chart component.
|
|
@@ -460,8 +360,8 @@ class LineChart(CategoricalChartBase):
|
|
|
460
360
|
data: The source data, in which each element is an object.
|
|
461
361
|
margin: The sizes of whitespace around the chart, i.e. {"top": 50, "right": 30, "left": 20, "bottom": 5}.
|
|
462
362
|
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
463
|
-
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
464
|
-
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
363
|
+
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function. Default: "index"
|
|
364
|
+
layout: The layout of area in the chart. 'horizontal' | 'vertical'. Default: "horizontal"
|
|
465
365
|
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
466
366
|
width: The width of chart container. String or Integer
|
|
467
367
|
height: The height of chart container.
|
|
@@ -492,7 +392,7 @@ class ComposedChart(CategoricalChartBase):
|
|
|
492
392
|
]
|
|
493
393
|
] = None,
|
|
494
394
|
bar_category_gap: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
495
|
-
bar_gap: Optional[Union[Var[
|
|
395
|
+
bar_gap: Optional[Union[Var[int], int]] = None,
|
|
496
396
|
bar_size: Optional[Union[Var[int], int]] = None,
|
|
497
397
|
reverse_stack_order: Optional[Union[Var[bool], bool]] = None,
|
|
498
398
|
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
@@ -521,57 +421,37 @@ class ComposedChart(CategoricalChartBase):
|
|
|
521
421
|
class_name: Optional[Any] = None,
|
|
522
422
|
autofocus: Optional[bool] = None,
|
|
523
423
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
524
|
-
on_blur: Optional[
|
|
525
|
-
on_click: Optional[
|
|
526
|
-
on_context_menu: Optional[
|
|
527
|
-
|
|
528
|
-
] = None,
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
] = None,
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
] = None,
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
] = None,
|
|
540
|
-
on_mouse_leave: Optional[
|
|
541
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
542
|
-
] = None,
|
|
543
|
-
on_mouse_move: Optional[
|
|
544
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
545
|
-
] = None,
|
|
546
|
-
on_mouse_out: Optional[
|
|
547
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
548
|
-
] = None,
|
|
549
|
-
on_mouse_over: Optional[
|
|
550
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
551
|
-
] = None,
|
|
552
|
-
on_mouse_up: Optional[
|
|
553
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
554
|
-
] = None,
|
|
555
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
556
|
-
on_unmount: Optional[
|
|
557
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
558
|
-
] = None,
|
|
424
|
+
on_blur: Optional[EventType[[]]] = None,
|
|
425
|
+
on_click: Optional[EventType[[]]] = None,
|
|
426
|
+
on_context_menu: Optional[EventType[[]]] = None,
|
|
427
|
+
on_double_click: Optional[EventType[[]]] = None,
|
|
428
|
+
on_focus: Optional[EventType[[]]] = None,
|
|
429
|
+
on_mount: Optional[EventType[[]]] = None,
|
|
430
|
+
on_mouse_down: Optional[EventType[[]]] = None,
|
|
431
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
432
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
433
|
+
on_mouse_move: Optional[EventType[[]]] = None,
|
|
434
|
+
on_mouse_out: Optional[EventType[[]]] = None,
|
|
435
|
+
on_mouse_over: Optional[EventType[[]]] = None,
|
|
436
|
+
on_mouse_up: Optional[EventType[[]]] = None,
|
|
437
|
+
on_scroll: Optional[EventType[[]]] = None,
|
|
438
|
+
on_unmount: Optional[EventType[[]]] = None,
|
|
559
439
|
**props,
|
|
560
440
|
) -> "ComposedChart":
|
|
561
441
|
"""Create a chart component.
|
|
562
442
|
|
|
563
443
|
Args:
|
|
564
444
|
*children: The children of the chart component.
|
|
565
|
-
base_value: The base value of area. Number | 'dataMin' | 'dataMax' | 'auto'
|
|
566
|
-
bar_category_gap: The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number
|
|
567
|
-
bar_gap: The gap between two bars in the same category
|
|
568
|
-
bar_size: The width of
|
|
569
|
-
reverse_stack_order: If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position.
|
|
445
|
+
base_value: The base value of area. Number | 'dataMin' | 'dataMax' | 'auto'. Default: "auto"
|
|
446
|
+
bar_category_gap: The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number. Default: "10%"
|
|
447
|
+
bar_gap: The gap between two bars in the same category. Default: 4
|
|
448
|
+
bar_size: The width or height of each bar. If the barSize is not specified, the size of the bar will be calculated by the barCategoryGap, barGap and the quantity of bar groups.
|
|
449
|
+
reverse_stack_order: If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position). Default: False
|
|
570
450
|
data: The source data, in which each element is an object.
|
|
571
451
|
margin: The sizes of whitespace around the chart, i.e. {"top": 50, "right": 30, "left": 20, "bottom": 5}.
|
|
572
452
|
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
573
|
-
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
574
|
-
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
453
|
+
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function. Default: "index"
|
|
454
|
+
layout: The layout of area in the chart. 'horizontal' | 'vertical'. Default: "horizontal"
|
|
575
455
|
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
576
456
|
width: The width of chart container. String or Integer
|
|
577
457
|
height: The height of chart container.
|
|
@@ -603,41 +483,21 @@ class PieChart(ChartBase):
|
|
|
603
483
|
class_name: Optional[Any] = None,
|
|
604
484
|
autofocus: Optional[bool] = None,
|
|
605
485
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
606
|
-
on_blur: Optional[
|
|
607
|
-
on_click: Optional[
|
|
608
|
-
on_context_menu: Optional[
|
|
609
|
-
|
|
610
|
-
] = None,
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
] = None,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
] = None,
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
] = None,
|
|
622
|
-
on_mouse_leave: Optional[
|
|
623
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
624
|
-
] = None,
|
|
625
|
-
on_mouse_move: Optional[
|
|
626
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
627
|
-
] = None,
|
|
628
|
-
on_mouse_out: Optional[
|
|
629
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
630
|
-
] = None,
|
|
631
|
-
on_mouse_over: Optional[
|
|
632
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
633
|
-
] = None,
|
|
634
|
-
on_mouse_up: Optional[
|
|
635
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
636
|
-
] = None,
|
|
637
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
638
|
-
on_unmount: Optional[
|
|
639
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
640
|
-
] = None,
|
|
486
|
+
on_blur: Optional[EventType[[]]] = None,
|
|
487
|
+
on_click: Optional[EventType[[]]] = None,
|
|
488
|
+
on_context_menu: Optional[EventType[[]]] = None,
|
|
489
|
+
on_double_click: Optional[EventType[[]]] = None,
|
|
490
|
+
on_focus: Optional[EventType[[]]] = None,
|
|
491
|
+
on_mount: Optional[EventType[[]]] = None,
|
|
492
|
+
on_mouse_down: Optional[EventType[[]]] = None,
|
|
493
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
494
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
495
|
+
on_mouse_move: Optional[EventType[[]]] = None,
|
|
496
|
+
on_mouse_out: Optional[EventType[[]]] = None,
|
|
497
|
+
on_mouse_over: Optional[EventType[[]]] = None,
|
|
498
|
+
on_mouse_up: Optional[EventType[[]]] = None,
|
|
499
|
+
on_scroll: Optional[EventType[[]]] = None,
|
|
500
|
+
on_unmount: Optional[EventType[[]]] = None,
|
|
641
501
|
**props,
|
|
642
502
|
) -> "PieChart":
|
|
643
503
|
"""Create a chart component.
|
|
@@ -683,13 +543,9 @@ class RadarChart(ChartBase):
|
|
|
683
543
|
class_name: Optional[Any] = None,
|
|
684
544
|
autofocus: Optional[bool] = None,
|
|
685
545
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
686
|
-
on_click: Optional[
|
|
687
|
-
on_mouse_enter: Optional[
|
|
688
|
-
|
|
689
|
-
] = None,
|
|
690
|
-
on_mouse_leave: Optional[
|
|
691
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
692
|
-
] = None,
|
|
546
|
+
on_click: Optional[EventType[[]]] = None,
|
|
547
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
548
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
693
549
|
**props,
|
|
694
550
|
) -> "RadarChart":
|
|
695
551
|
"""Create a chart component.
|
|
@@ -697,13 +553,13 @@ class RadarChart(ChartBase):
|
|
|
697
553
|
Args:
|
|
698
554
|
*children: The children of the chart component.
|
|
699
555
|
data: The source data, in which each element is an object.
|
|
700
|
-
margin: The sizes of whitespace around the chart, i.e. {"top": 50, "right": 30, "left": 20, "bottom": 5}.
|
|
701
|
-
cx: The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage
|
|
702
|
-
cy: The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage
|
|
703
|
-
start_angle: The angle of first radial direction line.
|
|
704
|
-
end_angle: The angle of last point in the circle which should be startAngle - 360 or startAngle + 360. We'll calculate the direction of chart by 'startAngle' and 'endAngle'.
|
|
705
|
-
inner_radius: The inner radius of first circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy. Number | Percentage
|
|
706
|
-
outer_radius: The outer radius of last circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy. Number | Percentage
|
|
556
|
+
margin: The sizes of whitespace around the chart, i.e. {"top": 50, "right": 30, "left": 20, "bottom": 5}. Default: {"top": 0, "right": 0, "left": 0, "bottom": 0}
|
|
557
|
+
cx: The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage. Default: "50%"
|
|
558
|
+
cy: The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage. Default: "50%"
|
|
559
|
+
start_angle: The angle of first radial direction line. Default: 90
|
|
560
|
+
end_angle: The angle of last point in the circle which should be startAngle - 360 or startAngle + 360. We'll calculate the direction of chart by 'startAngle' and 'endAngle'. Default: -270
|
|
561
|
+
inner_radius: The inner radius of first circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy. Number | Percentage. Default: 0
|
|
562
|
+
outer_radius: The outer radius of last circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy. Number | Percentage. Default: "80%"
|
|
707
563
|
width: The width of chart container. String or Integer
|
|
708
564
|
height: The height of chart container.
|
|
709
565
|
style: The style of the component.
|
|
@@ -744,41 +600,21 @@ class RadialBarChart(ChartBase):
|
|
|
744
600
|
class_name: Optional[Any] = None,
|
|
745
601
|
autofocus: Optional[bool] = None,
|
|
746
602
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
747
|
-
on_blur: Optional[
|
|
748
|
-
on_click: Optional[
|
|
749
|
-
on_context_menu: Optional[
|
|
750
|
-
|
|
751
|
-
] = None,
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
] = None,
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
] = None,
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
] = None,
|
|
763
|
-
on_mouse_leave: Optional[
|
|
764
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
765
|
-
] = None,
|
|
766
|
-
on_mouse_move: Optional[
|
|
767
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
768
|
-
] = None,
|
|
769
|
-
on_mouse_out: Optional[
|
|
770
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
771
|
-
] = None,
|
|
772
|
-
on_mouse_over: Optional[
|
|
773
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
774
|
-
] = None,
|
|
775
|
-
on_mouse_up: Optional[
|
|
776
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
777
|
-
] = None,
|
|
778
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
779
|
-
on_unmount: Optional[
|
|
780
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
781
|
-
] = None,
|
|
603
|
+
on_blur: Optional[EventType[[]]] = None,
|
|
604
|
+
on_click: Optional[EventType[[]]] = None,
|
|
605
|
+
on_context_menu: Optional[EventType[[]]] = None,
|
|
606
|
+
on_double_click: Optional[EventType[[]]] = None,
|
|
607
|
+
on_focus: Optional[EventType[[]]] = None,
|
|
608
|
+
on_mount: Optional[EventType[[]]] = None,
|
|
609
|
+
on_mouse_down: Optional[EventType[[]]] = None,
|
|
610
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
611
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
612
|
+
on_mouse_move: Optional[EventType[[]]] = None,
|
|
613
|
+
on_mouse_out: Optional[EventType[[]]] = None,
|
|
614
|
+
on_mouse_over: Optional[EventType[[]]] = None,
|
|
615
|
+
on_mouse_up: Optional[EventType[[]]] = None,
|
|
616
|
+
on_scroll: Optional[EventType[[]]] = None,
|
|
617
|
+
on_unmount: Optional[EventType[[]]] = None,
|
|
782
618
|
**props,
|
|
783
619
|
) -> "RadialBarChart":
|
|
784
620
|
"""Create a chart component.
|
|
@@ -786,15 +622,15 @@ class RadialBarChart(ChartBase):
|
|
|
786
622
|
Args:
|
|
787
623
|
*children: The children of the chart component.
|
|
788
624
|
data: The source data which each element is an object.
|
|
789
|
-
margin: The sizes of whitespace around the chart
|
|
790
|
-
cx: The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage
|
|
791
|
-
cy: The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage
|
|
792
|
-
start_angle: The angle of first radial direction line.
|
|
793
|
-
end_angle: The angle of last point in the circle which should be startAngle - 360 or startAngle + 360. We'll calculate the direction of chart by 'startAngle' and 'endAngle'.
|
|
794
|
-
inner_radius: The inner radius of first circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy. Number | Percentage
|
|
795
|
-
outer_radius: The outer radius of last circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy. Number | Percentage
|
|
796
|
-
bar_category_gap: The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number
|
|
797
|
-
bar_gap: The gap between two bars in the same category, which can be a percent value or a fixed value. Percentage | Number
|
|
625
|
+
margin: The sizes of whitespace around the chart. Default: {"top": 5, "right": 5, "left": 5 "bottom": 5}
|
|
626
|
+
cx: The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage. Default: "50%"
|
|
627
|
+
cy: The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage. Default: "50%"
|
|
628
|
+
start_angle: The angle of first radial direction line. Default: 0
|
|
629
|
+
end_angle: The angle of last point in the circle which should be startAngle - 360 or startAngle + 360. We'll calculate the direction of chart by 'startAngle' and 'endAngle'. Default: 360
|
|
630
|
+
inner_radius: The inner radius of first circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy. Number | Percentage. Default: "30%"
|
|
631
|
+
outer_radius: The outer radius of last circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy. Number | Percentage. Default: "100%"
|
|
632
|
+
bar_category_gap: The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number. Default: "10%"
|
|
633
|
+
bar_gap: The gap between two bars in the same category, which can be a percent value or a fixed value. Percentage | Number. Default: 4
|
|
798
634
|
bar_size: The size of each bar. If the barSize is not specified, the size of bar will be calculated by the barCategoryGap, barGap and the quantity of bar groups.
|
|
799
635
|
width: The width of chart container. String or Integer
|
|
800
636
|
height: The height of chart container.
|
|
@@ -827,35 +663,21 @@ class ScatterChart(ChartBase):
|
|
|
827
663
|
class_name: Optional[Any] = None,
|
|
828
664
|
autofocus: Optional[bool] = None,
|
|
829
665
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
830
|
-
on_click: Optional[
|
|
831
|
-
on_mouse_down: Optional[
|
|
832
|
-
|
|
833
|
-
] = None,
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
] = None,
|
|
837
|
-
|
|
838
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
839
|
-
] = None,
|
|
840
|
-
on_mouse_move: Optional[
|
|
841
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
842
|
-
] = None,
|
|
843
|
-
on_mouse_out: Optional[
|
|
844
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
845
|
-
] = None,
|
|
846
|
-
on_mouse_over: Optional[
|
|
847
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
848
|
-
] = None,
|
|
849
|
-
on_mouse_up: Optional[
|
|
850
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
851
|
-
] = None,
|
|
666
|
+
on_click: Optional[EventType[[]]] = None,
|
|
667
|
+
on_mouse_down: Optional[EventType[[]]] = None,
|
|
668
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
669
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
670
|
+
on_mouse_move: Optional[EventType[[]]] = None,
|
|
671
|
+
on_mouse_out: Optional[EventType[[]]] = None,
|
|
672
|
+
on_mouse_over: Optional[EventType[[]]] = None,
|
|
673
|
+
on_mouse_up: Optional[EventType[[]]] = None,
|
|
852
674
|
**props,
|
|
853
675
|
) -> "ScatterChart":
|
|
854
676
|
"""Create a chart component.
|
|
855
677
|
|
|
856
678
|
Args:
|
|
857
679
|
*children: The children of the chart component.
|
|
858
|
-
margin: The sizes of whitespace around the chart
|
|
680
|
+
margin: The sizes of whitespace around the chart. Default: {"top": 5, "right": 5, "bottom": 5, "left": 5}
|
|
859
681
|
width: The width of chart container. String or Integer
|
|
860
682
|
height: The height of chart container.
|
|
861
683
|
style: The style of the component.
|
|
@@ -888,49 +710,29 @@ class FunnelChart(ChartBase):
|
|
|
888
710
|
class_name: Optional[Any] = None,
|
|
889
711
|
autofocus: Optional[bool] = None,
|
|
890
712
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
891
|
-
on_blur: Optional[
|
|
892
|
-
on_click: Optional[
|
|
893
|
-
on_context_menu: Optional[
|
|
894
|
-
|
|
895
|
-
] = None,
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
] = None,
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
] = None,
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
] = None,
|
|
907
|
-
on_mouse_leave: Optional[
|
|
908
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
909
|
-
] = None,
|
|
910
|
-
on_mouse_move: Optional[
|
|
911
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
912
|
-
] = None,
|
|
913
|
-
on_mouse_out: Optional[
|
|
914
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
915
|
-
] = None,
|
|
916
|
-
on_mouse_over: Optional[
|
|
917
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
918
|
-
] = None,
|
|
919
|
-
on_mouse_up: Optional[
|
|
920
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
921
|
-
] = None,
|
|
922
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
923
|
-
on_unmount: Optional[
|
|
924
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
925
|
-
] = None,
|
|
713
|
+
on_blur: Optional[EventType[[]]] = None,
|
|
714
|
+
on_click: Optional[EventType[[]]] = None,
|
|
715
|
+
on_context_menu: Optional[EventType[[]]] = None,
|
|
716
|
+
on_double_click: Optional[EventType[[]]] = None,
|
|
717
|
+
on_focus: Optional[EventType[[]]] = None,
|
|
718
|
+
on_mount: Optional[EventType[[]]] = None,
|
|
719
|
+
on_mouse_down: Optional[EventType[[]]] = None,
|
|
720
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
721
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
722
|
+
on_mouse_move: Optional[EventType[[]]] = None,
|
|
723
|
+
on_mouse_out: Optional[EventType[[]]] = None,
|
|
724
|
+
on_mouse_over: Optional[EventType[[]]] = None,
|
|
725
|
+
on_mouse_up: Optional[EventType[[]]] = None,
|
|
726
|
+
on_scroll: Optional[EventType[[]]] = None,
|
|
727
|
+
on_unmount: Optional[EventType[[]]] = None,
|
|
926
728
|
**props,
|
|
927
729
|
) -> "FunnelChart":
|
|
928
730
|
"""Create a chart component.
|
|
929
731
|
|
|
930
732
|
Args:
|
|
931
733
|
*children: The children of the chart component.
|
|
932
|
-
layout: The layout of bars in the chart.
|
|
933
|
-
margin: The sizes of whitespace around the chart
|
|
734
|
+
layout: The layout of bars in the chart. Default: "centric"
|
|
735
|
+
margin: The sizes of whitespace around the chart. Default: {"top": 5, "right": 5, "bottom": 5, "left": 5}
|
|
934
736
|
stroke: The stroke color of each bar. String | Object
|
|
935
737
|
width: The width of chart container. String or Integer
|
|
936
738
|
height: The height of chart container.
|
|
@@ -957,6 +759,7 @@ class Treemap(RechartsCharts):
|
|
|
957
759
|
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
958
760
|
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
959
761
|
data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
762
|
+
name_key: Optional[Union[Var[str], str]] = None,
|
|
960
763
|
aspect_ratio: Optional[Union[Var[int], int]] = None,
|
|
961
764
|
is_animation_active: Optional[Union[Var[bool], bool]] = None,
|
|
962
765
|
animation_begin: Optional[Union[Var[int], int]] = None,
|
|
@@ -973,62 +776,39 @@ class Treemap(RechartsCharts):
|
|
|
973
776
|
class_name: Optional[Any] = None,
|
|
974
777
|
autofocus: Optional[bool] = None,
|
|
975
778
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
976
|
-
on_animation_end: Optional[
|
|
977
|
-
|
|
978
|
-
] = None,
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
] = None,
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
] = None,
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
] = None,
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
994
|
-
] = None,
|
|
995
|
-
on_mouse_enter: Optional[
|
|
996
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
997
|
-
] = None,
|
|
998
|
-
on_mouse_leave: Optional[
|
|
999
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1000
|
-
] = None,
|
|
1001
|
-
on_mouse_move: Optional[
|
|
1002
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1003
|
-
] = None,
|
|
1004
|
-
on_mouse_out: Optional[
|
|
1005
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1006
|
-
] = None,
|
|
1007
|
-
on_mouse_over: Optional[
|
|
1008
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1009
|
-
] = None,
|
|
1010
|
-
on_mouse_up: Optional[
|
|
1011
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1012
|
-
] = None,
|
|
1013
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
1014
|
-
on_unmount: Optional[
|
|
1015
|
-
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1016
|
-
] = None,
|
|
779
|
+
on_animation_end: Optional[EventType[[]]] = None,
|
|
780
|
+
on_animation_start: Optional[EventType[[]]] = None,
|
|
781
|
+
on_blur: Optional[EventType[[]]] = None,
|
|
782
|
+
on_click: Optional[EventType[[]]] = None,
|
|
783
|
+
on_context_menu: Optional[EventType[[]]] = None,
|
|
784
|
+
on_double_click: Optional[EventType[[]]] = None,
|
|
785
|
+
on_focus: Optional[EventType[[]]] = None,
|
|
786
|
+
on_mount: Optional[EventType[[]]] = None,
|
|
787
|
+
on_mouse_down: Optional[EventType[[]]] = None,
|
|
788
|
+
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
789
|
+
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
790
|
+
on_mouse_move: Optional[EventType[[]]] = None,
|
|
791
|
+
on_mouse_out: Optional[EventType[[]]] = None,
|
|
792
|
+
on_mouse_over: Optional[EventType[[]]] = None,
|
|
793
|
+
on_mouse_up: Optional[EventType[[]]] = None,
|
|
794
|
+
on_scroll: Optional[EventType[[]]] = None,
|
|
795
|
+
on_unmount: Optional[EventType[[]]] = None,
|
|
1017
796
|
**props,
|
|
1018
797
|
) -> "Treemap":
|
|
1019
798
|
"""Create a chart component.
|
|
1020
799
|
|
|
1021
800
|
Args:
|
|
1022
801
|
*children: The children of the chart component.
|
|
1023
|
-
width: The width of chart container. String or Integer
|
|
1024
|
-
height: The height of chart container.
|
|
802
|
+
width: The width of chart container. String or Integer. Default: "100%"
|
|
803
|
+
height: The height of chart container. String or Integer. Default: "100%"
|
|
1025
804
|
data: data of treemap. Array
|
|
1026
|
-
data_key: The key of a group of data which should be unique in a treemap. String | Number
|
|
805
|
+
data_key: The key of a group of data which should be unique in a treemap. String | Number. Default: "value"
|
|
806
|
+
name_key: The key of each sector's name. String. Default: "name"
|
|
1027
807
|
aspect_ratio: The treemap will try to keep every single rectangle's aspect ratio near the aspectRatio given. Number
|
|
1028
|
-
is_animation_active: If set false, animation of area will be disabled.
|
|
1029
|
-
animation_begin: Specifies when the animation should begin, the unit of this option is ms.
|
|
1030
|
-
animation_duration: Specifies the duration of animation, the unit of this option is ms.
|
|
1031
|
-
animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'
|
|
808
|
+
is_animation_active: If set false, animation of area will be disabled. Default: True
|
|
809
|
+
animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
810
|
+
animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
811
|
+
animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. Default: "ease"
|
|
1032
812
|
style: The style of the component.
|
|
1033
813
|
key: A unique key for the component.
|
|
1034
814
|
id: The id for the component.
|