reflex 0.7.1a3__py3-none-any.whl → 0.7.2a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/jinja/web/utils/context.js.jinja2 +8 -8
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -3
- reflex/admin.py +1 -2
- reflex/app.py +53 -50
- reflex/app_mixins/lifespan.py +2 -2
- reflex/app_mixins/middleware.py +1 -2
- reflex/assets.py +1 -2
- reflex/base.py +2 -2
- reflex/compiler/compiler.py +51 -16
- reflex/compiler/utils.py +4 -13
- reflex/components/base/app_wrap.pyi +7 -7
- reflex/components/base/bare.py +3 -3
- reflex/components/base/body.pyi +7 -7
- reflex/components/base/document.py +1 -3
- reflex/components/base/document.pyi +32 -32
- reflex/components/base/error_boundary.py +2 -4
- reflex/components/base/error_boundary.pyi +11 -13
- reflex/components/base/fragment.pyi +7 -7
- reflex/components/base/head.pyi +13 -13
- reflex/components/base/link.pyi +22 -22
- reflex/components/base/meta.py +5 -7
- reflex/components/base/meta.pyi +40 -40
- reflex/components/base/script.pyi +11 -14
- reflex/components/base/strict_mode.pyi +7 -7
- reflex/components/component.py +188 -113
- reflex/components/core/auto_scroll.py +8 -1
- reflex/components/core/auto_scroll.pyi +183 -210
- reflex/components/core/banner.py +2 -4
- reflex/components/core/banner.pyi +390 -444
- reflex/components/core/breakpoints.py +5 -5
- reflex/components/core/client_side_routing.pyi +14 -14
- reflex/components/core/clipboard.py +4 -4
- reflex/components/core/clipboard.pyi +12 -14
- reflex/components/core/cond.py +17 -25
- reflex/components/core/debounce.py +3 -3
- reflex/components/core/debounce.pyi +14 -14
- reflex/components/core/foreach.py +7 -2
- reflex/components/core/html.py +1 -3
- reflex/components/core/html.pyi +184 -213
- reflex/components/core/match.py +15 -19
- reflex/components/core/sticky.pyi +930 -1078
- reflex/components/core/upload.py +4 -4
- reflex/components/core/upload.pyi +62 -62
- reflex/components/datadisplay/code.py +6 -6
- reflex/components/datadisplay/code.pyi +1159 -1165
- reflex/components/datadisplay/dataeditor.py +49 -49
- reflex/components/datadisplay/dataeditor.pyi +95 -123
- reflex/components/datadisplay/logo.py +1 -3
- reflex/components/datadisplay/shiki_code_block.py +8 -10
- reflex/components/datadisplay/shiki_code_block.pyi +1678 -1720
- reflex/components/el/element.pyi +7 -7
- reflex/components/el/elements/base.pyi +183 -210
- reflex/components/el/elements/forms.py +23 -23
- reflex/components/el/elements/forms.pyi +2571 -2933
- reflex/components/el/elements/inline.py +4 -4
- reflex/components/el/elements/inline.pyi +5191 -5953
- reflex/components/el/elements/media.py +47 -47
- reflex/components/el/elements/media.pyi +4802 -5500
- reflex/components/el/elements/metadata.py +1 -3
- reflex/components/el/elements/metadata.pyi +782 -896
- reflex/components/el/elements/other.pyi +1278 -1467
- reflex/components/el/elements/scripts.pyi +580 -667
- reflex/components/el/elements/sectioning.pyi +2761 -3166
- reflex/components/el/elements/tables.pyi +1840 -2119
- reflex/components/el/elements/typography.pyi +2772 -3179
- reflex/components/gridjs/datatable.py +7 -7
- reflex/components/gridjs/datatable.pyi +19 -19
- reflex/components/lucide/icon.pyi +21 -21
- reflex/components/markdown/markdown.py +2 -2
- reflex/components/markdown/markdown.pyi +9 -9
- reflex/components/moment/moment.py +11 -12
- reflex/components/moment/moment.pyi +44 -47
- reflex/components/next/base.pyi +7 -7
- reflex/components/next/image.py +3 -3
- reflex/components/next/image.pyi +19 -21
- reflex/components/next/link.pyi +9 -9
- reflex/components/next/video.py +1 -3
- reflex/components/next/video.pyi +9 -9
- reflex/components/plotly/plotly.py +22 -45
- reflex/components/plotly/plotly.pyi +164 -164
- reflex/components/radix/primitives/accordion.py +14 -14
- reflex/components/radix/primitives/accordion.pyi +439 -487
- reflex/components/radix/primitives/base.py +1 -3
- reflex/components/radix/primitives/base.pyi +15 -15
- reflex/components/radix/primitives/drawer.py +3 -3
- reflex/components/radix/primitives/drawer.pyi +110 -116
- reflex/components/radix/primitives/form.py +1 -1
- reflex/components/radix/primitives/form.pyi +668 -752
- reflex/components/radix/primitives/progress.py +6 -6
- reflex/components/radix/primitives/progress.pyi +225 -243
- reflex/components/radix/primitives/slider.py +6 -6
- reflex/components/radix/primitives/slider.pyi +52 -55
- reflex/components/radix/themes/base.py +3 -6
- reflex/components/radix/themes/base.pyi +197 -303
- reflex/components/radix/themes/color_mode.py +5 -5
- reflex/components/radix/themes/color_mode.pyi +366 -436
- reflex/components/radix/themes/components/alert_dialog.pyi +229 -262
- reflex/components/radix/themes/components/aspect_ratio.py +1 -3
- reflex/components/radix/themes/components/aspect_ratio.pyi +8 -8
- reflex/components/radix/themes/components/avatar.pyi +79 -94
- reflex/components/radix/themes/components/badge.pyi +252 -295
- reflex/components/radix/themes/components/button.pyi +269 -314
- reflex/components/radix/themes/components/callout.py +2 -2
- reflex/components/radix/themes/components/callout.pyi +1116 -1290
- reflex/components/radix/themes/components/card.pyi +194 -229
- reflex/components/radix/themes/components/checkbox.pyi +243 -278
- reflex/components/radix/themes/components/checkbox_cards.py +3 -7
- reflex/components/radix/themes/components/checkbox_cards.pyi +101 -135
- reflex/components/radix/themes/components/checkbox_group.py +2 -2
- reflex/components/radix/themes/components/checkbox_group.pyi +83 -96
- reflex/components/radix/themes/components/context_menu.py +18 -15
- reflex/components/radix/themes/components/context_menu.pyi +408 -458
- reflex/components/radix/themes/components/data_list.pyi +122 -147
- reflex/components/radix/themes/components/dialog.pyi +231 -264
- reflex/components/radix/themes/components/dropdown_menu.py +16 -13
- reflex/components/radix/themes/components/dropdown_menu.pyi +223 -246
- reflex/components/radix/themes/components/hover_card.py +2 -2
- reflex/components/radix/themes/components/hover_card.pyi +237 -282
- reflex/components/radix/themes/components/icon_button.pyi +269 -314
- reflex/components/radix/themes/components/inset.py +8 -8
- reflex/components/radix/themes/components/inset.pyi +232 -292
- reflex/components/radix/themes/components/popover.py +2 -2
- reflex/components/radix/themes/components/popover.pyi +229 -271
- reflex/components/radix/themes/components/progress.pyi +80 -96
- reflex/components/radix/themes/components/radio.pyi +73 -86
- reflex/components/radix/themes/components/radio_cards.py +4 -8
- reflex/components/radix/themes/components/radio_cards.pyi +117 -154
- reflex/components/radix/themes/components/radio_group.py +3 -3
- reflex/components/radix/themes/components/radio_group.pyi +250 -291
- reflex/components/radix/themes/components/scroll_area.pyi +14 -20
- reflex/components/radix/themes/components/segmented_control.py +6 -6
- reflex/components/radix/themes/components/segmented_control.pyi +89 -108
- reflex/components/radix/themes/components/select.py +7 -7
- reflex/components/radix/themes/components/select.pyi +376 -444
- reflex/components/radix/themes/components/separator.pyi +79 -93
- reflex/components/radix/themes/components/skeleton.pyi +32 -26
- reflex/components/radix/themes/components/slider.py +8 -8
- reflex/components/radix/themes/components/slider.pyi +99 -122
- reflex/components/radix/themes/components/spinner.pyi +12 -19
- reflex/components/radix/themes/components/switch.pyi +84 -99
- reflex/components/radix/themes/components/table.py +9 -9
- reflex/components/radix/themes/components/table.pyi +1440 -1794
- reflex/components/radix/themes/components/tabs.py +4 -4
- reflex/components/radix/themes/components/tabs.pyi +120 -132
- reflex/components/radix/themes/components/text_area.pyi +281 -331
- reflex/components/radix/themes/components/text_field.py +2 -2
- reflex/components/radix/themes/components/text_field.pyi +639 -734
- reflex/components/radix/themes/components/tooltip.py +6 -6
- reflex/components/radix/themes/components/tooltip.pyi +34 -43
- reflex/components/radix/themes/layout/base.pyi +85 -182
- reflex/components/radix/themes/layout/box.pyi +183 -210
- reflex/components/radix/themes/layout/center.pyi +225 -286
- reflex/components/radix/themes/layout/container.pyi +191 -224
- reflex/components/radix/themes/layout/flex.py +2 -2
- reflex/components/radix/themes/layout/flex.pyi +225 -286
- reflex/components/radix/themes/layout/grid.py +2 -2
- reflex/components/radix/themes/layout/grid.pyi +245 -315
- reflex/components/radix/themes/layout/list.py +2 -2
- reflex/components/radix/themes/layout/list.pyi +712 -815
- reflex/components/radix/themes/layout/section.pyi +187 -221
- reflex/components/radix/themes/layout/spacer.pyi +225 -286
- reflex/components/radix/themes/layout/stack.pyi +625 -768
- reflex/components/radix/themes/typography/blockquote.pyi +257 -299
- reflex/components/radix/themes/typography/code.pyi +259 -304
- reflex/components/radix/themes/typography/heading.pyi +272 -324
- reflex/components/radix/themes/typography/link.pyi +302 -358
- reflex/components/radix/themes/typography/text.pyi +1669 -1945
- reflex/components/react_player/audio.pyi +20 -22
- reflex/components/react_player/react_player.pyi +19 -19
- reflex/components/react_player/video.pyi +20 -22
- reflex/components/recharts/cartesian.py +100 -97
- reflex/components/recharts/cartesian.pyi +891 -1007
- reflex/components/recharts/charts.py +42 -42
- reflex/components/recharts/charts.pyi +212 -249
- reflex/components/recharts/general.py +22 -21
- reflex/components/recharts/general.pyi +198 -223
- reflex/components/recharts/polar.py +42 -45
- reflex/components/recharts/polar.pyi +254 -288
- reflex/components/recharts/recharts.pyi +13 -13
- reflex/components/sonner/toast.py +20 -20
- reflex/components/sonner/toast.pyi +58 -61
- reflex/components/suneditor/editor.py +9 -9
- reflex/components/suneditor/editor.pyi +78 -83
- reflex/components/tags/cond_tag.py +2 -2
- reflex/components/tags/iter_tag.py +10 -14
- reflex/components/tags/match_tag.py +2 -2
- reflex/components/tags/tag.py +10 -10
- reflex/config.py +36 -35
- reflex/constants/__init__.py +56 -53
- reflex/custom_components/custom_components.py +6 -7
- reflex/event.py +38 -42
- reflex/experimental/client_state.py +2 -4
- reflex/experimental/layout.py +2 -2
- reflex/experimental/layout.pyi +579 -663
- reflex/istate/data.py +4 -5
- reflex/middleware/hydrate_middleware.py +2 -2
- reflex/middleware/middleware.py +2 -2
- reflex/model.py +3 -5
- reflex/page.py +2 -2
- reflex/reflex.py +9 -10
- reflex/state.py +77 -49
- reflex/style.py +9 -3
- reflex/testing.py +21 -24
- reflex/utils/console.py +1 -1
- reflex/utils/decorator.py +26 -1
- reflex/utils/exec.py +6 -11
- reflex/utils/export.py +2 -3
- reflex/utils/format.py +4 -4
- reflex/utils/imports.py +12 -12
- reflex/utils/prerequisites.py +35 -84
- reflex/utils/processes.py +5 -5
- reflex/utils/pyi_generator.py +33 -22
- reflex/utils/serializers.py +60 -15
- reflex/utils/types.py +237 -56
- reflex/vars/base.py +122 -72
- reflex/vars/datetime.py +2 -2
- reflex/vars/function.py +52 -55
- reflex/vars/number.py +59 -5
- reflex/vars/object.py +57 -26
- reflex/vars/sequence.py +983 -958
- {reflex-0.7.1a3.dist-info → reflex-0.7.2a1.dist-info}/METADATA +3 -6
- reflex-0.7.2a1.dist-info/RECORD +405 -0
- {reflex-0.7.1a3.dist-info → reflex-0.7.2a1.dist-info}/WHEEL +1 -1
- reflex-0.7.1a3.dist-info/RECORD +0 -405
- {reflex-0.7.1a3.dist-info → reflex-0.7.2a1.dist-info}/LICENSE +0 -0
- {reflex-0.7.1a3.dist-info → reflex-0.7.2a1.dist-info}/entry_points.txt +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any,
|
|
6
|
+
from typing import Any, Literal, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.constants.colors import Color
|
|
9
9
|
from reflex.event import EventType
|
|
@@ -18,108 +18,97 @@ class Axis(Recharts):
|
|
|
18
18
|
def create( # type: ignore
|
|
19
19
|
cls,
|
|
20
20
|
*children,
|
|
21
|
-
data_key:
|
|
22
|
-
hide:
|
|
23
|
-
width:
|
|
24
|
-
height:
|
|
25
|
-
type_:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
interval:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"preserveEnd",
|
|
41
|
-
"preserveStart",
|
|
42
|
-
"preserveStartEnd",
|
|
43
|
-
],
|
|
44
|
-
int,
|
|
45
|
-
]
|
|
46
|
-
],
|
|
47
|
-
int,
|
|
21
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
22
|
+
hide: Var[bool] | bool | None = None,
|
|
23
|
+
width: Var[int | str] | int | str | None = None,
|
|
24
|
+
height: Var[int | str] | int | str | None = None,
|
|
25
|
+
type_: Literal["category", "number"]
|
|
26
|
+
| Var[Literal["category", "number"]]
|
|
27
|
+
| None = None,
|
|
28
|
+
interval: Literal[
|
|
29
|
+
"equidistantPreserveStart",
|
|
30
|
+
"preserveEnd",
|
|
31
|
+
"preserveStart",
|
|
32
|
+
"preserveStartEnd",
|
|
33
|
+
]
|
|
34
|
+
| Var[
|
|
35
|
+
Literal[
|
|
36
|
+
"equidistantPreserveStart",
|
|
37
|
+
"preserveEnd",
|
|
38
|
+
"preserveStart",
|
|
39
|
+
"preserveStartEnd",
|
|
48
40
|
]
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
] = None,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
41
|
+
| int
|
|
42
|
+
]
|
|
43
|
+
| int
|
|
44
|
+
| None = None,
|
|
45
|
+
allow_decimals: Var[bool] | bool | None = None,
|
|
46
|
+
allow_data_overflow: Var[bool] | bool | None = None,
|
|
47
|
+
allow_duplicated_category: Var[bool] | bool | None = None,
|
|
48
|
+
domain: Sequence | Var[Sequence] | None = None,
|
|
49
|
+
axis_line: Var[bool] | bool | None = None,
|
|
50
|
+
mirror: Var[bool] | bool | None = None,
|
|
51
|
+
reversed: Var[bool] | bool | None = None,
|
|
52
|
+
label: Var[dict[str, Any] | int | str]
|
|
53
|
+
| dict[str, Any]
|
|
54
|
+
| int
|
|
55
|
+
| str
|
|
56
|
+
| None = None,
|
|
57
|
+
scale: Literal[
|
|
58
|
+
"auto",
|
|
59
|
+
"band",
|
|
60
|
+
"identity",
|
|
61
|
+
"linear",
|
|
62
|
+
"log",
|
|
63
|
+
"ordinal",
|
|
64
|
+
"point",
|
|
65
|
+
"pow",
|
|
66
|
+
"quantile",
|
|
67
|
+
"quantize",
|
|
68
|
+
"sequential",
|
|
69
|
+
"sqrt",
|
|
70
|
+
"threshold",
|
|
71
|
+
"time",
|
|
72
|
+
"utc",
|
|
73
|
+
]
|
|
74
|
+
| Var[
|
|
75
|
+
Literal[
|
|
76
|
+
"auto",
|
|
77
|
+
"band",
|
|
78
|
+
"identity",
|
|
79
|
+
"linear",
|
|
80
|
+
"log",
|
|
81
|
+
"ordinal",
|
|
82
|
+
"point",
|
|
83
|
+
"pow",
|
|
84
|
+
"quantile",
|
|
85
|
+
"quantize",
|
|
86
|
+
"sequential",
|
|
87
|
+
"sqrt",
|
|
88
|
+
"threshold",
|
|
89
|
+
"time",
|
|
90
|
+
"utc",
|
|
98
91
|
]
|
|
99
|
-
]
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
] = None,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
id: Optional[Any] = None,
|
|
120
|
-
class_name: Optional[Any] = None,
|
|
121
|
-
autofocus: Optional[bool] = None,
|
|
122
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
92
|
+
]
|
|
93
|
+
| None = None,
|
|
94
|
+
unit: Var[int | str] | int | str | None = None,
|
|
95
|
+
name: Var[int | str] | int | str | None = None,
|
|
96
|
+
ticks: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
97
|
+
tick: Var[bool] | bool | None = None,
|
|
98
|
+
tick_count: Var[int] | int | None = None,
|
|
99
|
+
tick_line: Var[bool] | bool | None = None,
|
|
100
|
+
tick_size: Var[int] | int | None = None,
|
|
101
|
+
min_tick_gap: Var[int] | int | None = None,
|
|
102
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
103
|
+
text_anchor: Literal["end", "middle", "start"]
|
|
104
|
+
| Var[Literal["end", "middle", "start"]]
|
|
105
|
+
| None = None,
|
|
106
|
+
style: Style | None = None,
|
|
107
|
+
key: Any | None = None,
|
|
108
|
+
id: Any | None = None,
|
|
109
|
+
class_name: Any | None = None,
|
|
110
|
+
autofocus: bool | None = None,
|
|
111
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
123
112
|
on_blur: Optional[EventType[()]] = None,
|
|
124
113
|
on_click: Optional[EventType[()]] = None,
|
|
125
114
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -192,115 +181,104 @@ class XAxis(Axis):
|
|
|
192
181
|
def create( # type: ignore
|
|
193
182
|
cls,
|
|
194
183
|
*children,
|
|
195
|
-
orientation:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
x_axis_id:
|
|
199
|
-
include_hidden:
|
|
200
|
-
angle:
|
|
201
|
-
padding:
|
|
202
|
-
data_key:
|
|
203
|
-
hide:
|
|
204
|
-
width:
|
|
205
|
-
height:
|
|
206
|
-
type_:
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
interval:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
"preserveEnd",
|
|
222
|
-
"preserveStart",
|
|
223
|
-
"preserveStartEnd",
|
|
224
|
-
],
|
|
225
|
-
int,
|
|
226
|
-
]
|
|
227
|
-
],
|
|
228
|
-
int,
|
|
229
|
-
]
|
|
230
|
-
] = None,
|
|
231
|
-
allow_decimals: Optional[Union[Var[bool], bool]] = None,
|
|
232
|
-
allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
|
|
233
|
-
allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
|
|
234
|
-
domain: Optional[Union[List, Var[List]]] = None,
|
|
235
|
-
axis_line: Optional[Union[Var[bool], bool]] = None,
|
|
236
|
-
mirror: Optional[Union[Var[bool], bool]] = None,
|
|
237
|
-
reversed: Optional[Union[Var[bool], bool]] = None,
|
|
238
|
-
label: Optional[
|
|
239
|
-
Union[Dict[str, Any], Var[Union[Dict[str, Any], int, str]], int, str]
|
|
240
|
-
] = None,
|
|
241
|
-
scale: Optional[
|
|
242
|
-
Union[
|
|
243
|
-
Literal[
|
|
244
|
-
"auto",
|
|
245
|
-
"band",
|
|
246
|
-
"identity",
|
|
247
|
-
"linear",
|
|
248
|
-
"log",
|
|
249
|
-
"ordinal",
|
|
250
|
-
"point",
|
|
251
|
-
"pow",
|
|
252
|
-
"quantile",
|
|
253
|
-
"quantize",
|
|
254
|
-
"sequential",
|
|
255
|
-
"sqrt",
|
|
256
|
-
"threshold",
|
|
257
|
-
"time",
|
|
258
|
-
"utc",
|
|
259
|
-
],
|
|
260
|
-
Var[
|
|
261
|
-
Literal[
|
|
262
|
-
"auto",
|
|
263
|
-
"band",
|
|
264
|
-
"identity",
|
|
265
|
-
"linear",
|
|
266
|
-
"log",
|
|
267
|
-
"ordinal",
|
|
268
|
-
"point",
|
|
269
|
-
"pow",
|
|
270
|
-
"quantile",
|
|
271
|
-
"quantize",
|
|
272
|
-
"sequential",
|
|
273
|
-
"sqrt",
|
|
274
|
-
"threshold",
|
|
275
|
-
"time",
|
|
276
|
-
"utc",
|
|
277
|
-
]
|
|
278
|
-
],
|
|
184
|
+
orientation: Literal["bottom", "top"]
|
|
185
|
+
| Var[Literal["bottom", "top"]]
|
|
186
|
+
| None = None,
|
|
187
|
+
x_axis_id: Var[int | str] | int | str | None = None,
|
|
188
|
+
include_hidden: Var[bool] | bool | None = None,
|
|
189
|
+
angle: Var[int] | int | None = None,
|
|
190
|
+
padding: Var[dict[str, int]] | dict[str, int] | None = None,
|
|
191
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
192
|
+
hide: Var[bool] | bool | None = None,
|
|
193
|
+
width: Var[int | str] | int | str | None = None,
|
|
194
|
+
height: Var[int | str] | int | str | None = None,
|
|
195
|
+
type_: Literal["category", "number"]
|
|
196
|
+
| Var[Literal["category", "number"]]
|
|
197
|
+
| None = None,
|
|
198
|
+
interval: Literal[
|
|
199
|
+
"equidistantPreserveStart",
|
|
200
|
+
"preserveEnd",
|
|
201
|
+
"preserveStart",
|
|
202
|
+
"preserveStartEnd",
|
|
203
|
+
]
|
|
204
|
+
| Var[
|
|
205
|
+
Literal[
|
|
206
|
+
"equidistantPreserveStart",
|
|
207
|
+
"preserveEnd",
|
|
208
|
+
"preserveStart",
|
|
209
|
+
"preserveStartEnd",
|
|
279
210
|
]
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
] = None,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
211
|
+
| int
|
|
212
|
+
]
|
|
213
|
+
| int
|
|
214
|
+
| None = None,
|
|
215
|
+
allow_decimals: Var[bool] | bool | None = None,
|
|
216
|
+
allow_data_overflow: Var[bool] | bool | None = None,
|
|
217
|
+
allow_duplicated_category: Var[bool] | bool | None = None,
|
|
218
|
+
domain: Sequence | Var[Sequence] | None = None,
|
|
219
|
+
axis_line: Var[bool] | bool | None = None,
|
|
220
|
+
mirror: Var[bool] | bool | None = None,
|
|
221
|
+
reversed: Var[bool] | bool | None = None,
|
|
222
|
+
label: Var[dict[str, Any] | int | str]
|
|
223
|
+
| dict[str, Any]
|
|
224
|
+
| int
|
|
225
|
+
| str
|
|
226
|
+
| None = None,
|
|
227
|
+
scale: Literal[
|
|
228
|
+
"auto",
|
|
229
|
+
"band",
|
|
230
|
+
"identity",
|
|
231
|
+
"linear",
|
|
232
|
+
"log",
|
|
233
|
+
"ordinal",
|
|
234
|
+
"point",
|
|
235
|
+
"pow",
|
|
236
|
+
"quantile",
|
|
237
|
+
"quantize",
|
|
238
|
+
"sequential",
|
|
239
|
+
"sqrt",
|
|
240
|
+
"threshold",
|
|
241
|
+
"time",
|
|
242
|
+
"utc",
|
|
243
|
+
]
|
|
244
|
+
| Var[
|
|
245
|
+
Literal[
|
|
246
|
+
"auto",
|
|
247
|
+
"band",
|
|
248
|
+
"identity",
|
|
249
|
+
"linear",
|
|
250
|
+
"log",
|
|
251
|
+
"ordinal",
|
|
252
|
+
"point",
|
|
253
|
+
"pow",
|
|
254
|
+
"quantile",
|
|
255
|
+
"quantize",
|
|
256
|
+
"sequential",
|
|
257
|
+
"sqrt",
|
|
258
|
+
"threshold",
|
|
259
|
+
"time",
|
|
260
|
+
"utc",
|
|
296
261
|
]
|
|
297
|
-
]
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
262
|
+
]
|
|
263
|
+
| None = None,
|
|
264
|
+
unit: Var[int | str] | int | str | None = None,
|
|
265
|
+
name: Var[int | str] | int | str | None = None,
|
|
266
|
+
ticks: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
267
|
+
tick: Var[bool] | bool | None = None,
|
|
268
|
+
tick_count: Var[int] | int | None = None,
|
|
269
|
+
tick_line: Var[bool] | bool | None = None,
|
|
270
|
+
tick_size: Var[int] | int | None = None,
|
|
271
|
+
min_tick_gap: Var[int] | int | None = None,
|
|
272
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
273
|
+
text_anchor: Literal["end", "middle", "start"]
|
|
274
|
+
| Var[Literal["end", "middle", "start"]]
|
|
275
|
+
| None = None,
|
|
276
|
+
style: Style | None = None,
|
|
277
|
+
key: Any | None = None,
|
|
278
|
+
id: Any | None = None,
|
|
279
|
+
class_name: Any | None = None,
|
|
280
|
+
autofocus: bool | None = None,
|
|
281
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
304
282
|
on_blur: Optional[EventType[()]] = None,
|
|
305
283
|
on_click: Optional[EventType[()]] = None,
|
|
306
284
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -378,113 +356,102 @@ class YAxis(Axis):
|
|
|
378
356
|
def create( # type: ignore
|
|
379
357
|
cls,
|
|
380
358
|
*children,
|
|
381
|
-
orientation:
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
y_axis_id:
|
|
385
|
-
padding:
|
|
386
|
-
data_key:
|
|
387
|
-
hide:
|
|
388
|
-
width:
|
|
389
|
-
height:
|
|
390
|
-
type_:
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
interval:
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
"preserveEnd",
|
|
406
|
-
"preserveStart",
|
|
407
|
-
"preserveStartEnd",
|
|
408
|
-
],
|
|
409
|
-
int,
|
|
410
|
-
]
|
|
411
|
-
],
|
|
412
|
-
int,
|
|
413
|
-
]
|
|
414
|
-
] = None,
|
|
415
|
-
allow_decimals: Optional[Union[Var[bool], bool]] = None,
|
|
416
|
-
allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
|
|
417
|
-
allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
|
|
418
|
-
domain: Optional[Union[List, Var[List]]] = None,
|
|
419
|
-
axis_line: Optional[Union[Var[bool], bool]] = None,
|
|
420
|
-
mirror: Optional[Union[Var[bool], bool]] = None,
|
|
421
|
-
reversed: Optional[Union[Var[bool], bool]] = None,
|
|
422
|
-
label: Optional[
|
|
423
|
-
Union[Dict[str, Any], Var[Union[Dict[str, Any], int, str]], int, str]
|
|
424
|
-
] = None,
|
|
425
|
-
scale: Optional[
|
|
426
|
-
Union[
|
|
427
|
-
Literal[
|
|
428
|
-
"auto",
|
|
429
|
-
"band",
|
|
430
|
-
"identity",
|
|
431
|
-
"linear",
|
|
432
|
-
"log",
|
|
433
|
-
"ordinal",
|
|
434
|
-
"point",
|
|
435
|
-
"pow",
|
|
436
|
-
"quantile",
|
|
437
|
-
"quantize",
|
|
438
|
-
"sequential",
|
|
439
|
-
"sqrt",
|
|
440
|
-
"threshold",
|
|
441
|
-
"time",
|
|
442
|
-
"utc",
|
|
443
|
-
],
|
|
444
|
-
Var[
|
|
445
|
-
Literal[
|
|
446
|
-
"auto",
|
|
447
|
-
"band",
|
|
448
|
-
"identity",
|
|
449
|
-
"linear",
|
|
450
|
-
"log",
|
|
451
|
-
"ordinal",
|
|
452
|
-
"point",
|
|
453
|
-
"pow",
|
|
454
|
-
"quantile",
|
|
455
|
-
"quantize",
|
|
456
|
-
"sequential",
|
|
457
|
-
"sqrt",
|
|
458
|
-
"threshold",
|
|
459
|
-
"time",
|
|
460
|
-
"utc",
|
|
461
|
-
]
|
|
462
|
-
],
|
|
359
|
+
orientation: Literal["left", "right"]
|
|
360
|
+
| Var[Literal["left", "right"]]
|
|
361
|
+
| None = None,
|
|
362
|
+
y_axis_id: Var[int | str] | int | str | None = None,
|
|
363
|
+
padding: Var[dict[str, int]] | dict[str, int] | None = None,
|
|
364
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
365
|
+
hide: Var[bool] | bool | None = None,
|
|
366
|
+
width: Var[int | str] | int | str | None = None,
|
|
367
|
+
height: Var[int | str] | int | str | None = None,
|
|
368
|
+
type_: Literal["category", "number"]
|
|
369
|
+
| Var[Literal["category", "number"]]
|
|
370
|
+
| None = None,
|
|
371
|
+
interval: Literal[
|
|
372
|
+
"equidistantPreserveStart",
|
|
373
|
+
"preserveEnd",
|
|
374
|
+
"preserveStart",
|
|
375
|
+
"preserveStartEnd",
|
|
376
|
+
]
|
|
377
|
+
| Var[
|
|
378
|
+
Literal[
|
|
379
|
+
"equidistantPreserveStart",
|
|
380
|
+
"preserveEnd",
|
|
381
|
+
"preserveStart",
|
|
382
|
+
"preserveStartEnd",
|
|
463
383
|
]
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
] = None,
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
384
|
+
| int
|
|
385
|
+
]
|
|
386
|
+
| int
|
|
387
|
+
| None = None,
|
|
388
|
+
allow_decimals: Var[bool] | bool | None = None,
|
|
389
|
+
allow_data_overflow: Var[bool] | bool | None = None,
|
|
390
|
+
allow_duplicated_category: Var[bool] | bool | None = None,
|
|
391
|
+
domain: Sequence | Var[Sequence] | None = None,
|
|
392
|
+
axis_line: Var[bool] | bool | None = None,
|
|
393
|
+
mirror: Var[bool] | bool | None = None,
|
|
394
|
+
reversed: Var[bool] | bool | None = None,
|
|
395
|
+
label: Var[dict[str, Any] | int | str]
|
|
396
|
+
| dict[str, Any]
|
|
397
|
+
| int
|
|
398
|
+
| str
|
|
399
|
+
| None = None,
|
|
400
|
+
scale: Literal[
|
|
401
|
+
"auto",
|
|
402
|
+
"band",
|
|
403
|
+
"identity",
|
|
404
|
+
"linear",
|
|
405
|
+
"log",
|
|
406
|
+
"ordinal",
|
|
407
|
+
"point",
|
|
408
|
+
"pow",
|
|
409
|
+
"quantile",
|
|
410
|
+
"quantize",
|
|
411
|
+
"sequential",
|
|
412
|
+
"sqrt",
|
|
413
|
+
"threshold",
|
|
414
|
+
"time",
|
|
415
|
+
"utc",
|
|
416
|
+
]
|
|
417
|
+
| Var[
|
|
418
|
+
Literal[
|
|
419
|
+
"auto",
|
|
420
|
+
"band",
|
|
421
|
+
"identity",
|
|
422
|
+
"linear",
|
|
423
|
+
"log",
|
|
424
|
+
"ordinal",
|
|
425
|
+
"point",
|
|
426
|
+
"pow",
|
|
427
|
+
"quantile",
|
|
428
|
+
"quantize",
|
|
429
|
+
"sequential",
|
|
430
|
+
"sqrt",
|
|
431
|
+
"threshold",
|
|
432
|
+
"time",
|
|
433
|
+
"utc",
|
|
480
434
|
]
|
|
481
|
-
]
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
435
|
+
]
|
|
436
|
+
| None = None,
|
|
437
|
+
unit: Var[int | str] | int | str | None = None,
|
|
438
|
+
name: Var[int | str] | int | str | None = None,
|
|
439
|
+
ticks: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
440
|
+
tick: Var[bool] | bool | None = None,
|
|
441
|
+
tick_count: Var[int] | int | None = None,
|
|
442
|
+
tick_line: Var[bool] | bool | None = None,
|
|
443
|
+
tick_size: Var[int] | int | None = None,
|
|
444
|
+
min_tick_gap: Var[int] | int | None = None,
|
|
445
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
446
|
+
text_anchor: Literal["end", "middle", "start"]
|
|
447
|
+
| Var[Literal["end", "middle", "start"]]
|
|
448
|
+
| None = None,
|
|
449
|
+
style: Style | None = None,
|
|
450
|
+
key: Any | None = None,
|
|
451
|
+
id: Any | None = None,
|
|
452
|
+
class_name: Any | None = None,
|
|
453
|
+
autofocus: bool | None = None,
|
|
454
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
488
455
|
on_blur: Optional[EventType[()]] = None,
|
|
489
456
|
on_click: Optional[EventType[()]] = None,
|
|
490
457
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -560,57 +527,54 @@ class ZAxis(Recharts):
|
|
|
560
527
|
def create( # type: ignore
|
|
561
528
|
cls,
|
|
562
529
|
*children,
|
|
563
|
-
data_key:
|
|
564
|
-
z_axis_id:
|
|
565
|
-
range:
|
|
566
|
-
unit:
|
|
567
|
-
name:
|
|
568
|
-
scale:
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
"time",
|
|
603
|
-
"utc",
|
|
604
|
-
]
|
|
605
|
-
],
|
|
530
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
531
|
+
z_axis_id: Var[int | str] | int | str | None = None,
|
|
532
|
+
range: Sequence[int] | Var[Sequence[int]] | None = None,
|
|
533
|
+
unit: Var[int | str] | int | str | None = None,
|
|
534
|
+
name: Var[int | str] | int | str | None = None,
|
|
535
|
+
scale: Literal[
|
|
536
|
+
"auto",
|
|
537
|
+
"band",
|
|
538
|
+
"identity",
|
|
539
|
+
"linear",
|
|
540
|
+
"log",
|
|
541
|
+
"ordinal",
|
|
542
|
+
"point",
|
|
543
|
+
"pow",
|
|
544
|
+
"quantile",
|
|
545
|
+
"quantize",
|
|
546
|
+
"sequential",
|
|
547
|
+
"sqrt",
|
|
548
|
+
"threshold",
|
|
549
|
+
"time",
|
|
550
|
+
"utc",
|
|
551
|
+
]
|
|
552
|
+
| Var[
|
|
553
|
+
Literal[
|
|
554
|
+
"auto",
|
|
555
|
+
"band",
|
|
556
|
+
"identity",
|
|
557
|
+
"linear",
|
|
558
|
+
"log",
|
|
559
|
+
"ordinal",
|
|
560
|
+
"point",
|
|
561
|
+
"pow",
|
|
562
|
+
"quantile",
|
|
563
|
+
"quantize",
|
|
564
|
+
"sequential",
|
|
565
|
+
"sqrt",
|
|
566
|
+
"threshold",
|
|
567
|
+
"time",
|
|
568
|
+
"utc",
|
|
606
569
|
]
|
|
607
|
-
]
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
570
|
+
]
|
|
571
|
+
| None = None,
|
|
572
|
+
style: Style | None = None,
|
|
573
|
+
key: Any | None = None,
|
|
574
|
+
id: Any | None = None,
|
|
575
|
+
class_name: Any | None = None,
|
|
576
|
+
autofocus: bool | None = None,
|
|
577
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
614
578
|
on_blur: Optional[EventType[()]] = None,
|
|
615
579
|
on_click: Optional[EventType[()]] = None,
|
|
616
580
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -634,7 +598,7 @@ class ZAxis(Recharts):
|
|
|
634
598
|
*children: The children of the component.
|
|
635
599
|
data_key: The key of data displayed in the axis.
|
|
636
600
|
z_axis_id: The unique id of z-axis. Default: 0
|
|
637
|
-
range: The range of axis. Default: [
|
|
601
|
+
range: The range of axis. Default: [60, 400]
|
|
638
602
|
unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
|
|
639
603
|
name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
|
|
640
604
|
scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. Default: "auto"
|
|
@@ -652,30 +616,30 @@ class ZAxis(Recharts):
|
|
|
652
616
|
...
|
|
653
617
|
|
|
654
618
|
class Brush(Recharts):
|
|
655
|
-
def get_event_triggers(self) -> dict[str,
|
|
619
|
+
def get_event_triggers(self) -> dict[str, Var | Any]: ...
|
|
656
620
|
@overload
|
|
657
621
|
@classmethod
|
|
658
622
|
def create( # type: ignore
|
|
659
623
|
cls,
|
|
660
624
|
*children,
|
|
661
|
-
stroke:
|
|
662
|
-
fill:
|
|
663
|
-
data_key:
|
|
664
|
-
x:
|
|
665
|
-
y:
|
|
666
|
-
width:
|
|
667
|
-
height:
|
|
668
|
-
data:
|
|
669
|
-
traveller_width:
|
|
670
|
-
gap:
|
|
671
|
-
start_index:
|
|
672
|
-
end_index:
|
|
673
|
-
style:
|
|
674
|
-
key:
|
|
675
|
-
id:
|
|
676
|
-
class_name:
|
|
677
|
-
autofocus:
|
|
678
|
-
custom_attrs:
|
|
625
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
626
|
+
fill: Color | Var[Color | str] | str | None = None,
|
|
627
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
628
|
+
x: Var[int] | int | None = None,
|
|
629
|
+
y: Var[int] | int | None = None,
|
|
630
|
+
width: Var[int] | int | None = None,
|
|
631
|
+
height: Var[int] | int | None = None,
|
|
632
|
+
data: Sequence[Any] | Var[Sequence[Any]] | None = None,
|
|
633
|
+
traveller_width: Var[int] | int | None = None,
|
|
634
|
+
gap: Var[int] | int | None = None,
|
|
635
|
+
start_index: Var[int] | int | None = None,
|
|
636
|
+
end_index: Var[int] | int | None = None,
|
|
637
|
+
style: Style | None = None,
|
|
638
|
+
key: Any | None = None,
|
|
639
|
+
id: Any | None = None,
|
|
640
|
+
class_name: Any | None = None,
|
|
641
|
+
autofocus: bool | None = None,
|
|
642
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
679
643
|
on_change: Optional[EventType[()]] = None,
|
|
680
644
|
**props,
|
|
681
645
|
) -> "Brush":
|
|
@@ -714,64 +678,57 @@ class Cartesian(Recharts):
|
|
|
714
678
|
def create( # type: ignore
|
|
715
679
|
cls,
|
|
716
680
|
*children,
|
|
717
|
-
layout:
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
] = None,
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
"rect",
|
|
750
|
-
"square",
|
|
751
|
-
"star",
|
|
752
|
-
"triangle",
|
|
753
|
-
"wye",
|
|
754
|
-
]
|
|
755
|
-
],
|
|
756
|
-
]
|
|
757
|
-
] = None,
|
|
758
|
-
is_animation_active: Optional[Union[Var[bool], bool]] = None,
|
|
759
|
-
animation_begin: Optional[Union[Var[int], int]] = None,
|
|
760
|
-
animation_duration: Optional[Union[Var[int], int]] = None,
|
|
761
|
-
animation_easing: Optional[
|
|
762
|
-
Union[
|
|
763
|
-
Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
|
|
764
|
-
Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
|
|
681
|
+
layout: Literal["horizontal", "vertical"]
|
|
682
|
+
| Var[Literal["horizontal", "vertical"]]
|
|
683
|
+
| None = None,
|
|
684
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
685
|
+
x_axis_id: Var[int | str] | int | str | None = None,
|
|
686
|
+
y_axis_id: Var[int | str] | int | str | None = None,
|
|
687
|
+
legend_type: Literal[
|
|
688
|
+
"circle",
|
|
689
|
+
"cross",
|
|
690
|
+
"diamond",
|
|
691
|
+
"line",
|
|
692
|
+
"none",
|
|
693
|
+
"plainline",
|
|
694
|
+
"rect",
|
|
695
|
+
"square",
|
|
696
|
+
"star",
|
|
697
|
+
"triangle",
|
|
698
|
+
"wye",
|
|
699
|
+
]
|
|
700
|
+
| Var[
|
|
701
|
+
Literal[
|
|
702
|
+
"circle",
|
|
703
|
+
"cross",
|
|
704
|
+
"diamond",
|
|
705
|
+
"line",
|
|
706
|
+
"none",
|
|
707
|
+
"plainline",
|
|
708
|
+
"rect",
|
|
709
|
+
"square",
|
|
710
|
+
"star",
|
|
711
|
+
"triangle",
|
|
712
|
+
"wye",
|
|
765
713
|
]
|
|
766
|
-
]
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
714
|
+
]
|
|
715
|
+
| None = None,
|
|
716
|
+
is_animation_active: Var[bool] | bool | None = None,
|
|
717
|
+
animation_begin: Var[int] | int | None = None,
|
|
718
|
+
animation_duration: Var[int] | int | None = None,
|
|
719
|
+
animation_easing: Literal[
|
|
720
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "linear"
|
|
721
|
+
]
|
|
722
|
+
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
723
|
+
| None = None,
|
|
724
|
+
unit: Var[int | str] | int | str | None = None,
|
|
725
|
+
name: Var[int | str] | int | str | None = None,
|
|
726
|
+
style: Style | None = None,
|
|
727
|
+
key: Any | None = None,
|
|
728
|
+
id: Any | None = None,
|
|
729
|
+
class_name: Any | None = None,
|
|
730
|
+
autofocus: bool | None = None,
|
|
731
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
775
732
|
on_animation_end: Optional[EventType[()]] = None,
|
|
776
733
|
on_animation_start: Optional[EventType[()]] = None,
|
|
777
734
|
on_blur: Optional[EventType[()]] = None,
|
|
@@ -835,120 +792,107 @@ class Area(Cartesian):
|
|
|
835
792
|
def create( # type: ignore
|
|
836
793
|
cls,
|
|
837
794
|
*children,
|
|
838
|
-
stroke:
|
|
839
|
-
stroke_width:
|
|
840
|
-
fill:
|
|
841
|
-
type_:
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
"stepAfter",
|
|
876
|
-
"stepBefore",
|
|
877
|
-
]
|
|
878
|
-
],
|
|
795
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
796
|
+
stroke_width: Var[int] | int | None = None,
|
|
797
|
+
fill: Color | Var[Color | str] | str | None = None,
|
|
798
|
+
type_: Literal[
|
|
799
|
+
"basis",
|
|
800
|
+
"basisClosed",
|
|
801
|
+
"basisOpen",
|
|
802
|
+
"bump",
|
|
803
|
+
"bumpX",
|
|
804
|
+
"bumpY",
|
|
805
|
+
"linear",
|
|
806
|
+
"linearClosed",
|
|
807
|
+
"monotone",
|
|
808
|
+
"monotoneX",
|
|
809
|
+
"monotoneY",
|
|
810
|
+
"natural",
|
|
811
|
+
"step",
|
|
812
|
+
"stepAfter",
|
|
813
|
+
"stepBefore",
|
|
814
|
+
]
|
|
815
|
+
| Var[
|
|
816
|
+
Literal[
|
|
817
|
+
"basis",
|
|
818
|
+
"basisClosed",
|
|
819
|
+
"basisOpen",
|
|
820
|
+
"bump",
|
|
821
|
+
"bumpX",
|
|
822
|
+
"bumpY",
|
|
823
|
+
"linear",
|
|
824
|
+
"linearClosed",
|
|
825
|
+
"monotone",
|
|
826
|
+
"monotoneX",
|
|
827
|
+
"monotoneY",
|
|
828
|
+
"natural",
|
|
829
|
+
"step",
|
|
830
|
+
"stepAfter",
|
|
831
|
+
"stepBefore",
|
|
879
832
|
]
|
|
880
|
-
]
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
] = None,
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
]
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
] = None,
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
833
|
+
]
|
|
834
|
+
| None = None,
|
|
835
|
+
dot: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
836
|
+
active_dot: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
837
|
+
label: Var[bool] | bool | None = None,
|
|
838
|
+
base_line: Sequence[dict[str, Any]]
|
|
839
|
+
| Var[Sequence[dict[str, Any]] | str]
|
|
840
|
+
| str
|
|
841
|
+
| None = None,
|
|
842
|
+
points: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
843
|
+
stack_id: Var[int | str] | int | str | None = None,
|
|
844
|
+
connect_nulls: Var[bool] | bool | None = None,
|
|
845
|
+
layout: Literal["horizontal", "vertical"]
|
|
846
|
+
| Var[Literal["horizontal", "vertical"]]
|
|
847
|
+
| None = None,
|
|
848
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
849
|
+
x_axis_id: Var[int | str] | int | str | None = None,
|
|
850
|
+
y_axis_id: Var[int | str] | int | str | None = None,
|
|
851
|
+
legend_type: Literal[
|
|
852
|
+
"circle",
|
|
853
|
+
"cross",
|
|
854
|
+
"diamond",
|
|
855
|
+
"line",
|
|
856
|
+
"none",
|
|
857
|
+
"plainline",
|
|
858
|
+
"rect",
|
|
859
|
+
"square",
|
|
860
|
+
"star",
|
|
861
|
+
"triangle",
|
|
862
|
+
"wye",
|
|
863
|
+
]
|
|
864
|
+
| Var[
|
|
865
|
+
Literal[
|
|
866
|
+
"circle",
|
|
867
|
+
"cross",
|
|
868
|
+
"diamond",
|
|
869
|
+
"line",
|
|
870
|
+
"none",
|
|
871
|
+
"plainline",
|
|
872
|
+
"rect",
|
|
873
|
+
"square",
|
|
874
|
+
"star",
|
|
875
|
+
"triangle",
|
|
876
|
+
"wye",
|
|
898
877
|
]
|
|
899
|
-
]
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
],
|
|
918
|
-
Var[
|
|
919
|
-
Literal[
|
|
920
|
-
"circle",
|
|
921
|
-
"cross",
|
|
922
|
-
"diamond",
|
|
923
|
-
"line",
|
|
924
|
-
"none",
|
|
925
|
-
"plainline",
|
|
926
|
-
"rect",
|
|
927
|
-
"square",
|
|
928
|
-
"star",
|
|
929
|
-
"triangle",
|
|
930
|
-
"wye",
|
|
931
|
-
]
|
|
932
|
-
],
|
|
933
|
-
]
|
|
934
|
-
] = None,
|
|
935
|
-
is_animation_active: Optional[Union[Var[bool], bool]] = None,
|
|
936
|
-
animation_begin: Optional[Union[Var[int], int]] = None,
|
|
937
|
-
animation_duration: Optional[Union[Var[int], int]] = None,
|
|
938
|
-
animation_easing: Optional[
|
|
939
|
-
Union[
|
|
940
|
-
Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
|
|
941
|
-
Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
|
|
942
|
-
]
|
|
943
|
-
] = None,
|
|
944
|
-
unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
945
|
-
name: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
946
|
-
style: Optional[Style] = None,
|
|
947
|
-
key: Optional[Any] = None,
|
|
948
|
-
id: Optional[Any] = None,
|
|
949
|
-
class_name: Optional[Any] = None,
|
|
950
|
-
autofocus: Optional[bool] = None,
|
|
951
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
878
|
+
]
|
|
879
|
+
| None = None,
|
|
880
|
+
is_animation_active: Var[bool] | bool | None = None,
|
|
881
|
+
animation_begin: Var[int] | int | None = None,
|
|
882
|
+
animation_duration: Var[int] | int | None = None,
|
|
883
|
+
animation_easing: Literal[
|
|
884
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "linear"
|
|
885
|
+
]
|
|
886
|
+
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
887
|
+
| None = None,
|
|
888
|
+
unit: Var[int | str] | int | str | None = None,
|
|
889
|
+
name: Var[int | str] | int | str | None = None,
|
|
890
|
+
style: Style | None = None,
|
|
891
|
+
key: Any | None = None,
|
|
892
|
+
id: Any | None = None,
|
|
893
|
+
class_name: Any | None = None,
|
|
894
|
+
autofocus: bool | None = None,
|
|
895
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
952
896
|
on_animation_end: Optional[EventType[()]] = None,
|
|
953
897
|
on_animation_start: Optional[EventType[()]] = None,
|
|
954
898
|
on_blur: Optional[EventType[()]] = None,
|
|
@@ -1023,74 +967,67 @@ class Bar(Cartesian):
|
|
|
1023
967
|
def create( # type: ignore
|
|
1024
968
|
cls,
|
|
1025
969
|
*children,
|
|
1026
|
-
stroke:
|
|
1027
|
-
stroke_width:
|
|
1028
|
-
fill:
|
|
1029
|
-
background:
|
|
1030
|
-
label:
|
|
1031
|
-
stack_id:
|
|
1032
|
-
unit:
|
|
1033
|
-
min_point_size:
|
|
1034
|
-
name:
|
|
1035
|
-
bar_size:
|
|
1036
|
-
max_bar_size:
|
|
1037
|
-
radius:
|
|
1038
|
-
layout:
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
] = None,
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
"rect",
|
|
1071
|
-
"square",
|
|
1072
|
-
"star",
|
|
1073
|
-
"triangle",
|
|
1074
|
-
"wye",
|
|
1075
|
-
]
|
|
1076
|
-
],
|
|
970
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
971
|
+
stroke_width: Var[int] | int | None = None,
|
|
972
|
+
fill: Color | Var[Color | str] | str | None = None,
|
|
973
|
+
background: Var[bool] | bool | None = None,
|
|
974
|
+
label: Var[bool] | bool | None = None,
|
|
975
|
+
stack_id: Var[str] | str | None = None,
|
|
976
|
+
unit: Var[int | str] | int | str | None = None,
|
|
977
|
+
min_point_size: Var[int] | int | None = None,
|
|
978
|
+
name: Var[int | str] | int | str | None = None,
|
|
979
|
+
bar_size: Var[int] | int | None = None,
|
|
980
|
+
max_bar_size: Var[int] | int | None = None,
|
|
981
|
+
radius: Sequence[int] | Var[Sequence[int] | int] | int | None = None,
|
|
982
|
+
layout: Literal["horizontal", "vertical"]
|
|
983
|
+
| Var[Literal["horizontal", "vertical"]]
|
|
984
|
+
| None = None,
|
|
985
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
986
|
+
x_axis_id: Var[int | str] | int | str | None = None,
|
|
987
|
+
y_axis_id: Var[int | str] | int | str | None = None,
|
|
988
|
+
legend_type: Literal[
|
|
989
|
+
"circle",
|
|
990
|
+
"cross",
|
|
991
|
+
"diamond",
|
|
992
|
+
"line",
|
|
993
|
+
"none",
|
|
994
|
+
"plainline",
|
|
995
|
+
"rect",
|
|
996
|
+
"square",
|
|
997
|
+
"star",
|
|
998
|
+
"triangle",
|
|
999
|
+
"wye",
|
|
1000
|
+
]
|
|
1001
|
+
| Var[
|
|
1002
|
+
Literal[
|
|
1003
|
+
"circle",
|
|
1004
|
+
"cross",
|
|
1005
|
+
"diamond",
|
|
1006
|
+
"line",
|
|
1007
|
+
"none",
|
|
1008
|
+
"plainline",
|
|
1009
|
+
"rect",
|
|
1010
|
+
"square",
|
|
1011
|
+
"star",
|
|
1012
|
+
"triangle",
|
|
1013
|
+
"wye",
|
|
1077
1014
|
]
|
|
1078
|
-
]
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
style:
|
|
1089
|
-
key:
|
|
1090
|
-
id:
|
|
1091
|
-
class_name:
|
|
1092
|
-
autofocus:
|
|
1093
|
-
custom_attrs:
|
|
1015
|
+
]
|
|
1016
|
+
| None = None,
|
|
1017
|
+
is_animation_active: Var[bool] | bool | None = None,
|
|
1018
|
+
animation_begin: Var[int] | int | None = None,
|
|
1019
|
+
animation_duration: Var[int] | int | None = None,
|
|
1020
|
+
animation_easing: Literal[
|
|
1021
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "linear"
|
|
1022
|
+
]
|
|
1023
|
+
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
1024
|
+
| None = None,
|
|
1025
|
+
style: Style | None = None,
|
|
1026
|
+
key: Any | None = None,
|
|
1027
|
+
id: Any | None = None,
|
|
1028
|
+
class_name: Any | None = None,
|
|
1029
|
+
autofocus: bool | None = None,
|
|
1030
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1094
1031
|
on_animation_end: Optional[EventType[()]] = None,
|
|
1095
1032
|
on_animation_start: Optional[EventType[()]] = None,
|
|
1096
1033
|
on_blur: Optional[EventType[()]] = None,
|
|
@@ -1164,117 +1101,103 @@ class Line(Cartesian):
|
|
|
1164
1101
|
def create( # type: ignore
|
|
1165
1102
|
cls,
|
|
1166
1103
|
*children,
|
|
1167
|
-
type_:
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
"stepAfter",
|
|
1202
|
-
"stepBefore",
|
|
1203
|
-
]
|
|
1204
|
-
],
|
|
1205
|
-
]
|
|
1206
|
-
] = None,
|
|
1207
|
-
stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
|
|
1208
|
-
stroke_width: Optional[Union[Var[int], int]] = None,
|
|
1209
|
-
dot: Optional[
|
|
1210
|
-
Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
|
|
1211
|
-
] = None,
|
|
1212
|
-
active_dot: Optional[
|
|
1213
|
-
Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
|
|
1214
|
-
] = None,
|
|
1215
|
-
label: Optional[Union[Var[bool], bool]] = None,
|
|
1216
|
-
hide: Optional[Union[Var[bool], bool]] = None,
|
|
1217
|
-
connect_nulls: Optional[Union[Var[bool], bool]] = None,
|
|
1218
|
-
unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
1219
|
-
points: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
1220
|
-
stroke_dasharray: Optional[Union[Var[str], str]] = None,
|
|
1221
|
-
layout: Optional[
|
|
1222
|
-
Union[
|
|
1223
|
-
Literal["horizontal", "vertical"],
|
|
1224
|
-
Var[Literal["horizontal", "vertical"]],
|
|
1104
|
+
type_: Literal[
|
|
1105
|
+
"basis",
|
|
1106
|
+
"basisClosed",
|
|
1107
|
+
"basisOpen",
|
|
1108
|
+
"bump",
|
|
1109
|
+
"bumpX",
|
|
1110
|
+
"bumpY",
|
|
1111
|
+
"linear",
|
|
1112
|
+
"linearClosed",
|
|
1113
|
+
"monotone",
|
|
1114
|
+
"monotoneX",
|
|
1115
|
+
"monotoneY",
|
|
1116
|
+
"natural",
|
|
1117
|
+
"step",
|
|
1118
|
+
"stepAfter",
|
|
1119
|
+
"stepBefore",
|
|
1120
|
+
]
|
|
1121
|
+
| Var[
|
|
1122
|
+
Literal[
|
|
1123
|
+
"basis",
|
|
1124
|
+
"basisClosed",
|
|
1125
|
+
"basisOpen",
|
|
1126
|
+
"bump",
|
|
1127
|
+
"bumpX",
|
|
1128
|
+
"bumpY",
|
|
1129
|
+
"linear",
|
|
1130
|
+
"linearClosed",
|
|
1131
|
+
"monotone",
|
|
1132
|
+
"monotoneX",
|
|
1133
|
+
"monotoneY",
|
|
1134
|
+
"natural",
|
|
1135
|
+
"step",
|
|
1136
|
+
"stepAfter",
|
|
1137
|
+
"stepBefore",
|
|
1225
1138
|
]
|
|
1226
|
-
]
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1139
|
+
]
|
|
1140
|
+
| None = None,
|
|
1141
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
1142
|
+
stroke_width: Var[int] | int | None = None,
|
|
1143
|
+
dot: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
1144
|
+
active_dot: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
1145
|
+
label: Var[bool] | bool | None = None,
|
|
1146
|
+
hide: Var[bool] | bool | None = None,
|
|
1147
|
+
connect_nulls: Var[bool] | bool | None = None,
|
|
1148
|
+
unit: Var[int | str] | int | str | None = None,
|
|
1149
|
+
points: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
1150
|
+
stroke_dasharray: Var[str] | str | None = None,
|
|
1151
|
+
layout: Literal["horizontal", "vertical"]
|
|
1152
|
+
| Var[Literal["horizontal", "vertical"]]
|
|
1153
|
+
| None = None,
|
|
1154
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
1155
|
+
x_axis_id: Var[int | str] | int | str | None = None,
|
|
1156
|
+
y_axis_id: Var[int | str] | int | str | None = None,
|
|
1157
|
+
legend_type: Literal[
|
|
1158
|
+
"circle",
|
|
1159
|
+
"cross",
|
|
1160
|
+
"diamond",
|
|
1161
|
+
"line",
|
|
1162
|
+
"none",
|
|
1163
|
+
"plainline",
|
|
1164
|
+
"rect",
|
|
1165
|
+
"square",
|
|
1166
|
+
"star",
|
|
1167
|
+
"triangle",
|
|
1168
|
+
"wye",
|
|
1169
|
+
]
|
|
1170
|
+
| Var[
|
|
1171
|
+
Literal[
|
|
1172
|
+
"circle",
|
|
1173
|
+
"cross",
|
|
1174
|
+
"diamond",
|
|
1175
|
+
"line",
|
|
1176
|
+
"none",
|
|
1177
|
+
"plainline",
|
|
1178
|
+
"rect",
|
|
1179
|
+
"square",
|
|
1180
|
+
"star",
|
|
1181
|
+
"triangle",
|
|
1182
|
+
"wye",
|
|
1260
1183
|
]
|
|
1261
|
-
]
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
name:
|
|
1272
|
-
style:
|
|
1273
|
-
key:
|
|
1274
|
-
id:
|
|
1275
|
-
class_name:
|
|
1276
|
-
autofocus:
|
|
1277
|
-
custom_attrs:
|
|
1184
|
+
]
|
|
1185
|
+
| None = None,
|
|
1186
|
+
is_animation_active: Var[bool] | bool | None = None,
|
|
1187
|
+
animation_begin: Var[int] | int | None = None,
|
|
1188
|
+
animation_duration: Var[int] | int | None = None,
|
|
1189
|
+
animation_easing: Literal[
|
|
1190
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "linear"
|
|
1191
|
+
]
|
|
1192
|
+
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
1193
|
+
| None = None,
|
|
1194
|
+
name: Var[int | str] | int | str | None = None,
|
|
1195
|
+
style: Style | None = None,
|
|
1196
|
+
key: Any | None = None,
|
|
1197
|
+
id: Any | None = None,
|
|
1198
|
+
class_name: Any | None = None,
|
|
1199
|
+
autofocus: bool | None = None,
|
|
1200
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1278
1201
|
on_animation_end: Optional[EventType[()]] = None,
|
|
1279
1202
|
on_animation_start: Optional[EventType[()]] = None,
|
|
1280
1203
|
on_blur: Optional[EventType[()]] = None,
|
|
@@ -1348,80 +1271,66 @@ class Scatter(Recharts):
|
|
|
1348
1271
|
def create( # type: ignore
|
|
1349
1272
|
cls,
|
|
1350
1273
|
*children,
|
|
1351
|
-
data:
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
"wye",
|
|
1380
|
-
]
|
|
1381
|
-
],
|
|
1382
|
-
]
|
|
1383
|
-
] = None,
|
|
1384
|
-
x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
1385
|
-
y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
1386
|
-
z_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
1387
|
-
line: Optional[Union[Var[bool], bool]] = None,
|
|
1388
|
-
shape: Optional[
|
|
1389
|
-
Union[
|
|
1390
|
-
Literal[
|
|
1391
|
-
"circle", "cross", "diamond", "square", "star", "triangle", "wye"
|
|
1392
|
-
],
|
|
1393
|
-
Var[
|
|
1394
|
-
Literal[
|
|
1395
|
-
"circle",
|
|
1396
|
-
"cross",
|
|
1397
|
-
"diamond",
|
|
1398
|
-
"square",
|
|
1399
|
-
"star",
|
|
1400
|
-
"triangle",
|
|
1401
|
-
"wye",
|
|
1402
|
-
]
|
|
1403
|
-
],
|
|
1404
|
-
]
|
|
1405
|
-
] = None,
|
|
1406
|
-
line_type: Optional[
|
|
1407
|
-
Union[Literal["fitting", "joint"], Var[Literal["fitting", "joint"]]]
|
|
1408
|
-
] = None,
|
|
1409
|
-
fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
|
|
1410
|
-
is_animation_active: Optional[Union[Var[bool], bool]] = None,
|
|
1411
|
-
animation_begin: Optional[Union[Var[int], int]] = None,
|
|
1412
|
-
animation_duration: Optional[Union[Var[int], int]] = None,
|
|
1413
|
-
animation_easing: Optional[
|
|
1414
|
-
Union[
|
|
1415
|
-
Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
|
|
1416
|
-
Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
|
|
1274
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
1275
|
+
name: Var[str] | str | None = None,
|
|
1276
|
+
legend_type: Literal[
|
|
1277
|
+
"circle",
|
|
1278
|
+
"cross",
|
|
1279
|
+
"diamond",
|
|
1280
|
+
"line",
|
|
1281
|
+
"none",
|
|
1282
|
+
"plainline",
|
|
1283
|
+
"rect",
|
|
1284
|
+
"square",
|
|
1285
|
+
"star",
|
|
1286
|
+
"triangle",
|
|
1287
|
+
"wye",
|
|
1288
|
+
]
|
|
1289
|
+
| Var[
|
|
1290
|
+
Literal[
|
|
1291
|
+
"circle",
|
|
1292
|
+
"cross",
|
|
1293
|
+
"diamond",
|
|
1294
|
+
"line",
|
|
1295
|
+
"none",
|
|
1296
|
+
"plainline",
|
|
1297
|
+
"rect",
|
|
1298
|
+
"square",
|
|
1299
|
+
"star",
|
|
1300
|
+
"triangle",
|
|
1301
|
+
"wye",
|
|
1417
1302
|
]
|
|
1418
|
-
]
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1303
|
+
]
|
|
1304
|
+
| None = None,
|
|
1305
|
+
x_axis_id: Var[int | str] | int | str | None = None,
|
|
1306
|
+
y_axis_id: Var[int | str] | int | str | None = None,
|
|
1307
|
+
z_axis_id: Var[int | str] | int | str | None = None,
|
|
1308
|
+
line: Var[bool] | bool | None = None,
|
|
1309
|
+
shape: Literal[
|
|
1310
|
+
"circle", "cross", "diamond", "square", "star", "triangle", "wye"
|
|
1311
|
+
]
|
|
1312
|
+
| Var[
|
|
1313
|
+
Literal["circle", "cross", "diamond", "square", "star", "triangle", "wye"]
|
|
1314
|
+
]
|
|
1315
|
+
| None = None,
|
|
1316
|
+
line_type: Literal["fitting", "joint"]
|
|
1317
|
+
| Var[Literal["fitting", "joint"]]
|
|
1318
|
+
| None = None,
|
|
1319
|
+
fill: Color | Var[Color | str] | str | None = None,
|
|
1320
|
+
is_animation_active: Var[bool] | bool | None = None,
|
|
1321
|
+
animation_begin: Var[int] | int | None = None,
|
|
1322
|
+
animation_duration: Var[int] | int | None = None,
|
|
1323
|
+
animation_easing: Literal[
|
|
1324
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "linear"
|
|
1325
|
+
]
|
|
1326
|
+
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
1327
|
+
| None = None,
|
|
1328
|
+
style: Style | None = None,
|
|
1329
|
+
key: Any | None = None,
|
|
1330
|
+
id: Any | None = None,
|
|
1331
|
+
class_name: Any | None = None,
|
|
1332
|
+
autofocus: bool | None = None,
|
|
1333
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1425
1334
|
on_blur: Optional[EventType[()]] = None,
|
|
1426
1335
|
on_click: Optional[EventType[()]] = None,
|
|
1427
1336
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -1444,6 +1353,7 @@ class Scatter(Recharts):
|
|
|
1444
1353
|
Args:
|
|
1445
1354
|
*children: The children of the component.
|
|
1446
1355
|
data: The source data, in which each element is an object.
|
|
1356
|
+
name: The name of the data. It is used to represent the scatter in legend.
|
|
1447
1357
|
legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' | 'none'. Default: "circle"
|
|
1448
1358
|
x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
|
|
1449
1359
|
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
|
|
@@ -1483,60 +1393,56 @@ class Funnel(Recharts):
|
|
|
1483
1393
|
def create( # type: ignore
|
|
1484
1394
|
cls,
|
|
1485
1395
|
*children,
|
|
1486
|
-
data:
|
|
1487
|
-
data_key:
|
|
1488
|
-
name_key:
|
|
1489
|
-
legend_type:
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
"triangle",
|
|
1516
|
-
"wye",
|
|
1517
|
-
]
|
|
1518
|
-
],
|
|
1396
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
1397
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
1398
|
+
name_key: Var[str] | str | None = None,
|
|
1399
|
+
legend_type: Literal[
|
|
1400
|
+
"circle",
|
|
1401
|
+
"cross",
|
|
1402
|
+
"diamond",
|
|
1403
|
+
"line",
|
|
1404
|
+
"none",
|
|
1405
|
+
"plainline",
|
|
1406
|
+
"rect",
|
|
1407
|
+
"square",
|
|
1408
|
+
"star",
|
|
1409
|
+
"triangle",
|
|
1410
|
+
"wye",
|
|
1411
|
+
]
|
|
1412
|
+
| Var[
|
|
1413
|
+
Literal[
|
|
1414
|
+
"circle",
|
|
1415
|
+
"cross",
|
|
1416
|
+
"diamond",
|
|
1417
|
+
"line",
|
|
1418
|
+
"none",
|
|
1419
|
+
"plainline",
|
|
1420
|
+
"rect",
|
|
1421
|
+
"square",
|
|
1422
|
+
"star",
|
|
1423
|
+
"triangle",
|
|
1424
|
+
"wye",
|
|
1519
1425
|
]
|
|
1520
|
-
]
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
stroke:
|
|
1531
|
-
trapezoids:
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
style:
|
|
1535
|
-
key:
|
|
1536
|
-
id:
|
|
1537
|
-
class_name:
|
|
1538
|
-
autofocus:
|
|
1539
|
-
custom_attrs:
|
|
1426
|
+
]
|
|
1427
|
+
| None = None,
|
|
1428
|
+
is_animation_active: Var[bool] | bool | None = None,
|
|
1429
|
+
animation_begin: Var[int] | int | None = None,
|
|
1430
|
+
animation_duration: Var[int] | int | None = None,
|
|
1431
|
+
animation_easing: Literal[
|
|
1432
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "linear"
|
|
1433
|
+
]
|
|
1434
|
+
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
1435
|
+
| None = None,
|
|
1436
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
1437
|
+
trapezoids: Sequence[dict[str, Any]]
|
|
1438
|
+
| Var[Sequence[dict[str, Any]]]
|
|
1439
|
+
| None = None,
|
|
1440
|
+
style: Style | None = None,
|
|
1441
|
+
key: Any | None = None,
|
|
1442
|
+
id: Any | None = None,
|
|
1443
|
+
class_name: Any | None = None,
|
|
1444
|
+
autofocus: bool | None = None,
|
|
1445
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1540
1446
|
on_animation_end: Optional[EventType[()]] = None,
|
|
1541
1447
|
on_animation_start: Optional[EventType[()]] = None,
|
|
1542
1448
|
on_blur: Optional[EventType[()]] = None,
|
|
@@ -1599,17 +1505,17 @@ class ErrorBar(Recharts):
|
|
|
1599
1505
|
def create( # type: ignore
|
|
1600
1506
|
cls,
|
|
1601
1507
|
*children,
|
|
1602
|
-
direction:
|
|
1603
|
-
data_key:
|
|
1604
|
-
width:
|
|
1605
|
-
stroke:
|
|
1606
|
-
stroke_width:
|
|
1607
|
-
style:
|
|
1608
|
-
key:
|
|
1609
|
-
id:
|
|
1610
|
-
class_name:
|
|
1611
|
-
autofocus:
|
|
1612
|
-
custom_attrs:
|
|
1508
|
+
direction: Literal["x", "y"] | Var[Literal["x", "y"]] | None = None,
|
|
1509
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
1510
|
+
width: Var[int] | int | None = None,
|
|
1511
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
1512
|
+
stroke_width: Var[float | int] | float | int | None = None,
|
|
1513
|
+
style: Style | None = None,
|
|
1514
|
+
key: Any | None = None,
|
|
1515
|
+
id: Any | None = None,
|
|
1516
|
+
class_name: Any | None = None,
|
|
1517
|
+
autofocus: bool | None = None,
|
|
1518
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1613
1519
|
on_blur: Optional[EventType[()]] = None,
|
|
1614
1520
|
on_click: Optional[EventType[()]] = None,
|
|
1615
1521
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -1655,22 +1561,19 @@ class Reference(Recharts):
|
|
|
1655
1561
|
def create( # type: ignore
|
|
1656
1562
|
cls,
|
|
1657
1563
|
*children,
|
|
1658
|
-
x_axis_id:
|
|
1659
|
-
y_axis_id:
|
|
1660
|
-
if_overflow:
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
class_name: Optional[Any] = None,
|
|
1672
|
-
autofocus: Optional[bool] = None,
|
|
1673
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1564
|
+
x_axis_id: Var[int | str] | int | str | None = None,
|
|
1565
|
+
y_axis_id: Var[int | str] | int | str | None = None,
|
|
1566
|
+
if_overflow: Literal["discard", "extendDomain", "hidden", "visible"]
|
|
1567
|
+
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1568
|
+
| None = None,
|
|
1569
|
+
label: Var[int | str] | int | str | None = None,
|
|
1570
|
+
is_front: Var[bool] | bool | None = None,
|
|
1571
|
+
style: Style | None = None,
|
|
1572
|
+
key: Any | None = None,
|
|
1573
|
+
id: Any | None = None,
|
|
1574
|
+
class_name: Any | None = None,
|
|
1575
|
+
autofocus: bool | None = None,
|
|
1576
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1674
1577
|
on_blur: Optional[EventType[()]] = None,
|
|
1675
1578
|
on_click: Optional[EventType[()]] = None,
|
|
1676
1579
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -1716,27 +1619,24 @@ class ReferenceLine(Reference):
|
|
|
1716
1619
|
def create( # type: ignore
|
|
1717
1620
|
cls,
|
|
1718
1621
|
*children,
|
|
1719
|
-
x:
|
|
1720
|
-
y:
|
|
1721
|
-
stroke:
|
|
1722
|
-
stroke_width:
|
|
1723
|
-
segment:
|
|
1724
|
-
x_axis_id:
|
|
1725
|
-
y_axis_id:
|
|
1726
|
-
if_overflow:
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
class_name: Optional[Any] = None,
|
|
1738
|
-
autofocus: Optional[bool] = None,
|
|
1739
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1622
|
+
x: Var[int | str] | int | str | None = None,
|
|
1623
|
+
y: Var[int | str] | int | str | None = None,
|
|
1624
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
1625
|
+
stroke_width: Var[int | str] | int | str | None = None,
|
|
1626
|
+
segment: Sequence[Any] | None = None,
|
|
1627
|
+
x_axis_id: Var[int | str] | int | str | None = None,
|
|
1628
|
+
y_axis_id: Var[int | str] | int | str | None = None,
|
|
1629
|
+
if_overflow: Literal["discard", "extendDomain", "hidden", "visible"]
|
|
1630
|
+
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1631
|
+
| None = None,
|
|
1632
|
+
label: Var[int | str] | int | str | None = None,
|
|
1633
|
+
is_front: Var[bool] | bool | None = None,
|
|
1634
|
+
style: Style | None = None,
|
|
1635
|
+
key: Any | None = None,
|
|
1636
|
+
id: Any | None = None,
|
|
1637
|
+
class_name: Any | None = None,
|
|
1638
|
+
autofocus: bool | None = None,
|
|
1639
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1740
1640
|
on_blur: Optional[EventType[()]] = None,
|
|
1741
1641
|
on_click: Optional[EventType[()]] = None,
|
|
1742
1642
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -1787,27 +1687,24 @@ class ReferenceDot(Reference):
|
|
|
1787
1687
|
def create( # type: ignore
|
|
1788
1688
|
cls,
|
|
1789
1689
|
*children,
|
|
1790
|
-
x:
|
|
1791
|
-
y:
|
|
1792
|
-
r:
|
|
1793
|
-
fill:
|
|
1794
|
-
stroke:
|
|
1795
|
-
x_axis_id:
|
|
1796
|
-
y_axis_id:
|
|
1797
|
-
if_overflow:
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
class_name: Optional[Any] = None,
|
|
1809
|
-
autofocus: Optional[bool] = None,
|
|
1810
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1690
|
+
x: Var[int | str] | int | str | None = None,
|
|
1691
|
+
y: Var[int | str] | int | str | None = None,
|
|
1692
|
+
r: Var[int] | int | None = None,
|
|
1693
|
+
fill: Color | Var[Color | str] | str | None = None,
|
|
1694
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
1695
|
+
x_axis_id: Var[int | str] | int | str | None = None,
|
|
1696
|
+
y_axis_id: Var[int | str] | int | str | None = None,
|
|
1697
|
+
if_overflow: Literal["discard", "extendDomain", "hidden", "visible"]
|
|
1698
|
+
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1699
|
+
| None = None,
|
|
1700
|
+
label: Var[int | str] | int | str | None = None,
|
|
1701
|
+
is_front: Var[bool] | bool | None = None,
|
|
1702
|
+
style: Style | None = None,
|
|
1703
|
+
key: Any | None = None,
|
|
1704
|
+
id: Any | None = None,
|
|
1705
|
+
class_name: Any | None = None,
|
|
1706
|
+
autofocus: bool | None = None,
|
|
1707
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1811
1708
|
on_blur: Optional[EventType[()]] = None,
|
|
1812
1709
|
on_click: Optional[EventType[()]] = None,
|
|
1813
1710
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -1866,28 +1763,25 @@ class ReferenceArea(Recharts):
|
|
|
1866
1763
|
def create( # type: ignore
|
|
1867
1764
|
cls,
|
|
1868
1765
|
*children,
|
|
1869
|
-
stroke:
|
|
1870
|
-
fill:
|
|
1871
|
-
fill_opacity:
|
|
1872
|
-
x_axis_id:
|
|
1873
|
-
y_axis_id:
|
|
1874
|
-
x1:
|
|
1875
|
-
x2:
|
|
1876
|
-
y1:
|
|
1877
|
-
y2:
|
|
1878
|
-
if_overflow:
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
class_name: Optional[Any] = None,
|
|
1889
|
-
autofocus: Optional[bool] = None,
|
|
1890
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1766
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
1767
|
+
fill: Color | Var[Color | str] | str | None = None,
|
|
1768
|
+
fill_opacity: Var[float] | float | None = None,
|
|
1769
|
+
x_axis_id: Var[int | str] | int | str | None = None,
|
|
1770
|
+
y_axis_id: Var[int | str] | int | str | None = None,
|
|
1771
|
+
x1: Var[int | str] | int | str | None = None,
|
|
1772
|
+
x2: Var[int | str] | int | str | None = None,
|
|
1773
|
+
y1: Var[int | str] | int | str | None = None,
|
|
1774
|
+
y2: Var[int | str] | int | str | None = None,
|
|
1775
|
+
if_overflow: Literal["discard", "extendDomain", "hidden", "visible"]
|
|
1776
|
+
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1777
|
+
| None = None,
|
|
1778
|
+
is_front: Var[bool] | bool | None = None,
|
|
1779
|
+
style: Style | None = None,
|
|
1780
|
+
key: Any | None = None,
|
|
1781
|
+
id: Any | None = None,
|
|
1782
|
+
class_name: Any | None = None,
|
|
1783
|
+
autofocus: bool | None = None,
|
|
1784
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1891
1785
|
on_blur: Optional[EventType[()]] = None,
|
|
1892
1786
|
on_click: Optional[EventType[()]] = None,
|
|
1893
1787
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -1939,16 +1833,16 @@ class Grid(Recharts):
|
|
|
1939
1833
|
def create( # type: ignore
|
|
1940
1834
|
cls,
|
|
1941
1835
|
*children,
|
|
1942
|
-
x:
|
|
1943
|
-
y:
|
|
1944
|
-
width:
|
|
1945
|
-
height:
|
|
1946
|
-
style:
|
|
1947
|
-
key:
|
|
1948
|
-
id:
|
|
1949
|
-
class_name:
|
|
1950
|
-
autofocus:
|
|
1951
|
-
custom_attrs:
|
|
1836
|
+
x: Var[int] | int | None = None,
|
|
1837
|
+
y: Var[int] | int | None = None,
|
|
1838
|
+
width: Var[int] | int | None = None,
|
|
1839
|
+
height: Var[int] | int | None = None,
|
|
1840
|
+
style: Style | None = None,
|
|
1841
|
+
key: Any | None = None,
|
|
1842
|
+
id: Any | None = None,
|
|
1843
|
+
class_name: Any | None = None,
|
|
1844
|
+
autofocus: bool | None = None,
|
|
1845
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1952
1846
|
on_blur: Optional[EventType[()]] = None,
|
|
1953
1847
|
on_click: Optional[EventType[()]] = None,
|
|
1954
1848
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -1993,28 +1887,24 @@ class CartesianGrid(Grid):
|
|
|
1993
1887
|
def create( # type: ignore
|
|
1994
1888
|
cls,
|
|
1995
1889
|
*children,
|
|
1996
|
-
horizontal:
|
|
1997
|
-
vertical:
|
|
1998
|
-
vertical_points:
|
|
1999
|
-
|
|
2000
|
-
] = None,
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
] = None,
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
id: Optional[Any] = None,
|
|
2015
|
-
class_name: Optional[Any] = None,
|
|
2016
|
-
autofocus: Optional[bool] = None,
|
|
2017
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1890
|
+
horizontal: Var[bool] | bool | None = None,
|
|
1891
|
+
vertical: Var[bool] | bool | None = None,
|
|
1892
|
+
vertical_points: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
1893
|
+
horizontal_points: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
1894
|
+
fill: Color | Var[Color | str] | str | None = None,
|
|
1895
|
+
fill_opacity: Var[float] | float | None = None,
|
|
1896
|
+
stroke_dasharray: Var[str] | str | None = None,
|
|
1897
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
1898
|
+
x: Var[int] | int | None = None,
|
|
1899
|
+
y: Var[int] | int | None = None,
|
|
1900
|
+
width: Var[int] | int | None = None,
|
|
1901
|
+
height: Var[int] | int | None = None,
|
|
1902
|
+
style: Style | None = None,
|
|
1903
|
+
key: Any | None = None,
|
|
1904
|
+
id: Any | None = None,
|
|
1905
|
+
class_name: Any | None = None,
|
|
1906
|
+
autofocus: bool | None = None,
|
|
1907
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
2018
1908
|
on_blur: Optional[EventType[()]] = None,
|
|
2019
1909
|
on_click: Optional[EventType[()]] = None,
|
|
2020
1910
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -2067,36 +1957,30 @@ class CartesianAxis(Grid):
|
|
|
2067
1957
|
def create( # type: ignore
|
|
2068
1958
|
cls,
|
|
2069
1959
|
*children,
|
|
2070
|
-
orientation:
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
] = None,
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
] = None,
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
style: Optional[Style] = None,
|
|
2095
|
-
key: Optional[Any] = None,
|
|
2096
|
-
id: Optional[Any] = None,
|
|
2097
|
-
class_name: Optional[Any] = None,
|
|
2098
|
-
autofocus: Optional[bool] = None,
|
|
2099
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1960
|
+
orientation: Literal["bottom", "left", "right", "top"]
|
|
1961
|
+
| Var[Literal["bottom", "left", "right", "top"]]
|
|
1962
|
+
| None = None,
|
|
1963
|
+
view_box: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
1964
|
+
axis_line: Var[bool] | bool | None = None,
|
|
1965
|
+
tick: Var[bool] | bool | None = None,
|
|
1966
|
+
tick_line: Var[bool] | bool | None = None,
|
|
1967
|
+
tick_size: Var[int] | int | None = None,
|
|
1968
|
+
interval: Literal["preserveEnd", "preserveStart", "preserveStartEnd"]
|
|
1969
|
+
| Var[Literal["preserveEnd", "preserveStart", "preserveStartEnd"]]
|
|
1970
|
+
| None = None,
|
|
1971
|
+
label: Var[int | str] | int | str | None = None,
|
|
1972
|
+
mirror: Var[bool] | bool | None = None,
|
|
1973
|
+
tick_margin: Var[int] | int | None = None,
|
|
1974
|
+
x: Var[int] | int | None = None,
|
|
1975
|
+
y: Var[int] | int | None = None,
|
|
1976
|
+
width: Var[int] | int | None = None,
|
|
1977
|
+
height: Var[int] | int | None = None,
|
|
1978
|
+
style: Style | None = None,
|
|
1979
|
+
key: Any | None = None,
|
|
1980
|
+
id: Any | None = None,
|
|
1981
|
+
class_name: Any | None = None,
|
|
1982
|
+
autofocus: bool | None = None,
|
|
1983
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
2100
1984
|
on_blur: Optional[EventType[()]] = None,
|
|
2101
1985
|
on_click: Optional[EventType[()]] = None,
|
|
2102
1986
|
on_context_menu: Optional[EventType[()]] = None,
|