reflex 0.6.0a1__py3-none-any.whl → 0.6.0a3__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/custom_components/pyproject.toml.jinja2 +2 -2
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +2 -2
- reflex/__init__.py +8 -2
- reflex/__init__.pyi +2 -1
- reflex/app.py +10 -4
- reflex/base.py +1 -1
- reflex/compiler/compiler.py +2 -2
- reflex/compiler/utils.py +3 -3
- reflex/components/base/app_wrap.py +2 -2
- reflex/components/base/app_wrap.pyi +17 -27
- reflex/components/base/bare.py +4 -5
- reflex/components/base/body.pyi +17 -27
- reflex/components/base/document.pyi +81 -131
- reflex/components/base/error_boundary.py +6 -7
- reflex/components/base/error_boundary.pyi +20 -33
- reflex/components/base/fragment.pyi +17 -27
- reflex/components/base/head.pyi +33 -53
- reflex/components/base/link.py +1 -1
- reflex/components/base/link.pyi +33 -54
- reflex/components/base/meta.pyi +65 -105
- reflex/components/base/script.py +1 -2
- reflex/components/base/script.pyi +21 -38
- reflex/components/component.py +45 -47
- reflex/components/core/banner.py +23 -27
- reflex/components/core/banner.pyi +134 -171
- reflex/components/core/breakpoints.py +3 -1
- reflex/components/core/client_side_routing.py +2 -3
- reflex/components/core/client_side_routing.pyi +33 -54
- reflex/components/core/clipboard.py +2 -1
- reflex/components/core/clipboard.pyi +20 -33
- reflex/components/core/cond.py +5 -5
- reflex/components/core/debounce.py +5 -5
- reflex/components/core/debounce.pyi +20 -33
- reflex/components/core/foreach.py +3 -4
- reflex/components/core/html.py +1 -1
- reflex/components/core/html.pyi +35 -46
- reflex/components/core/match.py +17 -17
- reflex/components/core/upload.py +17 -23
- reflex/components/core/upload.pyi +78 -124
- reflex/components/datadisplay/code.py +9 -10
- reflex/components/datadisplay/code.pyi +302 -412
- reflex/components/datadisplay/dataeditor.py +8 -10
- reflex/components/datadisplay/dataeditor.pyi +40 -53
- reflex/components/el/element.pyi +17 -27
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +34 -45
- reflex/components/el/elements/forms.py +16 -16
- reflex/components/el/elements/forms.pyi +554 -707
- reflex/components/el/elements/inline.py +1 -1
- reflex/components/el/elements/inline.pyi +937 -1218
- reflex/components/el/elements/media.py +1 -1
- reflex/components/el/elements/media.pyi +786 -997
- reflex/components/el/elements/metadata.py +3 -6
- reflex/components/el/elements/metadata.pyi +181 -242
- reflex/components/el/elements/other.py +1 -1
- reflex/components/el/elements/other.pyi +235 -306
- reflex/components/el/elements/scripts.py +1 -1
- reflex/components/el/elements/scripts.pyi +109 -140
- reflex/components/el/elements/sectioning.py +0 -2
- reflex/components/el/elements/sectioning.pyi +496 -647
- reflex/components/el/elements/tables.py +1 -1
- reflex/components/el/elements/tables.pyi +351 -452
- reflex/components/el/elements/typography.py +1 -1
- reflex/components/el/elements/typography.pyi +506 -657
- reflex/components/gridjs/datatable.py +6 -9
- reflex/components/gridjs/datatable.pyi +35 -56
- reflex/components/lucide/icon.py +1 -1
- reflex/components/lucide/icon.pyi +33 -54
- reflex/components/markdown/markdown.py +26 -31
- reflex/components/markdown/markdown.pyi +27 -37
- reflex/components/moment/moment.py +13 -12
- reflex/components/moment/moment.pyi +23 -35
- reflex/components/next/base.pyi +17 -27
- reflex/components/next/image.py +1 -1
- reflex/components/next/image.pyi +22 -37
- reflex/components/next/link.py +1 -1
- reflex/components/next/link.pyi +17 -28
- reflex/components/next/video.py +1 -1
- reflex/components/next/video.pyi +17 -28
- reflex/components/plotly/plotly.py +12 -13
- reflex/components/plotly/plotly.pyi +39 -54
- reflex/components/props.py +1 -1
- reflex/components/radix/__init__.pyi +1 -0
- reflex/components/radix/primitives/__init__.pyi +1 -0
- reflex/components/radix/primitives/accordion.py +4 -4
- reflex/components/radix/primitives/accordion.pyi +424 -495
- reflex/components/radix/primitives/base.py +1 -1
- reflex/components/radix/primitives/base.pyi +33 -54
- reflex/components/radix/primitives/drawer.py +1 -1
- reflex/components/radix/primitives/drawer.pyi +172 -273
- reflex/components/radix/primitives/form.py +1 -1
- reflex/components/radix/primitives/form.pyi +257 -364
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +231 -282
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +87 -138
- reflex/components/radix/themes/base.py +3 -24
- reflex/components/radix/themes/base.pyi +178 -250
- reflex/components/radix/themes/color_mode.py +5 -5
- reflex/components/radix/themes/color_mode.pyi +187 -220
- reflex/components/radix/themes/components/alert_dialog.py +1 -1
- reflex/components/radix/themes/components/alert_dialog.pyi +136 -207
- reflex/components/radix/themes/components/aspect_ratio.py +1 -1
- reflex/components/radix/themes/components/aspect_ratio.pyi +17 -28
- reflex/components/radix/themes/components/avatar.py +1 -1
- reflex/components/radix/themes/components/avatar.pyi +70 -81
- reflex/components/radix/themes/components/badge.py +1 -1
- reflex/components/radix/themes/components/badge.pyi +88 -99
- reflex/components/radix/themes/components/button.py +1 -1
- reflex/components/radix/themes/components/button.pyi +98 -109
- reflex/components/radix/themes/components/callout.py +1 -1
- reflex/components/radix/themes/components/callout.pyi +322 -373
- reflex/components/radix/themes/components/card.py +1 -1
- reflex/components/radix/themes/components/card.pyi +38 -49
- reflex/components/radix/themes/components/checkbox.py +1 -2
- reflex/components/radix/themes/components/checkbox.pyi +208 -245
- reflex/components/radix/themes/components/checkbox_cards.py +1 -1
- reflex/components/radix/themes/components/checkbox_cards.pyi +94 -115
- reflex/components/radix/themes/components/checkbox_group.py +1 -1
- reflex/components/radix/themes/components/checkbox_group.pyi +86 -107
- reflex/components/radix/themes/components/context_menu.py +1 -1
- reflex/components/radix/themes/components/context_menu.pyi +238 -319
- reflex/components/radix/themes/components/data_list.py +1 -1
- reflex/components/radix/themes/components/data_list.pyi +130 -171
- reflex/components/radix/themes/components/dialog.py +1 -1
- reflex/components/radix/themes/components/dialog.pyi +139 -210
- reflex/components/radix/themes/components/dropdown_menu.py +1 -1
- reflex/components/radix/themes/components/dropdown_menu.pyi +249 -332
- reflex/components/radix/themes/components/hover_card.py +1 -1
- reflex/components/radix/themes/components/hover_card.pyi +90 -131
- reflex/components/radix/themes/components/icon_button.py +2 -3
- reflex/components/radix/themes/components/icon_button.pyi +98 -109
- reflex/components/radix/themes/components/inset.py +1 -1
- reflex/components/radix/themes/components/inset.pyi +47 -58
- reflex/components/radix/themes/components/popover.py +1 -1
- reflex/components/radix/themes/components/popover.pyi +95 -136
- reflex/components/radix/themes/components/progress.py +1 -1
- reflex/components/radix/themes/components/progress.pyi +71 -82
- reflex/components/radix/themes/components/radio.py +1 -1
- reflex/components/radix/themes/components/radio.pyi +69 -80
- reflex/components/radix/themes/components/radio_cards.py +1 -1
- reflex/components/radix/themes/components/radio_cards.pyi +98 -119
- reflex/components/radix/themes/components/radio_group.py +8 -11
- reflex/components/radix/themes/components/radio_group.pyi +228 -271
- reflex/components/radix/themes/components/scroll_area.py +1 -1
- reflex/components/radix/themes/components/scroll_area.pyi +21 -32
- reflex/components/radix/themes/components/segmented_control.py +1 -1
- reflex/components/radix/themes/components/segmented_control.pyi +90 -113
- reflex/components/radix/themes/components/select.py +2 -3
- reflex/components/radix/themes/components/select.pyi +374 -471
- reflex/components/radix/themes/components/separator.py +1 -2
- reflex/components/radix/themes/components/separator.pyi +69 -80
- reflex/components/radix/themes/components/skeleton.py +1 -1
- reflex/components/radix/themes/components/skeleton.pyi +23 -34
- reflex/components/radix/themes/components/slider.py +2 -3
- reflex/components/radix/themes/components/slider.pyi +75 -88
- reflex/components/radix/themes/components/spinner.py +1 -1
- reflex/components/radix/themes/components/spinner.pyi +19 -30
- reflex/components/radix/themes/components/switch.py +1 -1
- reflex/components/radix/themes/components/switch.pyi +71 -84
- reflex/components/radix/themes/components/table.py +1 -1
- reflex/components/radix/themes/components/table.pyi +261 -332
- reflex/components/radix/themes/components/tabs.py +1 -1
- reflex/components/radix/themes/components/tabs.pyi +139 -194
- reflex/components/radix/themes/components/text_area.py +1 -1
- reflex/components/radix/themes/components/text_area.pyi +96 -111
- reflex/components/radix/themes/components/text_field.py +1 -1
- reflex/components/radix/themes/components/text_field.pyi +247 -286
- reflex/components/radix/themes/components/tooltip.py +1 -1
- reflex/components/radix/themes/components/tooltip.pyi +26 -37
- reflex/components/radix/themes/layout/__init__.pyi +1 -0
- reflex/components/radix/themes/layout/base.py +1 -1
- reflex/components/radix/themes/layout/base.pyi +56 -67
- reflex/components/radix/themes/layout/box.pyi +34 -45
- reflex/components/radix/themes/layout/center.pyi +56 -67
- reflex/components/radix/themes/layout/container.py +1 -2
- reflex/components/radix/themes/layout/container.pyi +36 -47
- reflex/components/radix/themes/layout/flex.py +1 -1
- reflex/components/radix/themes/layout/flex.pyi +56 -67
- reflex/components/radix/themes/layout/grid.py +1 -1
- reflex/components/radix/themes/layout/grid.pyi +64 -75
- reflex/components/radix/themes/layout/list.py +5 -6
- reflex/components/radix/themes/layout/list.pyi +193 -244
- reflex/components/radix/themes/layout/section.py +1 -2
- reflex/components/radix/themes/layout/section.pyi +36 -47
- reflex/components/radix/themes/layout/spacer.pyi +56 -67
- reflex/components/radix/themes/layout/stack.py +1 -1
- reflex/components/radix/themes/layout/stack.pyi +128 -159
- reflex/components/radix/themes/typography/blockquote.py +1 -1
- reflex/components/radix/themes/typography/blockquote.pyi +89 -100
- reflex/components/radix/themes/typography/code.py +1 -1
- reflex/components/radix/themes/typography/code.pyi +90 -101
- reflex/components/radix/themes/typography/heading.py +1 -1
- reflex/components/radix/themes/typography/heading.pyi +96 -107
- reflex/components/radix/themes/typography/link.py +1 -1
- reflex/components/radix/themes/typography/link.pyi +102 -113
- reflex/components/radix/themes/typography/text.py +1 -1
- reflex/components/radix/themes/typography/text.pyi +501 -572
- reflex/components/react_player/audio.pyi +33 -60
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +33 -60
- reflex/components/react_player/video.pyi +33 -60
- reflex/components/recharts/cartesian.py +2 -3
- reflex/components/recharts/cartesian.pyi +678 -861
- reflex/components/recharts/charts.py +4 -5
- reflex/components/recharts/charts.pyi +252 -357
- reflex/components/recharts/general.py +1 -2
- reflex/components/recharts/general.pyi +180 -231
- reflex/components/recharts/polar.py +4 -5
- reflex/components/recharts/polar.pyi +144 -181
- reflex/components/recharts/recharts.pyi +33 -53
- reflex/components/sonner/toast.py +16 -17
- reflex/components/sonner/toast.pyi +36 -47
- reflex/components/suneditor/editor.py +2 -3
- reflex/components/suneditor/editor.pyi +55 -78
- reflex/components/tags/cond_tag.py +6 -4
- reflex/components/tags/iter_tag.py +28 -16
- reflex/components/tags/match_tag.py +6 -4
- reflex/components/tags/tag.py +40 -23
- reflex/custom_components/custom_components.py +3 -1
- reflex/event.py +115 -67
- reflex/experimental/client_state.py +18 -18
- reflex/experimental/hooks.py +16 -16
- reflex/experimental/layout.py +5 -5
- reflex/experimental/layout.pyi +136 -187
- reflex/middleware/hydrate_middleware.py +2 -0
- reflex/middleware/middleware.py +3 -3
- reflex/state.py +149 -82
- reflex/style.py +21 -22
- reflex/utils/exceptions.py +20 -0
- reflex/utils/format.py +54 -34
- reflex/utils/imports.py +16 -73
- reflex/utils/prerequisites.py +15 -8
- reflex/utils/pyi_generator.py +13 -8
- reflex/utils/serializers.py +12 -22
- reflex/utils/telemetry.py +3 -2
- reflex/utils/types.py +11 -6
- reflex/{ivars → vars}/__init__.py +6 -2
- reflex/{ivars → vars}/base.py +599 -216
- reflex/{ivars → vars}/function.py +15 -19
- reflex/{ivars → vars}/number.py +41 -20
- reflex/{ivars → vars}/object.py +28 -30
- reflex/{ivars → vars}/sequence.py +53 -42
- {reflex-0.6.0a1.dist-info → reflex-0.6.0a3.dist-info}/METADATA +4 -6
- reflex-0.6.0a3.dist-info/RECORD +382 -0
- reflex/.templates/web/components/reflex/chakra_color_mode_provider.js +0 -36
- reflex/vars.py +0 -501
- reflex-0.6.0a1.dist-info/RECORD +0 -384
- {reflex-0.6.0a1.dist-info → reflex-0.6.0a3.dist-info}/LICENSE +0 -0
- {reflex-0.6.0a1.dist-info → reflex-0.6.0a3.dist-info}/WHEEL +0 -0
- {reflex-0.6.0a1.dist-info → reflex-0.6.0a3.dist-info}/entry_points.txt +0 -0
|
@@ -7,9 +7,8 @@ from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.constants.colors import Color
|
|
9
9
|
from reflex.event import EventHandler, EventSpec
|
|
10
|
-
from reflex.ivars.base import ImmutableVar
|
|
11
10
|
from reflex.style import Style
|
|
12
|
-
from reflex.vars import Var
|
|
11
|
+
from reflex.vars.base import Var
|
|
13
12
|
|
|
14
13
|
from .recharts import (
|
|
15
14
|
RechartsCharts,
|
|
@@ -21,58 +20,48 @@ class ChartBase(RechartsCharts):
|
|
|
21
20
|
def create( # type: ignore
|
|
22
21
|
cls,
|
|
23
22
|
*children,
|
|
24
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
25
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
23
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
24
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
26
25
|
style: Optional[Style] = None,
|
|
27
26
|
key: Optional[Any] = None,
|
|
28
27
|
id: Optional[Any] = None,
|
|
29
28
|
class_name: Optional[Any] = None,
|
|
30
29
|
autofocus: Optional[bool] = None,
|
|
31
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
32
|
-
on_blur: Optional[
|
|
33
|
-
|
|
34
|
-
] = None,
|
|
35
|
-
on_click: Optional[
|
|
36
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
37
|
-
] = None,
|
|
30
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
31
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
32
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
38
33
|
on_context_menu: Optional[
|
|
39
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
34
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
40
35
|
] = None,
|
|
41
36
|
on_double_click: Optional[
|
|
42
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
43
|
-
] = None,
|
|
44
|
-
on_focus: Optional[
|
|
45
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
46
|
-
] = None,
|
|
47
|
-
on_mount: Optional[
|
|
48
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
37
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
49
38
|
] = None,
|
|
39
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
40
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
50
41
|
on_mouse_down: Optional[
|
|
51
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
42
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
52
43
|
] = None,
|
|
53
44
|
on_mouse_enter: Optional[
|
|
54
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
45
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
55
46
|
] = None,
|
|
56
47
|
on_mouse_leave: Optional[
|
|
57
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
48
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
58
49
|
] = None,
|
|
59
50
|
on_mouse_move: Optional[
|
|
60
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
51
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
61
52
|
] = None,
|
|
62
53
|
on_mouse_out: Optional[
|
|
63
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
54
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
64
55
|
] = None,
|
|
65
56
|
on_mouse_over: Optional[
|
|
66
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
57
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
67
58
|
] = None,
|
|
68
59
|
on_mouse_up: Optional[
|
|
69
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
70
|
-
] = None,
|
|
71
|
-
on_scroll: Optional[
|
|
72
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
60
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
73
61
|
] = None,
|
|
62
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
74
63
|
on_unmount: Optional[
|
|
75
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
64
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
76
65
|
] = None,
|
|
77
66
|
**props,
|
|
78
67
|
) -> "ChartBase":
|
|
@@ -101,76 +90,66 @@ class CategoricalChartBase(ChartBase):
|
|
|
101
90
|
def create( # type: ignore
|
|
102
91
|
cls,
|
|
103
92
|
*children,
|
|
104
|
-
data: Optional[Union[
|
|
105
|
-
margin: Optional[Union[
|
|
93
|
+
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
94
|
+
margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
|
|
106
95
|
sync_id: Optional[Union[Var[str], str]] = None,
|
|
107
96
|
sync_method: Optional[
|
|
108
|
-
Union[
|
|
97
|
+
Union[Literal["index", "value"], Var[Literal["index", "value"]]]
|
|
109
98
|
] = None,
|
|
110
99
|
layout: Optional[
|
|
111
100
|
Union[
|
|
112
|
-
Var[Literal["horizontal", "vertical"]],
|
|
113
101
|
Literal["horizontal", "vertical"],
|
|
102
|
+
Var[Literal["horizontal", "vertical"]],
|
|
114
103
|
]
|
|
115
104
|
] = None,
|
|
116
105
|
stack_offset: Optional[
|
|
117
106
|
Union[
|
|
118
|
-
|
|
119
|
-
Literal["expand", "none", "
|
|
107
|
+
Literal["expand", "none", "silhouette", "wiggle"],
|
|
108
|
+
Var[Literal["expand", "none", "silhouette", "wiggle"]],
|
|
120
109
|
]
|
|
121
110
|
] = None,
|
|
122
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
123
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
111
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
112
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
124
113
|
style: Optional[Style] = None,
|
|
125
114
|
key: Optional[Any] = None,
|
|
126
115
|
id: Optional[Any] = None,
|
|
127
116
|
class_name: Optional[Any] = None,
|
|
128
117
|
autofocus: Optional[bool] = None,
|
|
129
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
130
|
-
on_blur: Optional[
|
|
131
|
-
|
|
132
|
-
] = None,
|
|
133
|
-
on_click: Optional[
|
|
134
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
135
|
-
] = None,
|
|
118
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
119
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
120
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
136
121
|
on_context_menu: Optional[
|
|
137
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
122
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
138
123
|
] = None,
|
|
139
124
|
on_double_click: Optional[
|
|
140
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
141
|
-
] = None,
|
|
142
|
-
on_focus: Optional[
|
|
143
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
144
|
-
] = None,
|
|
145
|
-
on_mount: Optional[
|
|
146
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
125
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
147
126
|
] = None,
|
|
127
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
128
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
148
129
|
on_mouse_down: Optional[
|
|
149
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
130
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
150
131
|
] = None,
|
|
151
132
|
on_mouse_enter: Optional[
|
|
152
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
133
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
153
134
|
] = None,
|
|
154
135
|
on_mouse_leave: Optional[
|
|
155
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
136
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
156
137
|
] = None,
|
|
157
138
|
on_mouse_move: Optional[
|
|
158
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
139
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
159
140
|
] = None,
|
|
160
141
|
on_mouse_out: Optional[
|
|
161
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
142
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
162
143
|
] = None,
|
|
163
144
|
on_mouse_over: Optional[
|
|
164
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
145
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
165
146
|
] = None,
|
|
166
147
|
on_mouse_up: Optional[
|
|
167
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
168
|
-
] = None,
|
|
169
|
-
on_scroll: Optional[
|
|
170
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
148
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
171
149
|
] = None,
|
|
150
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
172
151
|
on_unmount: Optional[
|
|
173
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
152
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
174
153
|
] = None,
|
|
175
154
|
**props,
|
|
176
155
|
) -> "CategoricalChartBase":
|
|
@@ -207,81 +186,71 @@ class AreaChart(CategoricalChartBase):
|
|
|
207
186
|
*children,
|
|
208
187
|
base_value: Optional[
|
|
209
188
|
Union[
|
|
210
|
-
|
|
189
|
+
Literal["auto", "dataMax", "dataMin"],
|
|
190
|
+
Var[Union[Literal["auto", "dataMax", "dataMin"], int]],
|
|
211
191
|
int,
|
|
212
|
-
Literal["dataMin", "dataMax", "auto"],
|
|
213
192
|
]
|
|
214
193
|
] = None,
|
|
215
|
-
data: Optional[Union[
|
|
216
|
-
margin: Optional[Union[
|
|
194
|
+
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
195
|
+
margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
|
|
217
196
|
sync_id: Optional[Union[Var[str], str]] = None,
|
|
218
197
|
sync_method: Optional[
|
|
219
|
-
Union[
|
|
198
|
+
Union[Literal["index", "value"], Var[Literal["index", "value"]]]
|
|
220
199
|
] = None,
|
|
221
200
|
layout: Optional[
|
|
222
201
|
Union[
|
|
223
|
-
Var[Literal["horizontal", "vertical"]],
|
|
224
202
|
Literal["horizontal", "vertical"],
|
|
203
|
+
Var[Literal["horizontal", "vertical"]],
|
|
225
204
|
]
|
|
226
205
|
] = None,
|
|
227
206
|
stack_offset: Optional[
|
|
228
207
|
Union[
|
|
229
|
-
|
|
230
|
-
Literal["expand", "none", "
|
|
208
|
+
Literal["expand", "none", "silhouette", "wiggle"],
|
|
209
|
+
Var[Literal["expand", "none", "silhouette", "wiggle"]],
|
|
231
210
|
]
|
|
232
211
|
] = None,
|
|
233
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
234
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
212
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
213
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
235
214
|
style: Optional[Style] = None,
|
|
236
215
|
key: Optional[Any] = None,
|
|
237
216
|
id: Optional[Any] = None,
|
|
238
217
|
class_name: Optional[Any] = None,
|
|
239
218
|
autofocus: Optional[bool] = None,
|
|
240
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
241
|
-
on_blur: Optional[
|
|
242
|
-
|
|
243
|
-
] = None,
|
|
244
|
-
on_click: Optional[
|
|
245
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
246
|
-
] = None,
|
|
219
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
220
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
221
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
247
222
|
on_context_menu: Optional[
|
|
248
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
223
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
249
224
|
] = None,
|
|
250
225
|
on_double_click: Optional[
|
|
251
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
252
|
-
] = None,
|
|
253
|
-
on_focus: Optional[
|
|
254
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
255
|
-
] = None,
|
|
256
|
-
on_mount: Optional[
|
|
257
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
226
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
258
227
|
] = None,
|
|
228
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
229
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
259
230
|
on_mouse_down: Optional[
|
|
260
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
231
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
261
232
|
] = None,
|
|
262
233
|
on_mouse_enter: Optional[
|
|
263
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
234
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
264
235
|
] = None,
|
|
265
236
|
on_mouse_leave: Optional[
|
|
266
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
237
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
267
238
|
] = None,
|
|
268
239
|
on_mouse_move: Optional[
|
|
269
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
240
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
270
241
|
] = None,
|
|
271
242
|
on_mouse_out: Optional[
|
|
272
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
243
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
273
244
|
] = None,
|
|
274
245
|
on_mouse_over: Optional[
|
|
275
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
246
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
276
247
|
] = None,
|
|
277
248
|
on_mouse_up: Optional[
|
|
278
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
279
|
-
] = None,
|
|
280
|
-
on_scroll: Optional[
|
|
281
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
249
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
282
250
|
] = None,
|
|
251
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
283
252
|
on_unmount: Optional[
|
|
284
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
253
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
285
254
|
] = None,
|
|
286
255
|
**props,
|
|
287
256
|
) -> "AreaChart":
|
|
@@ -317,81 +286,71 @@ class BarChart(CategoricalChartBase):
|
|
|
317
286
|
def create( # type: ignore
|
|
318
287
|
cls,
|
|
319
288
|
*children,
|
|
320
|
-
bar_category_gap: Optional[Union[Var[Union[int, str]],
|
|
321
|
-
bar_gap: Optional[Union[Var[Union[int, str]],
|
|
289
|
+
bar_category_gap: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
290
|
+
bar_gap: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
322
291
|
bar_size: Optional[Union[Var[int], int]] = None,
|
|
323
292
|
max_bar_size: Optional[Union[Var[int], int]] = None,
|
|
324
293
|
stack_offset: Optional[
|
|
325
294
|
Union[
|
|
326
|
-
|
|
327
|
-
Literal["expand", "none", "
|
|
295
|
+
Literal["expand", "none", "silhouette", "wiggle"],
|
|
296
|
+
Var[Literal["expand", "none", "silhouette", "wiggle"]],
|
|
328
297
|
]
|
|
329
298
|
] = None,
|
|
330
299
|
reverse_stack_order: Optional[Union[Var[bool], bool]] = None,
|
|
331
|
-
data: Optional[Union[
|
|
332
|
-
margin: Optional[Union[
|
|
300
|
+
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
301
|
+
margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
|
|
333
302
|
sync_id: Optional[Union[Var[str], str]] = None,
|
|
334
303
|
sync_method: Optional[
|
|
335
|
-
Union[
|
|
304
|
+
Union[Literal["index", "value"], Var[Literal["index", "value"]]]
|
|
336
305
|
] = None,
|
|
337
306
|
layout: Optional[
|
|
338
307
|
Union[
|
|
339
|
-
Var[Literal["horizontal", "vertical"]],
|
|
340
308
|
Literal["horizontal", "vertical"],
|
|
309
|
+
Var[Literal["horizontal", "vertical"]],
|
|
341
310
|
]
|
|
342
311
|
] = None,
|
|
343
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
344
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
312
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
313
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
345
314
|
style: Optional[Style] = None,
|
|
346
315
|
key: Optional[Any] = None,
|
|
347
316
|
id: Optional[Any] = None,
|
|
348
317
|
class_name: Optional[Any] = None,
|
|
349
318
|
autofocus: Optional[bool] = None,
|
|
350
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
351
|
-
on_blur: Optional[
|
|
352
|
-
|
|
353
|
-
] = None,
|
|
354
|
-
on_click: Optional[
|
|
355
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
356
|
-
] = None,
|
|
319
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
320
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
321
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
357
322
|
on_context_menu: Optional[
|
|
358
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
323
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
359
324
|
] = None,
|
|
360
325
|
on_double_click: Optional[
|
|
361
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
362
|
-
] = None,
|
|
363
|
-
on_focus: Optional[
|
|
364
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
365
|
-
] = None,
|
|
366
|
-
on_mount: Optional[
|
|
367
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
326
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
368
327
|
] = None,
|
|
328
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
329
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
369
330
|
on_mouse_down: Optional[
|
|
370
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
331
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
371
332
|
] = None,
|
|
372
333
|
on_mouse_enter: Optional[
|
|
373
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
334
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
374
335
|
] = None,
|
|
375
336
|
on_mouse_leave: Optional[
|
|
376
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
337
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
377
338
|
] = None,
|
|
378
339
|
on_mouse_move: Optional[
|
|
379
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
340
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
380
341
|
] = None,
|
|
381
342
|
on_mouse_out: Optional[
|
|
382
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
343
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
383
344
|
] = None,
|
|
384
345
|
on_mouse_over: Optional[
|
|
385
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
346
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
386
347
|
] = None,
|
|
387
348
|
on_mouse_up: Optional[
|
|
388
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
389
|
-
] = None,
|
|
390
|
-
on_scroll: Optional[
|
|
391
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
349
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
392
350
|
] = None,
|
|
351
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
393
352
|
on_unmount: Optional[
|
|
394
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
353
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
395
354
|
] = None,
|
|
396
355
|
**props,
|
|
397
356
|
) -> "BarChart":
|
|
@@ -431,76 +390,66 @@ class LineChart(CategoricalChartBase):
|
|
|
431
390
|
def create( # type: ignore
|
|
432
391
|
cls,
|
|
433
392
|
*children,
|
|
434
|
-
data: Optional[Union[
|
|
435
|
-
margin: Optional[Union[
|
|
393
|
+
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
394
|
+
margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
|
|
436
395
|
sync_id: Optional[Union[Var[str], str]] = None,
|
|
437
396
|
sync_method: Optional[
|
|
438
|
-
Union[
|
|
397
|
+
Union[Literal["index", "value"], Var[Literal["index", "value"]]]
|
|
439
398
|
] = None,
|
|
440
399
|
layout: Optional[
|
|
441
400
|
Union[
|
|
442
|
-
Var[Literal["horizontal", "vertical"]],
|
|
443
401
|
Literal["horizontal", "vertical"],
|
|
402
|
+
Var[Literal["horizontal", "vertical"]],
|
|
444
403
|
]
|
|
445
404
|
] = None,
|
|
446
405
|
stack_offset: Optional[
|
|
447
406
|
Union[
|
|
448
|
-
|
|
449
|
-
Literal["expand", "none", "
|
|
407
|
+
Literal["expand", "none", "silhouette", "wiggle"],
|
|
408
|
+
Var[Literal["expand", "none", "silhouette", "wiggle"]],
|
|
450
409
|
]
|
|
451
410
|
] = None,
|
|
452
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
453
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
411
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
412
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
454
413
|
style: Optional[Style] = None,
|
|
455
414
|
key: Optional[Any] = None,
|
|
456
415
|
id: Optional[Any] = None,
|
|
457
416
|
class_name: Optional[Any] = None,
|
|
458
417
|
autofocus: Optional[bool] = None,
|
|
459
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
460
|
-
on_blur: Optional[
|
|
461
|
-
|
|
462
|
-
] = None,
|
|
463
|
-
on_click: Optional[
|
|
464
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
465
|
-
] = None,
|
|
418
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
419
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
420
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
466
421
|
on_context_menu: Optional[
|
|
467
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
422
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
468
423
|
] = None,
|
|
469
424
|
on_double_click: Optional[
|
|
470
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
471
|
-
] = None,
|
|
472
|
-
on_focus: Optional[
|
|
473
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
474
|
-
] = None,
|
|
475
|
-
on_mount: Optional[
|
|
476
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
425
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
477
426
|
] = None,
|
|
427
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
428
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
478
429
|
on_mouse_down: Optional[
|
|
479
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
430
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
480
431
|
] = None,
|
|
481
432
|
on_mouse_enter: Optional[
|
|
482
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
433
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
483
434
|
] = None,
|
|
484
435
|
on_mouse_leave: Optional[
|
|
485
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
436
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
486
437
|
] = None,
|
|
487
438
|
on_mouse_move: Optional[
|
|
488
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
439
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
489
440
|
] = None,
|
|
490
441
|
on_mouse_out: Optional[
|
|
491
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
442
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
492
443
|
] = None,
|
|
493
444
|
on_mouse_over: Optional[
|
|
494
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
445
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
495
446
|
] = None,
|
|
496
447
|
on_mouse_up: Optional[
|
|
497
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
498
|
-
] = None,
|
|
499
|
-
on_scroll: Optional[
|
|
500
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
448
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
501
449
|
] = None,
|
|
450
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
502
451
|
on_unmount: Optional[
|
|
503
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
452
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
504
453
|
] = None,
|
|
505
454
|
**props,
|
|
506
455
|
) -> "LineChart":
|
|
@@ -537,85 +486,75 @@ class ComposedChart(CategoricalChartBase):
|
|
|
537
486
|
*children,
|
|
538
487
|
base_value: Optional[
|
|
539
488
|
Union[
|
|
540
|
-
|
|
489
|
+
Literal["auto", "dataMax", "dataMin"],
|
|
490
|
+
Var[Union[Literal["auto", "dataMax", "dataMin"], int]],
|
|
541
491
|
int,
|
|
542
|
-
Literal["dataMin", "dataMax", "auto"],
|
|
543
492
|
]
|
|
544
493
|
] = None,
|
|
545
|
-
bar_category_gap: Optional[Union[Var[Union[int, str]],
|
|
546
|
-
bar_gap: Optional[Union[Var[Union[int, str]],
|
|
494
|
+
bar_category_gap: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
495
|
+
bar_gap: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
547
496
|
bar_size: Optional[Union[Var[int], int]] = None,
|
|
548
497
|
reverse_stack_order: Optional[Union[Var[bool], bool]] = None,
|
|
549
|
-
data: Optional[Union[
|
|
550
|
-
margin: Optional[Union[
|
|
498
|
+
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
499
|
+
margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
|
|
551
500
|
sync_id: Optional[Union[Var[str], str]] = None,
|
|
552
501
|
sync_method: Optional[
|
|
553
|
-
Union[
|
|
502
|
+
Union[Literal["index", "value"], Var[Literal["index", "value"]]]
|
|
554
503
|
] = None,
|
|
555
504
|
layout: Optional[
|
|
556
505
|
Union[
|
|
557
|
-
Var[Literal["horizontal", "vertical"]],
|
|
558
506
|
Literal["horizontal", "vertical"],
|
|
507
|
+
Var[Literal["horizontal", "vertical"]],
|
|
559
508
|
]
|
|
560
509
|
] = None,
|
|
561
510
|
stack_offset: Optional[
|
|
562
511
|
Union[
|
|
563
|
-
|
|
564
|
-
Literal["expand", "none", "
|
|
512
|
+
Literal["expand", "none", "silhouette", "wiggle"],
|
|
513
|
+
Var[Literal["expand", "none", "silhouette", "wiggle"]],
|
|
565
514
|
]
|
|
566
515
|
] = None,
|
|
567
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
568
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
516
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
517
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
569
518
|
style: Optional[Style] = None,
|
|
570
519
|
key: Optional[Any] = None,
|
|
571
520
|
id: Optional[Any] = None,
|
|
572
521
|
class_name: Optional[Any] = None,
|
|
573
522
|
autofocus: Optional[bool] = None,
|
|
574
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
575
|
-
on_blur: Optional[
|
|
576
|
-
|
|
577
|
-
] = None,
|
|
578
|
-
on_click: Optional[
|
|
579
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
580
|
-
] = None,
|
|
523
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
524
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
525
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
581
526
|
on_context_menu: Optional[
|
|
582
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
527
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
583
528
|
] = None,
|
|
584
529
|
on_double_click: Optional[
|
|
585
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
586
|
-
] = None,
|
|
587
|
-
on_focus: Optional[
|
|
588
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
589
|
-
] = None,
|
|
590
|
-
on_mount: Optional[
|
|
591
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
530
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
592
531
|
] = None,
|
|
532
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
533
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
593
534
|
on_mouse_down: Optional[
|
|
594
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
535
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
595
536
|
] = None,
|
|
596
537
|
on_mouse_enter: Optional[
|
|
597
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
538
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
598
539
|
] = None,
|
|
599
540
|
on_mouse_leave: Optional[
|
|
600
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
541
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
601
542
|
] = None,
|
|
602
543
|
on_mouse_move: Optional[
|
|
603
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
544
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
604
545
|
] = None,
|
|
605
546
|
on_mouse_out: Optional[
|
|
606
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
547
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
607
548
|
] = None,
|
|
608
549
|
on_mouse_over: Optional[
|
|
609
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
550
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
610
551
|
] = None,
|
|
611
552
|
on_mouse_up: Optional[
|
|
612
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
613
|
-
] = None,
|
|
614
|
-
on_scroll: Optional[
|
|
615
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
553
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
616
554
|
] = None,
|
|
555
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
617
556
|
on_unmount: Optional[
|
|
618
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
557
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
619
558
|
] = None,
|
|
620
559
|
**props,
|
|
621
560
|
) -> "ComposedChart":
|
|
@@ -655,59 +594,49 @@ class PieChart(ChartBase):
|
|
|
655
594
|
def create( # type: ignore
|
|
656
595
|
cls,
|
|
657
596
|
*children,
|
|
658
|
-
margin: Optional[Union[
|
|
659
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
660
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
597
|
+
margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
|
|
598
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
599
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
661
600
|
style: Optional[Style] = None,
|
|
662
601
|
key: Optional[Any] = None,
|
|
663
602
|
id: Optional[Any] = None,
|
|
664
603
|
class_name: Optional[Any] = None,
|
|
665
604
|
autofocus: Optional[bool] = None,
|
|
666
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
667
|
-
on_blur: Optional[
|
|
668
|
-
|
|
669
|
-
] = None,
|
|
670
|
-
on_click: Optional[
|
|
671
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
672
|
-
] = None,
|
|
605
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
606
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
607
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
673
608
|
on_context_menu: Optional[
|
|
674
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
609
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
675
610
|
] = None,
|
|
676
611
|
on_double_click: Optional[
|
|
677
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
678
|
-
] = None,
|
|
679
|
-
on_focus: Optional[
|
|
680
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
681
|
-
] = None,
|
|
682
|
-
on_mount: Optional[
|
|
683
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
612
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
684
613
|
] = None,
|
|
614
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
615
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
685
616
|
on_mouse_down: Optional[
|
|
686
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
617
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
687
618
|
] = None,
|
|
688
619
|
on_mouse_enter: Optional[
|
|
689
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
620
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
690
621
|
] = None,
|
|
691
622
|
on_mouse_leave: Optional[
|
|
692
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
623
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
693
624
|
] = None,
|
|
694
625
|
on_mouse_move: Optional[
|
|
695
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
626
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
696
627
|
] = None,
|
|
697
628
|
on_mouse_out: Optional[
|
|
698
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
629
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
699
630
|
] = None,
|
|
700
631
|
on_mouse_over: Optional[
|
|
701
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
632
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
702
633
|
] = None,
|
|
703
634
|
on_mouse_up: Optional[
|
|
704
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
705
|
-
] = None,
|
|
706
|
-
on_scroll: Optional[
|
|
707
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
635
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
708
636
|
] = None,
|
|
637
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
709
638
|
on_unmount: Optional[
|
|
710
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
639
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
711
640
|
] = None,
|
|
712
641
|
**props,
|
|
713
642
|
) -> "PieChart":
|
|
@@ -732,36 +661,34 @@ class PieChart(ChartBase):
|
|
|
732
661
|
...
|
|
733
662
|
|
|
734
663
|
class RadarChart(ChartBase):
|
|
735
|
-
def get_event_triggers(self) -> dict[str, Union[
|
|
664
|
+
def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
|
|
736
665
|
@overload
|
|
737
666
|
@classmethod
|
|
738
667
|
def create( # type: ignore
|
|
739
668
|
cls,
|
|
740
669
|
*children,
|
|
741
|
-
data: Optional[Union[
|
|
742
|
-
margin: Optional[Union[
|
|
670
|
+
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
671
|
+
margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
|
|
743
672
|
cx: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
744
673
|
cy: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
745
674
|
start_angle: Optional[Union[Var[int], int]] = None,
|
|
746
675
|
end_angle: Optional[Union[Var[int], int]] = None,
|
|
747
676
|
inner_radius: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
748
677
|
outer_radius: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
749
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
750
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
678
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
679
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
751
680
|
style: Optional[Style] = None,
|
|
752
681
|
key: Optional[Any] = None,
|
|
753
682
|
id: Optional[Any] = None,
|
|
754
683
|
class_name: Optional[Any] = None,
|
|
755
684
|
autofocus: Optional[bool] = None,
|
|
756
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
757
|
-
on_click: Optional[
|
|
758
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
759
|
-
] = None,
|
|
685
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
686
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
760
687
|
on_mouse_enter: Optional[
|
|
761
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
688
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
762
689
|
] = None,
|
|
763
690
|
on_mouse_leave: Optional[
|
|
764
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
691
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
765
692
|
] = None,
|
|
766
693
|
**props,
|
|
767
694
|
) -> "RadarChart":
|
|
@@ -798,8 +725,8 @@ class RadialBarChart(ChartBase):
|
|
|
798
725
|
def create( # type: ignore
|
|
799
726
|
cls,
|
|
800
727
|
*children,
|
|
801
|
-
data: Optional[Union[
|
|
802
|
-
margin: Optional[Union[
|
|
728
|
+
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
729
|
+
margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
|
|
803
730
|
cx: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
804
731
|
cy: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
805
732
|
start_angle: Optional[Union[Var[int], int]] = None,
|
|
@@ -809,58 +736,48 @@ class RadialBarChart(ChartBase):
|
|
|
809
736
|
bar_category_gap: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
810
737
|
bar_gap: Optional[Union[Var[str], str]] = None,
|
|
811
738
|
bar_size: Optional[Union[Var[int], int]] = None,
|
|
812
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
813
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
739
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
740
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
814
741
|
style: Optional[Style] = None,
|
|
815
742
|
key: Optional[Any] = None,
|
|
816
743
|
id: Optional[Any] = None,
|
|
817
744
|
class_name: Optional[Any] = None,
|
|
818
745
|
autofocus: Optional[bool] = None,
|
|
819
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
820
|
-
on_blur: Optional[
|
|
821
|
-
|
|
822
|
-
] = None,
|
|
823
|
-
on_click: Optional[
|
|
824
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
825
|
-
] = None,
|
|
746
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
747
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
748
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
826
749
|
on_context_menu: Optional[
|
|
827
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
750
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
828
751
|
] = None,
|
|
829
752
|
on_double_click: Optional[
|
|
830
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
831
|
-
] = None,
|
|
832
|
-
on_focus: Optional[
|
|
833
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
834
|
-
] = None,
|
|
835
|
-
on_mount: Optional[
|
|
836
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
753
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
837
754
|
] = None,
|
|
755
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
756
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
838
757
|
on_mouse_down: Optional[
|
|
839
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
758
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
840
759
|
] = None,
|
|
841
760
|
on_mouse_enter: Optional[
|
|
842
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
761
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
843
762
|
] = None,
|
|
844
763
|
on_mouse_leave: Optional[
|
|
845
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
764
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
846
765
|
] = None,
|
|
847
766
|
on_mouse_move: Optional[
|
|
848
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
767
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
849
768
|
] = None,
|
|
850
769
|
on_mouse_out: Optional[
|
|
851
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
770
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
852
771
|
] = None,
|
|
853
772
|
on_mouse_over: Optional[
|
|
854
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
773
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
855
774
|
] = None,
|
|
856
775
|
on_mouse_up: Optional[
|
|
857
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
858
|
-
] = None,
|
|
859
|
-
on_scroll: Optional[
|
|
860
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
776
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
861
777
|
] = None,
|
|
778
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
862
779
|
on_unmount: Optional[
|
|
863
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
780
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
864
781
|
] = None,
|
|
865
782
|
**props,
|
|
866
783
|
) -> "RadialBarChart":
|
|
@@ -895,44 +812,42 @@ class RadialBarChart(ChartBase):
|
|
|
895
812
|
...
|
|
896
813
|
|
|
897
814
|
class ScatterChart(ChartBase):
|
|
898
|
-
def get_event_triggers(self) -> dict[str, Union[
|
|
815
|
+
def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
|
|
899
816
|
@overload
|
|
900
817
|
@classmethod
|
|
901
818
|
def create( # type: ignore
|
|
902
819
|
cls,
|
|
903
820
|
*children,
|
|
904
|
-
margin: Optional[Union[
|
|
905
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
906
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
821
|
+
margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
|
|
822
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
823
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
907
824
|
style: Optional[Style] = None,
|
|
908
825
|
key: Optional[Any] = None,
|
|
909
826
|
id: Optional[Any] = None,
|
|
910
827
|
class_name: Optional[Any] = None,
|
|
911
828
|
autofocus: Optional[bool] = None,
|
|
912
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
913
|
-
on_click: Optional[
|
|
914
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
915
|
-
] = None,
|
|
829
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
830
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
916
831
|
on_mouse_down: Optional[
|
|
917
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
832
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
918
833
|
] = None,
|
|
919
834
|
on_mouse_enter: Optional[
|
|
920
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
835
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
921
836
|
] = None,
|
|
922
837
|
on_mouse_leave: Optional[
|
|
923
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
838
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
924
839
|
] = None,
|
|
925
840
|
on_mouse_move: Optional[
|
|
926
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
841
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
927
842
|
] = None,
|
|
928
843
|
on_mouse_out: Optional[
|
|
929
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
844
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
930
845
|
] = None,
|
|
931
846
|
on_mouse_over: Optional[
|
|
932
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
847
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
933
848
|
] = None,
|
|
934
849
|
on_mouse_up: Optional[
|
|
935
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
850
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
936
851
|
] = None,
|
|
937
852
|
**props,
|
|
938
853
|
) -> "ScatterChart":
|
|
@@ -963,60 +878,50 @@ class FunnelChart(ChartBase):
|
|
|
963
878
|
cls,
|
|
964
879
|
*children,
|
|
965
880
|
layout: Optional[Union[Var[str], str]] = None,
|
|
966
|
-
margin: Optional[Union[
|
|
967
|
-
stroke: Optional[Union[Var[Union[Color, str]], str
|
|
968
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
969
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
881
|
+
margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
|
|
882
|
+
stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
|
|
883
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
884
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
970
885
|
style: Optional[Style] = None,
|
|
971
886
|
key: Optional[Any] = None,
|
|
972
887
|
id: Optional[Any] = None,
|
|
973
888
|
class_name: Optional[Any] = None,
|
|
974
889
|
autofocus: Optional[bool] = None,
|
|
975
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
976
|
-
on_blur: Optional[
|
|
977
|
-
|
|
978
|
-
] = None,
|
|
979
|
-
on_click: Optional[
|
|
980
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
981
|
-
] = None,
|
|
890
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
891
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
892
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
982
893
|
on_context_menu: Optional[
|
|
983
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
894
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
984
895
|
] = None,
|
|
985
896
|
on_double_click: Optional[
|
|
986
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
987
|
-
] = None,
|
|
988
|
-
on_focus: Optional[
|
|
989
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
990
|
-
] = None,
|
|
991
|
-
on_mount: Optional[
|
|
992
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
897
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
993
898
|
] = None,
|
|
899
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
900
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
994
901
|
on_mouse_down: Optional[
|
|
995
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
902
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
996
903
|
] = None,
|
|
997
904
|
on_mouse_enter: Optional[
|
|
998
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
905
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
999
906
|
] = None,
|
|
1000
907
|
on_mouse_leave: Optional[
|
|
1001
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
908
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1002
909
|
] = None,
|
|
1003
910
|
on_mouse_move: Optional[
|
|
1004
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
911
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1005
912
|
] = None,
|
|
1006
913
|
on_mouse_out: Optional[
|
|
1007
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
914
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1008
915
|
] = None,
|
|
1009
916
|
on_mouse_over: Optional[
|
|
1010
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
917
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1011
918
|
] = None,
|
|
1012
919
|
on_mouse_up: Optional[
|
|
1013
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1014
|
-
] = None,
|
|
1015
|
-
on_scroll: Optional[
|
|
1016
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
920
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1017
921
|
] = None,
|
|
922
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
1018
923
|
on_unmount: Optional[
|
|
1019
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
924
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1020
925
|
] = None,
|
|
1021
926
|
**props,
|
|
1022
927
|
) -> "FunnelChart":
|
|
@@ -1048,18 +953,18 @@ class Treemap(RechartsCharts):
|
|
|
1048
953
|
def create( # type: ignore
|
|
1049
954
|
cls,
|
|
1050
955
|
*children,
|
|
1051
|
-
width: Optional[Union[Var[Union[int, str]],
|
|
1052
|
-
height: Optional[Union[Var[Union[int, str]],
|
|
1053
|
-
data: Optional[Union[
|
|
1054
|
-
data_key: Optional[Union[Var[Union[int, str]],
|
|
956
|
+
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
957
|
+
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
958
|
+
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
959
|
+
data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
1055
960
|
aspect_ratio: Optional[Union[Var[int], int]] = None,
|
|
1056
961
|
is_animation_active: Optional[Union[Var[bool], bool]] = None,
|
|
1057
962
|
animation_begin: Optional[Union[Var[int], int]] = None,
|
|
1058
963
|
animation_duration: Optional[Union[Var[int], int]] = None,
|
|
1059
964
|
animation_easing: Optional[
|
|
1060
965
|
Union[
|
|
1061
|
-
|
|
1062
|
-
Literal["ease", "ease-in", "ease-out", "ease-
|
|
966
|
+
Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
|
|
967
|
+
Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
|
|
1063
968
|
]
|
|
1064
969
|
] = None,
|
|
1065
970
|
style: Optional[Style] = None,
|
|
@@ -1067,57 +972,47 @@ class Treemap(RechartsCharts):
|
|
|
1067
972
|
id: Optional[Any] = None,
|
|
1068
973
|
class_name: Optional[Any] = None,
|
|
1069
974
|
autofocus: Optional[bool] = None,
|
|
1070
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
975
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1071
976
|
on_animation_end: Optional[
|
|
1072
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
977
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1073
978
|
] = None,
|
|
1074
979
|
on_animation_start: Optional[
|
|
1075
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1076
|
-
] = None,
|
|
1077
|
-
on_blur: Optional[
|
|
1078
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1079
|
-
] = None,
|
|
1080
|
-
on_click: Optional[
|
|
1081
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
980
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1082
981
|
] = None,
|
|
982
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
983
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
1083
984
|
on_context_menu: Optional[
|
|
1084
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
985
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1085
986
|
] = None,
|
|
1086
987
|
on_double_click: Optional[
|
|
1087
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1088
|
-
] = None,
|
|
1089
|
-
on_focus: Optional[
|
|
1090
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1091
|
-
] = None,
|
|
1092
|
-
on_mount: Optional[
|
|
1093
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
988
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1094
989
|
] = None,
|
|
990
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
991
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
1095
992
|
on_mouse_down: Optional[
|
|
1096
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
993
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1097
994
|
] = None,
|
|
1098
995
|
on_mouse_enter: Optional[
|
|
1099
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
996
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1100
997
|
] = None,
|
|
1101
998
|
on_mouse_leave: Optional[
|
|
1102
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
999
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1103
1000
|
] = None,
|
|
1104
1001
|
on_mouse_move: Optional[
|
|
1105
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1002
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1106
1003
|
] = None,
|
|
1107
1004
|
on_mouse_out: Optional[
|
|
1108
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1005
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1109
1006
|
] = None,
|
|
1110
1007
|
on_mouse_over: Optional[
|
|
1111
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1008
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1112
1009
|
] = None,
|
|
1113
1010
|
on_mouse_up: Optional[
|
|
1114
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1115
|
-
] = None,
|
|
1116
|
-
on_scroll: Optional[
|
|
1117
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1011
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1118
1012
|
] = None,
|
|
1013
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
1119
1014
|
on_unmount: Optional[
|
|
1120
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1015
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1121
1016
|
] = None,
|
|
1122
1017
|
**props,
|
|
1123
1018
|
) -> "Treemap":
|