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