reflex 0.6.4a3__py3-none-any.whl → 0.6.5__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/.templates/jinja/web/pages/custom_component.js.jinja2 +0 -14
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +4 -8
- reflex/.templates/web/components/shiki/code.js +16 -11
- reflex/.templates/web/utils/state.js +29 -21
- reflex/__init__.py +4 -0
- reflex/__init__.pyi +4 -0
- reflex/app.py +148 -154
- reflex/app_mixins/lifespan.py +5 -1
- reflex/app_mixins/middleware.py +3 -1
- reflex/app_mixins/mixin.py +3 -2
- reflex/base.py +2 -4
- reflex/compiler/compiler.py +111 -37
- reflex/components/base/app_wrap.pyi +17 -17
- reflex/components/base/bare.py +72 -3
- reflex/components/base/body.pyi +17 -17
- reflex/components/base/document.pyi +81 -81
- reflex/components/base/error_boundary.pyi +25 -18
- reflex/components/base/fragment.pyi +17 -17
- reflex/components/base/head.pyi +33 -33
- reflex/components/base/link.pyi +33 -33
- reflex/components/base/meta.pyi +65 -65
- reflex/components/base/script.py +4 -4
- reflex/components/base/script.pyi +23 -20
- reflex/components/component.py +250 -31
- reflex/components/core/banner.py +1 -1
- reflex/components/core/banner.pyi +81 -81
- reflex/components/core/client_side_routing.pyi +33 -33
- reflex/components/core/clipboard.py +2 -2
- reflex/components/core/clipboard.pyi +24 -18
- reflex/components/core/debounce.py +2 -2
- reflex/components/core/debounce.pyi +18 -18
- reflex/components/core/html.pyi +17 -17
- reflex/components/core/upload.py +90 -28
- reflex/components/core/upload.pyi +128 -72
- reflex/components/datadisplay/code.py +55 -40
- reflex/components/datadisplay/code.pyi +46 -44
- reflex/components/datadisplay/dataeditor.py +21 -20
- reflex/components/datadisplay/dataeditor.pyi +103 -35
- reflex/components/datadisplay/shiki_code_block.py +60 -27
- reflex/components/datadisplay/shiki_code_block.pyi +86 -65
- reflex/components/dynamic.py +9 -5
- reflex/components/el/element.pyi +17 -17
- reflex/components/el/elements/base.pyi +17 -17
- reflex/components/el/elements/forms.py +12 -3
- reflex/components/el/elements/forms.pyi +293 -233
- reflex/components/el/elements/inline.pyi +449 -449
- reflex/components/el/elements/media.pyi +401 -401
- reflex/components/el/elements/metadata.pyi +97 -97
- reflex/components/el/elements/other.pyi +113 -113
- reflex/components/el/elements/scripts.pyi +49 -49
- reflex/components/el/elements/sectioning.pyi +241 -241
- reflex/components/el/elements/tables.pyi +161 -161
- reflex/components/el/elements/typography.pyi +241 -241
- reflex/components/gridjs/datatable.pyi +33 -33
- reflex/components/lucide/icon.py +1 -1
- reflex/components/lucide/icon.pyi +33 -33
- reflex/components/markdown/markdown.py +180 -49
- reflex/components/markdown/markdown.pyi +36 -19
- reflex/components/moment/moment.py +17 -21
- reflex/components/moment/moment.pyi +26 -21
- reflex/components/next/base.pyi +17 -17
- reflex/components/next/image.py +3 -3
- reflex/components/next/image.pyi +21 -19
- reflex/components/next/link.pyi +17 -17
- reflex/components/next/video.pyi +17 -17
- reflex/components/plotly/plotly.py +79 -78
- reflex/components/plotly/plotly.pyi +91 -41
- reflex/components/props.py +34 -0
- reflex/components/radix/primitives/accordion.py +15 -8
- reflex/components/radix/primitives/accordion.pyi +121 -118
- reflex/components/radix/primitives/base.pyi +33 -33
- reflex/components/radix/primitives/drawer.py +41 -20
- reflex/components/radix/primitives/drawer.pyi +279 -190
- reflex/components/radix/primitives/form.py +2 -2
- reflex/components/radix/primitives/form.pyi +200 -167
- reflex/components/radix/primitives/progress.pyi +81 -81
- reflex/components/radix/primitives/slider.pyi +89 -83
- reflex/components/radix/themes/base.py +30 -1
- reflex/components/radix/themes/base.pyi +286 -113
- reflex/components/radix/themes/color_mode.py +17 -9
- reflex/components/radix/themes/color_mode.pyi +68 -56
- reflex/components/radix/themes/components/alert_dialog.py +8 -5
- reflex/components/radix/themes/components/alert_dialog.pyi +125 -117
- reflex/components/radix/themes/components/aspect_ratio.pyi +17 -17
- reflex/components/radix/themes/components/avatar.py +1 -5
- reflex/components/radix/themes/components/avatar.pyi +17 -17
- reflex/components/radix/themes/components/badge.py +1 -5
- reflex/components/radix/themes/components/badge.pyi +17 -17
- reflex/components/radix/themes/components/button.pyi +18 -21
- reflex/components/radix/themes/components/callout.py +1 -4
- reflex/components/radix/themes/components/callout.pyi +81 -81
- reflex/components/radix/themes/components/card.py +1 -3
- reflex/components/radix/themes/components/card.pyi +17 -17
- reflex/components/radix/themes/components/checkbox.py +4 -8
- reflex/components/radix/themes/components/checkbox.pyi +61 -52
- reflex/components/radix/themes/components/checkbox_cards.pyi +33 -33
- reflex/components/radix/themes/components/checkbox_group.pyi +33 -33
- reflex/components/radix/themes/components/context_menu.py +121 -28
- reflex/components/radix/themes/components/context_menu.pyi +250 -147
- reflex/components/radix/themes/components/data_list.pyi +65 -65
- reflex/components/radix/themes/components/dialog.py +11 -11
- reflex/components/radix/themes/components/dialog.pyi +135 -120
- reflex/components/radix/themes/components/dropdown_menu.py +14 -25
- reflex/components/radix/themes/components/dropdown_menu.pyi +157 -145
- reflex/components/radix/themes/components/hover_card.py +19 -7
- reflex/components/radix/themes/components/hover_card.pyi +102 -67
- reflex/components/radix/themes/components/icon_button.pyi +18 -21
- reflex/components/radix/themes/components/inset.py +1 -3
- reflex/components/radix/themes/components/inset.pyi +17 -17
- reflex/components/radix/themes/components/popover.py +22 -13
- reflex/components/radix/themes/components/popover.pyi +98 -72
- reflex/components/radix/themes/components/progress.pyi +17 -17
- reflex/components/radix/themes/components/radio.pyi +17 -17
- reflex/components/radix/themes/components/radio_cards.py +2 -2
- reflex/components/radix/themes/components/radio_cards.pyi +37 -34
- reflex/components/radix/themes/components/radio_group.py +3 -7
- reflex/components/radix/themes/components/radio_group.pyi +69 -66
- reflex/components/radix/themes/components/scroll_area.py +1 -3
- reflex/components/radix/themes/components/scroll_area.pyi +17 -17
- reflex/components/radix/themes/components/segmented_control.pyi +37 -34
- reflex/components/radix/themes/components/select.py +7 -11
- reflex/components/radix/themes/components/select.pyi +175 -154
- reflex/components/radix/themes/components/separator.py +1 -4
- reflex/components/radix/themes/components/separator.pyi +17 -17
- reflex/components/radix/themes/components/skeleton.pyi +17 -17
- reflex/components/radix/themes/components/slider.py +12 -21
- reflex/components/radix/themes/components/slider.pyi +47 -25
- reflex/components/radix/themes/components/spinner.py +1 -4
- reflex/components/radix/themes/components/spinner.pyi +17 -17
- reflex/components/radix/themes/components/switch.py +3 -6
- reflex/components/radix/themes/components/switch.pyi +21 -18
- reflex/components/radix/themes/components/table.py +21 -5
- reflex/components/radix/themes/components/table.pyi +392 -116
- reflex/components/radix/themes/components/tabs.py +3 -6
- reflex/components/radix/themes/components/tabs.pyi +89 -83
- reflex/components/radix/themes/components/text_area.py +1 -5
- reflex/components/radix/themes/components/text_area.pyi +43 -20
- reflex/components/radix/themes/components/text_field.py +1 -5
- reflex/components/radix/themes/components/text_field.pyi +101 -55
- reflex/components/radix/themes/components/tooltip.py +5 -7
- reflex/components/radix/themes/components/tooltip.pyi +25 -22
- reflex/components/radix/themes/layout/base.py +2 -27
- reflex/components/radix/themes/layout/base.pyi +82 -82
- reflex/components/radix/themes/layout/box.pyi +17 -17
- reflex/components/radix/themes/layout/center.pyi +17 -17
- reflex/components/radix/themes/layout/container.pyi +17 -17
- reflex/components/radix/themes/layout/flex.py +1 -6
- reflex/components/radix/themes/layout/flex.pyi +17 -17
- reflex/components/radix/themes/layout/grid.py +1 -6
- reflex/components/radix/themes/layout/grid.pyi +17 -17
- reflex/components/radix/themes/layout/list.py +20 -15
- reflex/components/radix/themes/layout/list.pyi +175 -92
- reflex/components/radix/themes/layout/section.pyi +17 -17
- reflex/components/radix/themes/layout/spacer.pyi +17 -17
- reflex/components/radix/themes/layout/stack.py +6 -6
- reflex/components/radix/themes/layout/stack.pyi +91 -62
- reflex/components/radix/themes/typography/blockquote.py +2 -8
- reflex/components/radix/themes/typography/blockquote.pyi +17 -17
- reflex/components/radix/themes/typography/code.py +4 -10
- reflex/components/radix/themes/typography/code.pyi +19 -18
- reflex/components/radix/themes/typography/heading.py +4 -11
- reflex/components/radix/themes/typography/heading.pyi +19 -18
- reflex/components/radix/themes/typography/link.py +4 -10
- reflex/components/radix/themes/typography/link.pyi +19 -18
- reflex/components/radix/themes/typography/text.py +4 -11
- reflex/components/radix/themes/typography/text.pyi +115 -114
- reflex/components/react_player/audio.pyi +58 -33
- reflex/components/react_player/react_player.py +17 -17
- reflex/components/react_player/react_player.pyi +55 -33
- reflex/components/react_player/video.pyi +58 -33
- reflex/components/recharts/cartesian.py +45 -45
- reflex/components/recharts/cartesian.pyi +389 -304
- reflex/components/recharts/charts.py +22 -22
- reflex/components/recharts/charts.pyi +226 -179
- reflex/components/recharts/general.py +26 -27
- reflex/components/recharts/general.pyi +106 -99
- reflex/components/recharts/polar.py +33 -33
- reflex/components/recharts/polar.pyi +70 -64
- reflex/components/recharts/recharts.pyi +33 -33
- reflex/components/sonner/toast.py +9 -36
- reflex/components/sonner/toast.pyi +20 -24
- reflex/components/suneditor/editor.py +8 -8
- reflex/components/suneditor/editor.pyi +50 -25
- reflex/components/tags/iter_tag.py +1 -10
- reflex/components/tags/tag.py +1 -4
- reflex/config.py +198 -35
- reflex/constants/__init__.py +4 -16
- reflex/constants/base.py +7 -14
- reflex/constants/colors.py +0 -1
- reflex/constants/installer.py +12 -7
- reflex/constants/state.py +4 -0
- reflex/custom_components/custom_components.py +6 -6
- reflex/event.py +486 -241
- reflex/experimental/client_state.py +9 -9
- reflex/experimental/layout.py +2 -2
- reflex/experimental/layout.pyi +95 -87
- reflex/experimental/misc.py +1 -1
- reflex/istate/__init__.py +1 -0
- reflex/istate/proxy.py +33 -0
- reflex/istate/wrappers.py +27 -0
- reflex/model.py +7 -7
- reflex/page.py +2 -1
- reflex/reflex.py +142 -8
- reflex/state.py +133 -46
- reflex/testing.py +9 -7
- reflex/utils/console.py +0 -1
- reflex/utils/exceptions.py +31 -3
- reflex/utils/exec.py +33 -14
- reflex/utils/format.py +15 -12
- reflex/utils/net.py +1 -1
- reflex/utils/path_ops.py +2 -2
- reflex/utils/prerequisites.py +82 -46
- reflex/utils/pyi_generator.py +63 -20
- reflex/utils/registry.py +1 -1
- reflex/utils/serializers.py +75 -36
- reflex/utils/telemetry.py +3 -2
- reflex/utils/types.py +125 -10
- reflex/vars/base.py +131 -119
- reflex/vars/function.py +59 -12
- reflex/vars/number.py +3 -1
- reflex/vars/object.py +30 -24
- reflex/vars/sequence.py +7 -7
- {reflex-0.6.4a3.dist-info → reflex-0.6.5.dist-info}/METADATA +3 -3
- reflex-0.6.5.dist-info/RECORD +394 -0
- reflex-0.6.4a3.dist-info/RECORD +0 -391
- {reflex-0.6.4a3.dist-info → reflex-0.6.5.dist-info}/LICENSE +0 -0
- {reflex-0.6.4a3.dist-info → reflex-0.6.5.dist-info}/WHEEL +0 -0
- {reflex-0.6.4a3.dist-info → reflex-0.6.5.dist-info}/entry_points.txt +0 -0
|
@@ -6,13 +6,11 @@
|
|
|
6
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 EventType
|
|
9
|
+
from reflex.event import BASE_STATE, EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
|
-
from .recharts import
|
|
14
|
-
RechartsCharts,
|
|
15
|
-
)
|
|
13
|
+
from .recharts import RechartsCharts
|
|
16
14
|
|
|
17
15
|
class ChartBase(RechartsCharts):
|
|
18
16
|
@overload
|
|
@@ -27,22 +25,22 @@ class ChartBase(RechartsCharts):
|
|
|
27
25
|
id: Optional[Any] = None,
|
|
28
26
|
class_name: Optional[Any] = None,
|
|
29
27
|
autofocus: Optional[bool] = None,
|
|
30
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
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,
|
|
28
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
29
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
30
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
31
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
32
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
33
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
34
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
35
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
36
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
37
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
38
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
39
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
40
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
41
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
42
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
43
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
46
44
|
**props,
|
|
47
45
|
) -> "ChartBase":
|
|
48
46
|
"""Create a chart component.
|
|
@@ -51,6 +49,10 @@ class ChartBase(RechartsCharts):
|
|
|
51
49
|
*children: The children of the chart component.
|
|
52
50
|
width: The width of chart container. String or Integer
|
|
53
51
|
height: The height of chart container.
|
|
52
|
+
on_click: The customized event handler of click on the component in this chart
|
|
53
|
+
on_mouse_enter: The customized event handler of mouseenter on the component in this chart
|
|
54
|
+
on_mouse_move: The customized event handler of mousemove on the component in this chart
|
|
55
|
+
on_mouse_leave: The customized event handler of mouseleave on the component in this chart
|
|
54
56
|
style: The style of the component.
|
|
55
57
|
key: A unique key for the component.
|
|
56
58
|
id: The id for the component.
|
|
@@ -95,22 +97,22 @@ class CategoricalChartBase(ChartBase):
|
|
|
95
97
|
id: Optional[Any] = None,
|
|
96
98
|
class_name: Optional[Any] = None,
|
|
97
99
|
autofocus: Optional[bool] = None,
|
|
98
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
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,
|
|
100
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
101
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
102
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
103
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
104
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
105
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
106
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
107
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
108
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
109
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
110
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
111
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
112
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
113
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
114
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
115
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
114
116
|
**props,
|
|
115
117
|
) -> "CategoricalChartBase":
|
|
116
118
|
"""Create a chart component.
|
|
@@ -125,6 +127,10 @@ class CategoricalChartBase(ChartBase):
|
|
|
125
127
|
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'
|
|
126
128
|
width: The width of chart container. String or Integer
|
|
127
129
|
height: The height of chart container.
|
|
130
|
+
on_click: The customized event handler of click on the component in this chart
|
|
131
|
+
on_mouse_enter: The customized event handler of mouseenter on the component in this chart
|
|
132
|
+
on_mouse_move: The customized event handler of mousemove on the component in this chart
|
|
133
|
+
on_mouse_leave: The customized event handler of mouseleave on the component in this chart
|
|
128
134
|
style: The style of the component.
|
|
129
135
|
key: A unique key for the component.
|
|
130
136
|
id: The id for the component.
|
|
@@ -176,22 +182,22 @@ class AreaChart(CategoricalChartBase):
|
|
|
176
182
|
id: Optional[Any] = None,
|
|
177
183
|
class_name: Optional[Any] = None,
|
|
178
184
|
autofocus: Optional[bool] = None,
|
|
179
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
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,
|
|
185
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
186
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
187
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
188
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
189
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
190
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
191
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
192
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
193
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
194
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
195
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
196
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
197
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
198
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
199
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
200
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
195
201
|
**props,
|
|
196
202
|
) -> "AreaChart":
|
|
197
203
|
"""Create a chart component.
|
|
@@ -207,6 +213,10 @@ class AreaChart(CategoricalChartBase):
|
|
|
207
213
|
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'
|
|
208
214
|
width: The width of chart container. String or Integer
|
|
209
215
|
height: The height of chart container.
|
|
216
|
+
on_click: The customized event handler of click on the component in this chart
|
|
217
|
+
on_mouse_enter: The customized event handler of mouseenter on the component in this chart
|
|
218
|
+
on_mouse_move: The customized event handler of mousemove on the component in this chart
|
|
219
|
+
on_mouse_leave: The customized event handler of mouseleave on the component in this chart
|
|
210
220
|
style: The style of the component.
|
|
211
221
|
key: A unique key for the component.
|
|
212
222
|
id: The id for the component.
|
|
@@ -256,22 +266,22 @@ class BarChart(CategoricalChartBase):
|
|
|
256
266
|
id: Optional[Any] = None,
|
|
257
267
|
class_name: Optional[Any] = None,
|
|
258
268
|
autofocus: Optional[bool] = None,
|
|
259
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
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,
|
|
269
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
270
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
271
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
272
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
273
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
274
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
275
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
276
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
277
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
278
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
279
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
280
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
281
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
282
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
283
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
284
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
275
285
|
**props,
|
|
276
286
|
) -> "BarChart":
|
|
277
287
|
"""Create a chart component.
|
|
@@ -291,6 +301,10 @@ class BarChart(CategoricalChartBase):
|
|
|
291
301
|
layout: The layout of area in the chart. 'horizontal' | 'vertical'. Default: "horizontal"
|
|
292
302
|
width: The width of chart container. String or Integer
|
|
293
303
|
height: The height of chart container.
|
|
304
|
+
on_click: The customized event handler of click on the component in this chart
|
|
305
|
+
on_mouse_enter: The customized event handler of mouseenter on the component in this chart
|
|
306
|
+
on_mouse_move: The customized event handler of mousemove on the component in this chart
|
|
307
|
+
on_mouse_leave: The customized event handler of mouseleave on the component in this chart
|
|
294
308
|
style: The style of the component.
|
|
295
309
|
key: A unique key for the component.
|
|
296
310
|
id: The id for the component.
|
|
@@ -335,22 +349,22 @@ class LineChart(CategoricalChartBase):
|
|
|
335
349
|
id: Optional[Any] = None,
|
|
336
350
|
class_name: Optional[Any] = None,
|
|
337
351
|
autofocus: Optional[bool] = None,
|
|
338
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
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,
|
|
352
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
353
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
354
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
355
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
356
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
357
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
358
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
359
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
360
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
361
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
362
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
363
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
364
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
365
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
366
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
367
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
354
368
|
**props,
|
|
355
369
|
) -> "LineChart":
|
|
356
370
|
"""Create a chart component.
|
|
@@ -365,6 +379,10 @@ class LineChart(CategoricalChartBase):
|
|
|
365
379
|
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
380
|
width: The width of chart container. String or Integer
|
|
367
381
|
height: The height of chart container.
|
|
382
|
+
on_click: The customized event handler of click on the component in this chart
|
|
383
|
+
on_mouse_enter: The customized event handler of mouseenter on the component in this chart
|
|
384
|
+
on_mouse_move: The customized event handler of mousemove on the component in this chart
|
|
385
|
+
on_mouse_leave: The customized event handler of mouseleave on the component in this chart
|
|
368
386
|
style: The style of the component.
|
|
369
387
|
key: A unique key for the component.
|
|
370
388
|
id: The id for the component.
|
|
@@ -420,22 +438,22 @@ class ComposedChart(CategoricalChartBase):
|
|
|
420
438
|
id: Optional[Any] = None,
|
|
421
439
|
class_name: Optional[Any] = None,
|
|
422
440
|
autofocus: Optional[bool] = None,
|
|
423
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
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,
|
|
441
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
442
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
443
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
444
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
445
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
446
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
447
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
448
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
449
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
450
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
451
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
452
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
453
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
454
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
455
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
456
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
439
457
|
**props,
|
|
440
458
|
) -> "ComposedChart":
|
|
441
459
|
"""Create a chart component.
|
|
@@ -455,6 +473,10 @@ class ComposedChart(CategoricalChartBase):
|
|
|
455
473
|
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'
|
|
456
474
|
width: The width of chart container. String or Integer
|
|
457
475
|
height: The height of chart container.
|
|
476
|
+
on_click: The customized event handler of click on the component in this chart
|
|
477
|
+
on_mouse_enter: The customized event handler of mouseenter on the component in this chart
|
|
478
|
+
on_mouse_move: The customized event handler of mousemove on the component in this chart
|
|
479
|
+
on_mouse_leave: The customized event handler of mouseleave on the component in this chart
|
|
458
480
|
style: The style of the component.
|
|
459
481
|
key: A unique key for the component.
|
|
460
482
|
id: The id for the component.
|
|
@@ -482,22 +504,22 @@ class PieChart(ChartBase):
|
|
|
482
504
|
id: Optional[Any] = None,
|
|
483
505
|
class_name: Optional[Any] = None,
|
|
484
506
|
autofocus: Optional[bool] = None,
|
|
485
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
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,
|
|
507
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
508
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
509
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
510
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
511
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
512
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
513
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
514
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
515
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
516
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
517
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
518
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
519
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
520
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
521
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
522
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
501
523
|
**props,
|
|
502
524
|
) -> "PieChart":
|
|
503
525
|
"""Create a chart component.
|
|
@@ -505,8 +527,16 @@ class PieChart(ChartBase):
|
|
|
505
527
|
Args:
|
|
506
528
|
*children: The children of the chart component.
|
|
507
529
|
margin: The sizes of whitespace around the chart, i.e. {"top": 50, "right": 30, "left": 20, "bottom": 5}.
|
|
530
|
+
on_mouse_down: The customized event handler of mousedown on the sectors in this group
|
|
531
|
+
on_mouse_up: The customized event handler of mouseup on the sectors in this group
|
|
532
|
+
on_mouse_over: The customized event handler of mouseover on the sectors in this group
|
|
533
|
+
on_mouse_out: The customized event handler of mouseout on the sectors in this group
|
|
508
534
|
width: The width of chart container. String or Integer
|
|
509
535
|
height: The height of chart container.
|
|
536
|
+
on_click: The customized event handler of click on the component in this chart
|
|
537
|
+
on_mouse_enter: The customized event handler of mouseenter on the component in this chart
|
|
538
|
+
on_mouse_move: The customized event handler of mousemove on the component in this chart
|
|
539
|
+
on_mouse_leave: The customized event handler of mouseleave on the component in this chart
|
|
510
540
|
style: The style of the component.
|
|
511
541
|
key: A unique key for the component.
|
|
512
542
|
id: The id for the component.
|
|
@@ -542,10 +572,10 @@ class RadarChart(ChartBase):
|
|
|
542
572
|
id: Optional[Any] = None,
|
|
543
573
|
class_name: Optional[Any] = None,
|
|
544
574
|
autofocus: Optional[bool] = None,
|
|
545
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
546
|
-
on_click: Optional[EventType[[]]] = None,
|
|
547
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
548
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
575
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
576
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
577
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
578
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
549
579
|
**props,
|
|
550
580
|
) -> "RadarChart":
|
|
551
581
|
"""Create a chart component.
|
|
@@ -562,6 +592,9 @@ class RadarChart(ChartBase):
|
|
|
562
592
|
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%"
|
|
563
593
|
width: The width of chart container. String or Integer
|
|
564
594
|
height: The height of chart container.
|
|
595
|
+
on_click: The customized event handler of click on the component in this chart
|
|
596
|
+
on_mouse_enter: The customized event handler of mouseenter on the component in this chart
|
|
597
|
+
on_mouse_leave: The customized event handler of mouseleave on the component in this chart
|
|
565
598
|
style: The style of the component.
|
|
566
599
|
key: A unique key for the component.
|
|
567
600
|
id: The id for the component.
|
|
@@ -599,22 +632,22 @@ class RadialBarChart(ChartBase):
|
|
|
599
632
|
id: Optional[Any] = None,
|
|
600
633
|
class_name: Optional[Any] = None,
|
|
601
634
|
autofocus: Optional[bool] = None,
|
|
602
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
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,
|
|
635
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
636
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
637
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
638
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
639
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
640
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
641
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
642
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
643
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
644
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
645
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
646
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
647
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
648
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
649
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
650
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
618
651
|
**props,
|
|
619
652
|
) -> "RadialBarChart":
|
|
620
653
|
"""Create a chart component.
|
|
@@ -634,6 +667,10 @@ class RadialBarChart(ChartBase):
|
|
|
634
667
|
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.
|
|
635
668
|
width: The width of chart container. String or Integer
|
|
636
669
|
height: The height of chart container.
|
|
670
|
+
on_click: The customized event handler of click on the component in this chart
|
|
671
|
+
on_mouse_enter: The customized event handler of mouseenter on the component in this chart
|
|
672
|
+
on_mouse_move: The customized event handler of mousemove on the component in this chart
|
|
673
|
+
on_mouse_leave: The customized event handler of mouseleave on the component in this chart
|
|
637
674
|
style: The style of the component.
|
|
638
675
|
key: A unique key for the component.
|
|
639
676
|
id: The id for the component.
|
|
@@ -662,15 +699,15 @@ class ScatterChart(ChartBase):
|
|
|
662
699
|
id: Optional[Any] = None,
|
|
663
700
|
class_name: Optional[Any] = None,
|
|
664
701
|
autofocus: Optional[bool] = None,
|
|
665
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
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,
|
|
702
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
703
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
704
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
705
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
706
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
707
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
708
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
709
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
710
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
674
711
|
**props,
|
|
675
712
|
) -> "ScatterChart":
|
|
676
713
|
"""Create a chart component.
|
|
@@ -680,6 +717,10 @@ class ScatterChart(ChartBase):
|
|
|
680
717
|
margin: The sizes of whitespace around the chart. Default: {"top": 5, "right": 5, "bottom": 5, "left": 5}
|
|
681
718
|
width: The width of chart container. String or Integer
|
|
682
719
|
height: The height of chart container.
|
|
720
|
+
on_click: The customized event handler of click on the component in this chart
|
|
721
|
+
on_mouse_enter: The customized event handler of mouseenter on the component in this chart
|
|
722
|
+
on_mouse_move: The customized event handler of mousemove on the component in this chart
|
|
723
|
+
on_mouse_leave: The customized event handler of mouseleave on the component in this chart
|
|
683
724
|
style: The style of the component.
|
|
684
725
|
key: A unique key for the component.
|
|
685
726
|
id: The id for the component.
|
|
@@ -709,22 +750,22 @@ class FunnelChart(ChartBase):
|
|
|
709
750
|
id: Optional[Any] = None,
|
|
710
751
|
class_name: Optional[Any] = None,
|
|
711
752
|
autofocus: Optional[bool] = None,
|
|
712
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
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,
|
|
753
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
754
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
755
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
756
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
757
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
758
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
759
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
760
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
761
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
762
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
763
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
764
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
765
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
766
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
767
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
768
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
728
769
|
**props,
|
|
729
770
|
) -> "FunnelChart":
|
|
730
771
|
"""Create a chart component.
|
|
@@ -736,6 +777,10 @@ class FunnelChart(ChartBase):
|
|
|
736
777
|
stroke: The stroke color of each bar. String | Object
|
|
737
778
|
width: The width of chart container. String or Integer
|
|
738
779
|
height: The height of chart container.
|
|
780
|
+
on_click: The customized event handler of click on the component in this chart
|
|
781
|
+
on_mouse_enter: The customized event handler of mouseenter on the component in this chart
|
|
782
|
+
on_mouse_move: The customized event handler of mousemove on the component in this chart
|
|
783
|
+
on_mouse_leave: The customized event handler of mouseleave on the component in this chart
|
|
739
784
|
style: The style of the component.
|
|
740
785
|
key: A unique key for the component.
|
|
741
786
|
id: The id for the component.
|
|
@@ -775,24 +820,24 @@ class Treemap(RechartsCharts):
|
|
|
775
820
|
id: Optional[Any] = None,
|
|
776
821
|
class_name: Optional[Any] = None,
|
|
777
822
|
autofocus: Optional[bool] = None,
|
|
778
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
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,
|
|
823
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
824
|
+
on_animation_end: Optional[EventType[[], BASE_STATE]] = None,
|
|
825
|
+
on_animation_start: Optional[EventType[[], BASE_STATE]] = None,
|
|
826
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
827
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
828
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
829
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
830
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
831
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
832
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
833
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
834
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
835
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
836
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
837
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
838
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
839
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
840
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
796
841
|
**props,
|
|
797
842
|
) -> "Treemap":
|
|
798
843
|
"""Create a chart component.
|
|
@@ -809,6 +854,8 @@ class Treemap(RechartsCharts):
|
|
|
809
854
|
animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
810
855
|
animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
811
856
|
animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. Default: "ease"
|
|
857
|
+
on_animation_start: The customized event handler of animation start
|
|
858
|
+
on_animation_end: The customized event handler of animation end
|
|
812
859
|
style: The style of the component.
|
|
813
860
|
key: A unique key for the component.
|
|
814
861
|
id: The id for the component.
|