reflex 0.5.4a3__py3-none-any.whl → 0.5.5a1__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/apps/demo/code/demo.py +1 -0
- reflex/.templates/apps/demo/code/pages/__init__.py +1 -0
- reflex/.templates/apps/demo/code/pages/datatable.py +1 -0
- reflex/.templates/apps/demo/code/pages/forms.py +1 -0
- reflex/.templates/apps/demo/code/pages/graphing.py +1 -0
- reflex/.templates/apps/demo/code/pages/home.py +1 -0
- reflex/.templates/apps/demo/code/styles.py +1 -0
- reflex/.templates/apps/demo/code/webui/components/loading_icon.py +1 -8
- reflex/.templates/web/components/reflex/chakra_color_mode_provider.js +27 -12
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +19 -5
- reflex/.templates/web/utils/state.js +73 -7
- reflex/__init__.py +3 -0
- reflex/__init__.pyi +3 -0
- reflex/admin.py +1 -0
- reflex/app.py +8 -6
- reflex/app_module_for_backend.py +2 -1
- reflex/base.py +4 -4
- reflex/compiler/compiler.py +4 -3
- reflex/compiler/templates.py +2 -0
- reflex/compiler/utils.py +58 -35
- reflex/components/__init__.py +1 -0
- reflex/components/base/__init__.py +1 -0
- reflex/components/base/app_wrap.py +1 -0
- reflex/components/base/fragment.py +1 -0
- reflex/components/base/link.py +0 -1
- reflex/components/base/script.py +11 -15
- reflex/components/base/script.pyi +1 -2
- reflex/components/chakra/base.py +15 -13
- reflex/components/chakra/base.pyi +3 -1
- reflex/components/chakra/datadisplay/code.py +1 -0
- reflex/components/chakra/datadisplay/divider.py +1 -0
- reflex/components/chakra/datadisplay/table.py +1 -0
- reflex/components/chakra/datadisplay/table.pyi +3 -0
- reflex/components/chakra/datadisplay/tag.py +1 -0
- reflex/components/chakra/disclosure/transition.py +1 -0
- reflex/components/chakra/feedback/circularprogress.py +1 -0
- reflex/components/chakra/forms/button.py +1 -0
- reflex/components/chakra/forms/checkbox.py +4 -13
- reflex/components/chakra/forms/checkbox.pyi +1 -3
- reflex/components/chakra/forms/colormodeswitch.py +1 -0
- reflex/components/chakra/forms/editable.py +13 -16
- reflex/components/chakra/forms/editable.pyi +1 -3
- reflex/components/chakra/forms/form.py +1 -0
- reflex/components/chakra/forms/input.py +22 -21
- reflex/components/chakra/forms/input.pyi +4 -4
- reflex/components/chakra/forms/multiselect.py +1 -0
- reflex/components/chakra/forms/numberinput.py +3 -12
- reflex/components/chakra/forms/numberinput.pyi +1 -3
- reflex/components/chakra/forms/pininput.py +8 -14
- reflex/components/chakra/forms/pininput.pyi +2 -3
- reflex/components/chakra/forms/radio.py +4 -13
- reflex/components/chakra/forms/radio.pyi +2 -3
- reflex/components/chakra/forms/rangeslider.py +10 -13
- reflex/components/chakra/forms/rangeslider.pyi +2 -3
- reflex/components/chakra/forms/select.py +4 -12
- reflex/components/chakra/forms/select.pyi +2 -3
- reflex/components/chakra/forms/slider.py +10 -13
- reflex/components/chakra/forms/slider.pyi +2 -3
- reflex/components/chakra/forms/switch.py +4 -13
- reflex/components/chakra/forms/switch.pyi +1 -3
- reflex/components/chakra/forms/textarea.py +16 -17
- reflex/components/chakra/forms/textarea.pyi +1 -3
- reflex/components/chakra/media/avatar.py +4 -12
- reflex/components/chakra/media/avatar.pyi +1 -2
- reflex/components/chakra/media/icon.py +1 -0
- reflex/components/chakra/media/image.py +7 -11
- reflex/components/chakra/media/image.pyi +2 -2
- reflex/components/chakra/navigation/link.py +8 -4
- reflex/components/chakra/navigation/link.pyi +2 -1
- reflex/components/chakra/overlay/alertdialog.py +12 -14
- reflex/components/chakra/overlay/alertdialog.pyi +1 -2
- reflex/components/chakra/overlay/drawer.py +12 -14
- reflex/components/chakra/overlay/drawer.pyi +1 -2
- reflex/components/chakra/overlay/menu.py +7 -11
- reflex/components/chakra/overlay/menu.pyi +2 -2
- reflex/components/chakra/overlay/modal.py +13 -13
- reflex/components/chakra/overlay/modal.pyi +2 -2
- reflex/components/chakra/overlay/popover.py +6 -12
- reflex/components/chakra/overlay/popover.pyi +1 -2
- reflex/components/chakra/overlay/tooltip.py +7 -13
- reflex/components/chakra/overlay/tooltip.pyi +1 -2
- reflex/components/chakra/typography/heading.py +0 -1
- reflex/components/chakra/typography/span.py +1 -0
- reflex/components/chakra/typography/text.py +1 -0
- reflex/components/component.py +70 -43
- reflex/components/core/__init__.py +1 -0
- reflex/components/core/banner.py +27 -24
- reflex/components/core/banner.pyi +6 -2
- reflex/components/core/client_side_routing.py +1 -0
- reflex/components/core/cond.py +19 -17
- reflex/components/core/debounce.py +4 -11
- reflex/components/core/debounce.pyi +1 -1
- reflex/components/core/foreach.py +1 -0
- reflex/components/core/html.py +1 -0
- reflex/components/core/match.py +9 -6
- reflex/components/core/upload.py +26 -25
- reflex/components/core/upload.pyi +3 -4
- reflex/components/datadisplay/__init__.py +1 -0
- reflex/components/datadisplay/code.py +27 -23
- reflex/components/datadisplay/code.pyi +4 -2
- reflex/components/datadisplay/dataeditor.py +73 -80
- reflex/components/datadisplay/dataeditor.pyi +52 -4
- reflex/components/datadisplay/logo.py +1 -0
- reflex/components/el/__init__.py +1 -0
- reflex/components/el/__init__.pyi +8 -0
- reflex/components/el/element.py +0 -1
- reflex/components/el/elements/__init__.py +5 -0
- reflex/components/el/elements/__init__.pyi +12 -1
- reflex/components/el/elements/base.py +1 -0
- reflex/components/el/elements/forms.py +44 -61
- reflex/components/el/elements/forms.pyi +4 -6
- reflex/components/el/elements/inline.py +1 -0
- reflex/components/el/elements/media.py +53 -0
- reflex/components/el/elements/media.pyi +428 -0
- reflex/components/el/elements/metadata.py +11 -0
- reflex/components/el/elements/metadata.pyi +80 -0
- reflex/components/el/elements/other.py +1 -0
- reflex/components/el/elements/scripts.py +1 -0
- reflex/components/el/elements/tables.py +1 -0
- reflex/components/el/elements/typography.py +1 -0
- reflex/components/gridjs/datatable.py +9 -6
- reflex/components/gridjs/datatable.pyi +4 -1
- reflex/components/markdown/markdown.py +36 -41
- reflex/components/markdown/markdown.pyi +4 -3
- reflex/components/media/icon.py +1 -0
- reflex/components/moment/moment.py +11 -17
- reflex/components/moment/moment.pyi +4 -3
- reflex/components/next/base.py +1 -0
- reflex/components/next/image.py +6 -11
- reflex/components/next/image.pyi +2 -2
- reflex/components/plotly/plotly.py +1 -0
- reflex/components/props.py +1 -0
- reflex/components/radix/__init__.py +1 -0
- reflex/components/radix/primitives/__init__.py +1 -0
- reflex/components/radix/primitives/accordion.py +7 -15
- reflex/components/radix/primitives/accordion.pyi +7 -4
- reflex/components/radix/primitives/base.py +1 -0
- reflex/components/radix/primitives/drawer.py +17 -27
- reflex/components/radix/primitives/drawer.pyi +2 -4
- reflex/components/radix/primitives/form.py +4 -12
- reflex/components/radix/primitives/form.pyi +2 -3
- reflex/components/radix/primitives/slider.py +6 -11
- reflex/components/radix/primitives/slider.pyi +2 -2
- reflex/components/radix/themes/__init__.py +1 -0
- reflex/components/radix/themes/base.py +3 -3
- reflex/components/radix/themes/base.pyi +3 -2
- reflex/components/radix/themes/color_mode.py +31 -2
- reflex/components/radix/themes/color_mode.pyi +10 -1
- reflex/components/radix/themes/components/__init__.py +1 -0
- reflex/components/radix/themes/components/alert_dialog.py +13 -24
- reflex/components/radix/themes/components/alert_dialog.pyi +2 -4
- reflex/components/radix/themes/components/aspect_ratio.py +1 -0
- reflex/components/radix/themes/components/card.py +1 -0
- reflex/components/radix/themes/components/checkbox.py +6 -22
- reflex/components/radix/themes/components/checkbox.pyi +2 -4
- reflex/components/radix/themes/components/checkbox_group.py +15 -3
- reflex/components/radix/themes/components/checkbox_group.pyi +10 -2
- reflex/components/radix/themes/components/context_menu.py +29 -38
- reflex/components/radix/themes/components/context_menu.pyi +2 -5
- reflex/components/radix/themes/components/dialog.py +18 -26
- reflex/components/radix/themes/components/dialog.pyi +2 -4
- reflex/components/radix/themes/components/dropdown_menu.py +32 -57
- reflex/components/radix/themes/components/dropdown_menu.pyi +2 -7
- reflex/components/radix/themes/components/hover_card.py +5 -12
- reflex/components/radix/themes/components/hover_card.pyi +2 -3
- reflex/components/radix/themes/components/icon_button.py +1 -0
- reflex/components/radix/themes/components/icon_button.pyi +1 -0
- reflex/components/radix/themes/components/inset.py +1 -0
- reflex/components/radix/themes/components/popover.py +22 -27
- reflex/components/radix/themes/components/popover.pyi +2 -4
- reflex/components/radix/themes/components/radio_group.py +25 -17
- reflex/components/radix/themes/components/radio_group.pyi +2 -3
- reflex/components/radix/themes/components/scroll_area.py +1 -0
- reflex/components/radix/themes/components/segmented_control.py +18 -5
- reflex/components/radix/themes/components/segmented_control.pyi +16 -7
- reflex/components/radix/themes/components/select.py +13 -23
- reflex/components/radix/themes/components/select.pyi +1 -4
- reflex/components/radix/themes/components/separator.py +1 -0
- reflex/components/radix/themes/components/slider.py +7 -12
- reflex/components/radix/themes/components/slider.pyi +2 -3
- reflex/components/radix/themes/components/switch.py +5 -12
- reflex/components/radix/themes/components/switch.pyi +2 -3
- reflex/components/radix/themes/components/table.py +1 -0
- reflex/components/radix/themes/components/tabs.py +4 -11
- reflex/components/radix/themes/components/tabs.pyi +2 -2
- reflex/components/radix/themes/components/text_area.py +19 -18
- reflex/components/radix/themes/components/text_area.pyi +2 -3
- reflex/components/radix/themes/components/text_field.py +19 -18
- reflex/components/radix/themes/components/text_field.pyi +3 -3
- reflex/components/radix/themes/components/tooltip.py +10 -13
- reflex/components/radix/themes/components/tooltip.pyi +2 -3
- reflex/components/radix/themes/layout/__init__.py +1 -0
- reflex/components/radix/themes/layout/box.py +1 -0
- reflex/components/radix/themes/layout/container.py +1 -0
- reflex/components/radix/themes/layout/list.py +1 -0
- reflex/components/radix/themes/layout/list.pyi +1 -0
- reflex/components/radix/themes/layout/section.py +1 -0
- reflex/components/radix/themes/typography/__init__.py +1 -0
- reflex/components/radix/themes/typography/base.py +1 -0
- reflex/components/radix/themes/typography/blockquote.py +1 -0
- reflex/components/radix/themes/typography/code.py +1 -0
- reflex/components/radix/themes/typography/heading.py +1 -0
- reflex/components/radix/themes/typography/link.py +8 -3
- reflex/components/radix/themes/typography/link.pyi +2 -1
- reflex/components/react_player/audio.py +1 -0
- reflex/components/react_player/audio.pyi +48 -0
- reflex/components/react_player/react_player.py +49 -0
- reflex/components/react_player/react_player.pyi +49 -0
- reflex/components/react_player/video.py +1 -0
- reflex/components/react_player/video.pyi +48 -0
- reflex/components/recharts/__init__.py +1 -0
- reflex/components/recharts/cartesian.py +264 -74
- reflex/components/recharts/cartesian.pyi +573 -58
- reflex/components/recharts/charts.py +68 -78
- reflex/components/recharts/charts.pyi +373 -156
- reflex/components/recharts/general.py +52 -20
- reflex/components/recharts/general.pyi +52 -6
- reflex/components/recharts/polar.py +30 -18
- reflex/components/recharts/polar.pyi +66 -5
- reflex/components/recharts/recharts.py +5 -3
- reflex/components/recharts/recharts.pyi +2 -1
- reflex/components/sonner/toast.py +2 -2
- reflex/components/sonner/toast.pyi +1 -1
- reflex/components/suneditor/editor.py +39 -26
- reflex/components/suneditor/editor.pyi +4 -4
- reflex/components/tags/iter_tag.py +1 -0
- reflex/constants/__init__.py +3 -2
- reflex/constants/base.py +20 -21
- reflex/constants/compiler.py +3 -1
- reflex/constants/config.py +1 -0
- reflex/constants/event.py +1 -0
- reflex/constants/installer.py +3 -2
- reflex/constants/style.py +2 -8
- reflex/event.py +36 -6
- reflex/experimental/assets.py +1 -0
- reflex/experimental/client_state.py +9 -3
- reflex/experimental/hooks.py +1 -0
- reflex/experimental/misc.py +12 -3
- reflex/middleware/hydrate_middleware.py +1 -0
- reflex/middleware/middleware.py +1 -0
- reflex/state.py +38 -1
- reflex/style.py +67 -20
- reflex/testing.py +6 -2
- reflex/utils/build.py +76 -72
- reflex/utils/exec.py +17 -9
- reflex/utils/export.py +13 -9
- reflex/utils/imports.py +34 -5
- reflex/utils/lazy_loader.py +1 -0
- reflex/utils/path_ops.py +39 -33
- reflex/utils/prerequisites.py +35 -27
- reflex/utils/processes.py +1 -1
- reflex/utils/serializers.py +3 -6
- reflex/utils/watch.py +3 -1
- reflex/vars.py +26 -10
- reflex/vars.pyi +3 -3
- {reflex-0.5.4a3.dist-info → reflex-0.5.5a1.dist-info}/METADATA +2 -2
- {reflex-0.5.4a3.dist-info → reflex-0.5.5a1.dist-info}/RECORD +260 -260
- {reflex-0.5.4a3.dist-info → reflex-0.5.5a1.dist-info}/LICENSE +0 -0
- {reflex-0.5.4a3.dist-info → reflex-0.5.5a1.dist-info}/WHEEL +0 -0
- {reflex-0.5.4a3.dist-info → reflex-0.5.5a1.dist-info}/entry_points.txt +0 -0
|
@@ -10,6 +10,7 @@ from reflex.style import Style
|
|
|
10
10
|
from typing import Any, Dict, List, Union
|
|
11
11
|
from reflex.constants import EventTriggers
|
|
12
12
|
from reflex.constants.colors import Color
|
|
13
|
+
from reflex.event import EventHandler
|
|
13
14
|
from reflex.vars import Var
|
|
14
15
|
from .recharts import (
|
|
15
16
|
LiteralAnimationEasing,
|
|
@@ -18,7 +19,9 @@ from .recharts import (
|
|
|
18
19
|
LiteralIfOverflow,
|
|
19
20
|
LiteralInterval,
|
|
20
21
|
LiteralLayout,
|
|
22
|
+
LiteralLegendType,
|
|
21
23
|
LiteralLineType,
|
|
24
|
+
LiteralOrientationLeftRight,
|
|
22
25
|
LiteralOrientationTopBottom,
|
|
23
26
|
LiteralOrientationTopBottomLeftRight,
|
|
24
27
|
LiteralPolarRadiusType,
|
|
@@ -28,7 +31,6 @@ from .recharts import (
|
|
|
28
31
|
)
|
|
29
32
|
|
|
30
33
|
class Axis(Recharts):
|
|
31
|
-
def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
|
|
32
34
|
@overload
|
|
33
35
|
@classmethod
|
|
34
36
|
def create( # type: ignore
|
|
@@ -92,15 +94,38 @@ class Axis(Recharts):
|
|
|
92
94
|
] = None,
|
|
93
95
|
unit: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
94
96
|
name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
97
|
+
ticks: Optional[
|
|
98
|
+
Union[Var[List[Union[str, int]]], List[Union[str, int]]]
|
|
99
|
+
] = None,
|
|
100
|
+
tick: Optional[Union[Var[bool], bool]] = None,
|
|
101
|
+
tick_count: Optional[Union[Var[int], int]] = None,
|
|
102
|
+
tick_line: Optional[Union[Var[bool], bool]] = None,
|
|
103
|
+
tick_size: Optional[Union[Var[int], int]] = None,
|
|
104
|
+
min_tick_gap: Optional[Union[Var[int], int]] = None,
|
|
95
105
|
style: Optional[Style] = None,
|
|
96
106
|
key: Optional[Any] = None,
|
|
97
107
|
id: Optional[Any] = None,
|
|
98
108
|
class_name: Optional[Any] = None,
|
|
99
109
|
autofocus: Optional[bool] = None,
|
|
100
110
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
111
|
+
on_blur: Optional[
|
|
112
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
113
|
+
] = None,
|
|
101
114
|
on_click: Optional[
|
|
102
115
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
103
116
|
] = None,
|
|
117
|
+
on_context_menu: Optional[
|
|
118
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
119
|
+
] = None,
|
|
120
|
+
on_double_click: Optional[
|
|
121
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
122
|
+
] = None,
|
|
123
|
+
on_focus: Optional[
|
|
124
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
125
|
+
] = None,
|
|
126
|
+
on_mount: Optional[
|
|
127
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
128
|
+
] = None,
|
|
104
129
|
on_mouse_down: Optional[
|
|
105
130
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
106
131
|
] = None,
|
|
@@ -122,6 +147,12 @@ class Axis(Recharts):
|
|
|
122
147
|
on_mouse_up: Optional[
|
|
123
148
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
124
149
|
] = None,
|
|
150
|
+
on_scroll: Optional[
|
|
151
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
152
|
+
] = None,
|
|
153
|
+
on_unmount: Optional[
|
|
154
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
155
|
+
] = None,
|
|
125
156
|
**props
|
|
126
157
|
) -> "Axis":
|
|
127
158
|
"""Create the component.
|
|
@@ -143,6 +174,12 @@ class Axis(Recharts):
|
|
|
143
174
|
scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold' | Function
|
|
144
175
|
unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
|
|
145
176
|
name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
|
|
177
|
+
ticks: Set the values of axis ticks manually.
|
|
178
|
+
tick: If set false, no ticks will be drawn.
|
|
179
|
+
tick_count: The count of axis ticks.
|
|
180
|
+
tick_line: If set false, no axis tick lines will be drawn.
|
|
181
|
+
tick_size: The length of tick line.
|
|
182
|
+
min_tick_gap: The minimum gap between two adjacent labels
|
|
146
183
|
style: The style of the component.
|
|
147
184
|
key: A unique key for the component.
|
|
148
185
|
id: The id for the component.
|
|
@@ -162,6 +199,7 @@ class XAxis(Axis):
|
|
|
162
199
|
def create( # type: ignore
|
|
163
200
|
cls,
|
|
164
201
|
*children,
|
|
202
|
+
x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
165
203
|
include_hidden: Optional[Union[Var[bool], bool]] = None,
|
|
166
204
|
data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
167
205
|
hide: Optional[Union[Var[bool], bool]] = None,
|
|
@@ -221,15 +259,38 @@ class XAxis(Axis):
|
|
|
221
259
|
] = None,
|
|
222
260
|
unit: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
223
261
|
name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
262
|
+
ticks: Optional[
|
|
263
|
+
Union[Var[List[Union[str, int]]], List[Union[str, int]]]
|
|
264
|
+
] = None,
|
|
265
|
+
tick: Optional[Union[Var[bool], bool]] = None,
|
|
266
|
+
tick_count: Optional[Union[Var[int], int]] = None,
|
|
267
|
+
tick_line: Optional[Union[Var[bool], bool]] = None,
|
|
268
|
+
tick_size: Optional[Union[Var[int], int]] = None,
|
|
269
|
+
min_tick_gap: Optional[Union[Var[int], int]] = None,
|
|
224
270
|
style: Optional[Style] = None,
|
|
225
271
|
key: Optional[Any] = None,
|
|
226
272
|
id: Optional[Any] = None,
|
|
227
273
|
class_name: Optional[Any] = None,
|
|
228
274
|
autofocus: Optional[bool] = None,
|
|
229
275
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
276
|
+
on_blur: Optional[
|
|
277
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
278
|
+
] = None,
|
|
230
279
|
on_click: Optional[
|
|
231
280
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
232
281
|
] = None,
|
|
282
|
+
on_context_menu: Optional[
|
|
283
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
284
|
+
] = None,
|
|
285
|
+
on_double_click: Optional[
|
|
286
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
287
|
+
] = None,
|
|
288
|
+
on_focus: Optional[
|
|
289
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
290
|
+
] = None,
|
|
291
|
+
on_mount: Optional[
|
|
292
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
293
|
+
] = None,
|
|
233
294
|
on_mouse_down: Optional[
|
|
234
295
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
235
296
|
] = None,
|
|
@@ -251,12 +312,19 @@ class XAxis(Axis):
|
|
|
251
312
|
on_mouse_up: Optional[
|
|
252
313
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
253
314
|
] = None,
|
|
315
|
+
on_scroll: Optional[
|
|
316
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
317
|
+
] = None,
|
|
318
|
+
on_unmount: Optional[
|
|
319
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
320
|
+
] = None,
|
|
254
321
|
**props
|
|
255
322
|
) -> "XAxis":
|
|
256
323
|
"""Create the component.
|
|
257
324
|
|
|
258
325
|
Args:
|
|
259
326
|
*children: The children of the component.
|
|
327
|
+
x_axis_id: The id of x-axis which is corresponding to the data.
|
|
260
328
|
include_hidden: Ensures that all datapoints within a chart contribute to its domain calculation, even when they are hidden
|
|
261
329
|
data_key: The key of a group of data which should be unique in an area chart.
|
|
262
330
|
hide: If set true, the axis do not display in the chart.
|
|
@@ -273,6 +341,12 @@ class XAxis(Axis):
|
|
|
273
341
|
scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold' | Function
|
|
274
342
|
unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
|
|
275
343
|
name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
|
|
344
|
+
ticks: Set the values of axis ticks manually.
|
|
345
|
+
tick: If set false, no ticks will be drawn.
|
|
346
|
+
tick_count: The count of axis ticks.
|
|
347
|
+
tick_line: If set false, no axis tick lines will be drawn.
|
|
348
|
+
tick_size: The length of tick line.
|
|
349
|
+
min_tick_gap: The minimum gap between two adjacent labels
|
|
276
350
|
style: The style of the component.
|
|
277
351
|
key: A unique key for the component.
|
|
278
352
|
id: The id for the component.
|
|
@@ -292,13 +366,14 @@ class YAxis(Axis):
|
|
|
292
366
|
def create( # type: ignore
|
|
293
367
|
cls,
|
|
294
368
|
*children,
|
|
369
|
+
orientation: Optional[
|
|
370
|
+
Union[Var[Literal["left", "right"]], Literal["left", "right"]]
|
|
371
|
+
] = None,
|
|
295
372
|
data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
373
|
+
y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
296
374
|
hide: Optional[Union[Var[bool], bool]] = None,
|
|
297
375
|
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
298
376
|
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
299
|
-
orientation: Optional[
|
|
300
|
-
Union[Var[Literal["top", "bottom"]], Literal["top", "bottom"]]
|
|
301
|
-
] = None,
|
|
302
377
|
type_: Optional[
|
|
303
378
|
Union[Var[Literal["number", "category"]], Literal["number", "category"]]
|
|
304
379
|
] = None,
|
|
@@ -350,15 +425,38 @@ class YAxis(Axis):
|
|
|
350
425
|
] = None,
|
|
351
426
|
unit: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
352
427
|
name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
428
|
+
ticks: Optional[
|
|
429
|
+
Union[Var[List[Union[str, int]]], List[Union[str, int]]]
|
|
430
|
+
] = None,
|
|
431
|
+
tick: Optional[Union[Var[bool], bool]] = None,
|
|
432
|
+
tick_count: Optional[Union[Var[int], int]] = None,
|
|
433
|
+
tick_line: Optional[Union[Var[bool], bool]] = None,
|
|
434
|
+
tick_size: Optional[Union[Var[int], int]] = None,
|
|
435
|
+
min_tick_gap: Optional[Union[Var[int], int]] = None,
|
|
353
436
|
style: Optional[Style] = None,
|
|
354
437
|
key: Optional[Any] = None,
|
|
355
438
|
id: Optional[Any] = None,
|
|
356
439
|
class_name: Optional[Any] = None,
|
|
357
440
|
autofocus: Optional[bool] = None,
|
|
358
441
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
442
|
+
on_blur: Optional[
|
|
443
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
444
|
+
] = None,
|
|
359
445
|
on_click: Optional[
|
|
360
446
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
361
447
|
] = None,
|
|
448
|
+
on_context_menu: Optional[
|
|
449
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
450
|
+
] = None,
|
|
451
|
+
on_double_click: Optional[
|
|
452
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
453
|
+
] = None,
|
|
454
|
+
on_focus: Optional[
|
|
455
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
456
|
+
] = None,
|
|
457
|
+
on_mount: Optional[
|
|
458
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
459
|
+
] = None,
|
|
362
460
|
on_mouse_down: Optional[
|
|
363
461
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
364
462
|
] = None,
|
|
@@ -380,17 +478,24 @@ class YAxis(Axis):
|
|
|
380
478
|
on_mouse_up: Optional[
|
|
381
479
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
382
480
|
] = None,
|
|
481
|
+
on_scroll: Optional[
|
|
482
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
483
|
+
] = None,
|
|
484
|
+
on_unmount: Optional[
|
|
485
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
486
|
+
] = None,
|
|
383
487
|
**props
|
|
384
488
|
) -> "YAxis":
|
|
385
489
|
"""Create the component.
|
|
386
490
|
|
|
387
491
|
Args:
|
|
388
492
|
*children: The children of the component.
|
|
493
|
+
orientation: The orientation of axis 'top' | 'bottom'
|
|
389
494
|
data_key: The key of a group of data which should be unique in an area chart.
|
|
495
|
+
y_axis_id: The id of y-axis which is corresponding to the data.
|
|
390
496
|
hide: If set true, the axis do not display in the chart.
|
|
391
497
|
width: The width of axis which is usually calculated internally.
|
|
392
498
|
height: The height of axis, which can be setted by user.
|
|
393
|
-
orientation: The orientation of axis 'top' | 'bottom'
|
|
394
499
|
type_: The type of axis 'number' | 'category'
|
|
395
500
|
allow_decimals: Allow the ticks of XAxis to be decimals or not.
|
|
396
501
|
allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain.
|
|
@@ -401,6 +506,12 @@ class YAxis(Axis):
|
|
|
401
506
|
scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold' | Function
|
|
402
507
|
unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
|
|
403
508
|
name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
|
|
509
|
+
ticks: Set the values of axis ticks manually.
|
|
510
|
+
tick: If set false, no ticks will be drawn.
|
|
511
|
+
tick_count: The count of axis ticks.
|
|
512
|
+
tick_line: If set false, no axis tick lines will be drawn.
|
|
513
|
+
tick_size: The length of tick line.
|
|
514
|
+
min_tick_gap: The minimum gap between two adjacent labels
|
|
404
515
|
style: The style of the component.
|
|
405
516
|
key: A unique key for the component.
|
|
406
517
|
id: The id for the component.
|
|
@@ -597,7 +708,6 @@ class Brush(Recharts):
|
|
|
597
708
|
...
|
|
598
709
|
|
|
599
710
|
class Cartesian(Recharts):
|
|
600
|
-
def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
|
|
601
711
|
@overload
|
|
602
712
|
@classmethod
|
|
603
713
|
def create( # type: ignore
|
|
@@ -612,15 +722,62 @@ class Cartesian(Recharts):
|
|
|
612
722
|
data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
613
723
|
x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
614
724
|
y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
725
|
+
legend_type: Optional[
|
|
726
|
+
Union[
|
|
727
|
+
Var[
|
|
728
|
+
Literal[
|
|
729
|
+
"line",
|
|
730
|
+
"plainline",
|
|
731
|
+
"square",
|
|
732
|
+
"rect",
|
|
733
|
+
"circle",
|
|
734
|
+
"cross",
|
|
735
|
+
"diamond",
|
|
736
|
+
"star",
|
|
737
|
+
"triangle",
|
|
738
|
+
"wye",
|
|
739
|
+
"none",
|
|
740
|
+
]
|
|
741
|
+
],
|
|
742
|
+
Literal[
|
|
743
|
+
"line",
|
|
744
|
+
"plainline",
|
|
745
|
+
"square",
|
|
746
|
+
"rect",
|
|
747
|
+
"circle",
|
|
748
|
+
"cross",
|
|
749
|
+
"diamond",
|
|
750
|
+
"star",
|
|
751
|
+
"triangle",
|
|
752
|
+
"wye",
|
|
753
|
+
"none",
|
|
754
|
+
],
|
|
755
|
+
]
|
|
756
|
+
] = None,
|
|
615
757
|
style: Optional[Style] = None,
|
|
616
758
|
key: Optional[Any] = None,
|
|
617
759
|
id: Optional[Any] = None,
|
|
618
760
|
class_name: Optional[Any] = None,
|
|
619
761
|
autofocus: Optional[bool] = None,
|
|
620
762
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
763
|
+
on_blur: Optional[
|
|
764
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
765
|
+
] = None,
|
|
621
766
|
on_click: Optional[
|
|
622
767
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
623
768
|
] = None,
|
|
769
|
+
on_context_menu: Optional[
|
|
770
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
771
|
+
] = None,
|
|
772
|
+
on_double_click: Optional[
|
|
773
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
774
|
+
] = None,
|
|
775
|
+
on_focus: Optional[
|
|
776
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
777
|
+
] = None,
|
|
778
|
+
on_mount: Optional[
|
|
779
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
780
|
+
] = None,
|
|
624
781
|
on_mouse_down: Optional[
|
|
625
782
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
626
783
|
] = None,
|
|
@@ -642,6 +799,12 @@ class Cartesian(Recharts):
|
|
|
642
799
|
on_mouse_up: Optional[
|
|
643
800
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
644
801
|
] = None,
|
|
802
|
+
on_scroll: Optional[
|
|
803
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
804
|
+
] = None,
|
|
805
|
+
on_unmount: Optional[
|
|
806
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
807
|
+
] = None,
|
|
645
808
|
**props
|
|
646
809
|
) -> "Cartesian":
|
|
647
810
|
"""Create the component.
|
|
@@ -652,7 +815,8 @@ class Cartesian(Recharts):
|
|
|
652
815
|
data_key: The key of a group of data which should be unique in an area chart.
|
|
653
816
|
x_axis_id: The id of x-axis which is corresponding to the data.
|
|
654
817
|
y_axis_id: The id of y-axis which is corresponding to the data.
|
|
655
|
-
|
|
818
|
+
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' | 'star' | 'triangle' | 'wye' | 'none'optional
|
|
819
|
+
style: The style of the component.
|
|
656
820
|
key: A unique key for the component.
|
|
657
821
|
id: The id for the component.
|
|
658
822
|
class_name: The class name for the component.
|
|
@@ -717,7 +881,9 @@ class Area(Cartesian):
|
|
|
717
881
|
dot: Optional[Union[Var[bool], bool]] = None,
|
|
718
882
|
active_dot: Optional[Union[Var[bool], bool]] = None,
|
|
719
883
|
label: Optional[Union[Var[bool], bool]] = None,
|
|
720
|
-
stack_id: Optional[Union[Var[str], str]] = None,
|
|
884
|
+
stack_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
885
|
+
unit: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
886
|
+
name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
721
887
|
layout: Optional[
|
|
722
888
|
Union[
|
|
723
889
|
Var[Literal["horizontal", "vertical"]],
|
|
@@ -727,15 +893,62 @@ class Area(Cartesian):
|
|
|
727
893
|
data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
728
894
|
x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
729
895
|
y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
896
|
+
legend_type: Optional[
|
|
897
|
+
Union[
|
|
898
|
+
Var[
|
|
899
|
+
Literal[
|
|
900
|
+
"line",
|
|
901
|
+
"plainline",
|
|
902
|
+
"square",
|
|
903
|
+
"rect",
|
|
904
|
+
"circle",
|
|
905
|
+
"cross",
|
|
906
|
+
"diamond",
|
|
907
|
+
"star",
|
|
908
|
+
"triangle",
|
|
909
|
+
"wye",
|
|
910
|
+
"none",
|
|
911
|
+
]
|
|
912
|
+
],
|
|
913
|
+
Literal[
|
|
914
|
+
"line",
|
|
915
|
+
"plainline",
|
|
916
|
+
"square",
|
|
917
|
+
"rect",
|
|
918
|
+
"circle",
|
|
919
|
+
"cross",
|
|
920
|
+
"diamond",
|
|
921
|
+
"star",
|
|
922
|
+
"triangle",
|
|
923
|
+
"wye",
|
|
924
|
+
"none",
|
|
925
|
+
],
|
|
926
|
+
]
|
|
927
|
+
] = None,
|
|
730
928
|
style: Optional[Style] = None,
|
|
731
929
|
key: Optional[Any] = None,
|
|
732
930
|
id: Optional[Any] = None,
|
|
733
931
|
class_name: Optional[Any] = None,
|
|
734
932
|
autofocus: Optional[bool] = None,
|
|
735
933
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
934
|
+
on_blur: Optional[
|
|
935
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
936
|
+
] = None,
|
|
736
937
|
on_click: Optional[
|
|
737
938
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
738
939
|
] = None,
|
|
940
|
+
on_context_menu: Optional[
|
|
941
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
942
|
+
] = None,
|
|
943
|
+
on_double_click: Optional[
|
|
944
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
945
|
+
] = None,
|
|
946
|
+
on_focus: Optional[
|
|
947
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
948
|
+
] = None,
|
|
949
|
+
on_mount: Optional[
|
|
950
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
951
|
+
] = None,
|
|
739
952
|
on_mouse_down: Optional[
|
|
740
953
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
741
954
|
] = None,
|
|
@@ -757,6 +970,12 @@ class Area(Cartesian):
|
|
|
757
970
|
on_mouse_up: Optional[
|
|
758
971
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
759
972
|
] = None,
|
|
973
|
+
on_scroll: Optional[
|
|
974
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
975
|
+
] = None,
|
|
976
|
+
on_unmount: Optional[
|
|
977
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
978
|
+
] = None,
|
|
760
979
|
**props
|
|
761
980
|
) -> "Area":
|
|
762
981
|
"""Create the component.
|
|
@@ -770,12 +989,15 @@ class Area(Cartesian):
|
|
|
770
989
|
dot: If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally.
|
|
771
990
|
active_dot: The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally.
|
|
772
991
|
label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally.
|
|
773
|
-
stack_id: The stack id of area, when two areas have the same value axis and same
|
|
992
|
+
stack_id: The stack id of area, when two areas have the same value axis and same stack_id, then the two areas are stacked in order.
|
|
993
|
+
unit: The unit of data. This option will be used in tooltip.
|
|
994
|
+
name: The name of data. This option will be used in tooltip and legend to represent a bar. If no value was set to this option, the value of dataKey will be used alternatively.
|
|
774
995
|
layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
|
|
775
996
|
data_key: The key of a group of data which should be unique in an area chart.
|
|
776
997
|
x_axis_id: The id of x-axis which is corresponding to the data.
|
|
777
998
|
y_axis_id: The id of y-axis which is corresponding to the data.
|
|
778
|
-
|
|
999
|
+
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' | 'star' | 'triangle' | 'wye' | 'none'optional
|
|
1000
|
+
style: The style of the component.
|
|
779
1001
|
key: A unique key for the component.
|
|
780
1002
|
id: The id for the component.
|
|
781
1003
|
class_name: The class name for the component.
|
|
@@ -800,8 +1022,20 @@ class Bar(Cartesian):
|
|
|
800
1022
|
background: Optional[Union[Var[bool], bool]] = None,
|
|
801
1023
|
label: Optional[Union[Var[bool], bool]] = None,
|
|
802
1024
|
stack_id: Optional[Union[Var[str], str]] = None,
|
|
1025
|
+
unit: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1026
|
+
min_point_size: Optional[Union[Var[int], int]] = None,
|
|
1027
|
+
name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
803
1028
|
bar_size: Optional[Union[Var[int], int]] = None,
|
|
804
1029
|
max_bar_size: Optional[Union[Var[int], int]] = None,
|
|
1030
|
+
is_animation_active: Optional[Union[Var[bool], bool]] = None,
|
|
1031
|
+
animation_begin: Optional[Union[Var[int], int]] = None,
|
|
1032
|
+
animation_duration: Optional[Union[Var[int], int]] = None,
|
|
1033
|
+
animation_easing: Optional[
|
|
1034
|
+
Union[
|
|
1035
|
+
Var[Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]],
|
|
1036
|
+
Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"],
|
|
1037
|
+
]
|
|
1038
|
+
] = None,
|
|
805
1039
|
layout: Optional[
|
|
806
1040
|
Union[
|
|
807
1041
|
Var[Literal["horizontal", "vertical"]],
|
|
@@ -811,15 +1045,68 @@ class Bar(Cartesian):
|
|
|
811
1045
|
data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
812
1046
|
x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
813
1047
|
y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1048
|
+
legend_type: Optional[
|
|
1049
|
+
Union[
|
|
1050
|
+
Var[
|
|
1051
|
+
Literal[
|
|
1052
|
+
"line",
|
|
1053
|
+
"plainline",
|
|
1054
|
+
"square",
|
|
1055
|
+
"rect",
|
|
1056
|
+
"circle",
|
|
1057
|
+
"cross",
|
|
1058
|
+
"diamond",
|
|
1059
|
+
"star",
|
|
1060
|
+
"triangle",
|
|
1061
|
+
"wye",
|
|
1062
|
+
"none",
|
|
1063
|
+
]
|
|
1064
|
+
],
|
|
1065
|
+
Literal[
|
|
1066
|
+
"line",
|
|
1067
|
+
"plainline",
|
|
1068
|
+
"square",
|
|
1069
|
+
"rect",
|
|
1070
|
+
"circle",
|
|
1071
|
+
"cross",
|
|
1072
|
+
"diamond",
|
|
1073
|
+
"star",
|
|
1074
|
+
"triangle",
|
|
1075
|
+
"wye",
|
|
1076
|
+
"none",
|
|
1077
|
+
],
|
|
1078
|
+
]
|
|
1079
|
+
] = None,
|
|
814
1080
|
style: Optional[Style] = None,
|
|
815
1081
|
key: Optional[Any] = None,
|
|
816
1082
|
id: Optional[Any] = None,
|
|
817
1083
|
class_name: Optional[Any] = None,
|
|
818
1084
|
autofocus: Optional[bool] = None,
|
|
819
1085
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1086
|
+
on_animation_begin: Optional[
|
|
1087
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1088
|
+
] = None,
|
|
1089
|
+
on_animation_end: Optional[
|
|
1090
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1091
|
+
] = None,
|
|
1092
|
+
on_blur: Optional[
|
|
1093
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1094
|
+
] = None,
|
|
820
1095
|
on_click: Optional[
|
|
821
1096
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
822
1097
|
] = None,
|
|
1098
|
+
on_context_menu: Optional[
|
|
1099
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1100
|
+
] = None,
|
|
1101
|
+
on_double_click: Optional[
|
|
1102
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1103
|
+
] = None,
|
|
1104
|
+
on_focus: Optional[
|
|
1105
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1106
|
+
] = None,
|
|
1107
|
+
on_mount: Optional[
|
|
1108
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1109
|
+
] = None,
|
|
823
1110
|
on_mouse_down: Optional[
|
|
824
1111
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
825
1112
|
] = None,
|
|
@@ -841,6 +1128,12 @@ class Bar(Cartesian):
|
|
|
841
1128
|
on_mouse_up: Optional[
|
|
842
1129
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
843
1130
|
] = None,
|
|
1131
|
+
on_scroll: Optional[
|
|
1132
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1133
|
+
] = None,
|
|
1134
|
+
on_unmount: Optional[
|
|
1135
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1136
|
+
] = None,
|
|
844
1137
|
**props
|
|
845
1138
|
) -> "Bar":
|
|
846
1139
|
"""Create the component.
|
|
@@ -852,14 +1145,22 @@ class Bar(Cartesian):
|
|
|
852
1145
|
fill: The width of the line stroke.
|
|
853
1146
|
background: If false set, background of bars will not be drawn. If true set, background of bars will be drawn which have the props calculated internally.
|
|
854
1147
|
label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally.
|
|
855
|
-
stack_id: The stack id of bar, when two
|
|
856
|
-
|
|
1148
|
+
stack_id: The stack id of bar, when two bars have the same value axis and same stack_id, then the two bars are stacked in order.
|
|
1149
|
+
unit: The unit of data. This option will be used in tooltip.
|
|
1150
|
+
min_point_size: The minimal height of a bar in a horizontal BarChart, or the minimal width of a bar in a vertical BarChart. By default, 0 values are not shown. To visualize a 0 (or close to zero) point, set the minimal point size to a pixel value like 3. In stacked bar charts, minPointSize might not be respected for tightly packed values. So we strongly recommend not using this prop in stacked BarCharts.
|
|
1151
|
+
name: The name of data. This option will be used in tooltip and legend to represent a bar. If no value was set to this option, the value of dataKey will be used alternatively.
|
|
1152
|
+
bar_size: Size of the bar (if one bar_size is set then a bar_size must be set for all bars)
|
|
857
1153
|
max_bar_size: Max size of the bar
|
|
1154
|
+
is_animation_active: If set false, animation of bar will be disabled.
|
|
1155
|
+
animation_begin: Specifies when the animation should begin, the unit of this option is ms, default 0.
|
|
1156
|
+
animation_duration: Specifies the duration of animation, the unit of this option is ms, default 1500.
|
|
1157
|
+
animation_easing: The type of easing function, default 'ease'
|
|
858
1158
|
layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
|
|
859
1159
|
data_key: The key of a group of data which should be unique in an area chart.
|
|
860
1160
|
x_axis_id: The id of x-axis which is corresponding to the data.
|
|
861
1161
|
y_axis_id: The id of y-axis which is corresponding to the data.
|
|
862
|
-
|
|
1162
|
+
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' | 'star' | 'triangle' | 'wye' | 'none'optional
|
|
1163
|
+
style: The style of the component.
|
|
863
1164
|
key: A unique key for the component.
|
|
864
1165
|
id: The id for the component.
|
|
865
1166
|
class_name: The class name for the component.
|
|
@@ -925,6 +1226,8 @@ class Line(Cartesian):
|
|
|
925
1226
|
label: Optional[Union[Var[bool], bool]] = None,
|
|
926
1227
|
hide: Optional[Union[Var[bool], bool]] = None,
|
|
927
1228
|
connect_nulls: Optional[Union[Var[bool], bool]] = None,
|
|
1229
|
+
unit: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1230
|
+
name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
928
1231
|
layout: Optional[
|
|
929
1232
|
Union[
|
|
930
1233
|
Var[Literal["horizontal", "vertical"]],
|
|
@@ -934,15 +1237,62 @@ class Line(Cartesian):
|
|
|
934
1237
|
data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
935
1238
|
x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
936
1239
|
y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1240
|
+
legend_type: Optional[
|
|
1241
|
+
Union[
|
|
1242
|
+
Var[
|
|
1243
|
+
Literal[
|
|
1244
|
+
"line",
|
|
1245
|
+
"plainline",
|
|
1246
|
+
"square",
|
|
1247
|
+
"rect",
|
|
1248
|
+
"circle",
|
|
1249
|
+
"cross",
|
|
1250
|
+
"diamond",
|
|
1251
|
+
"star",
|
|
1252
|
+
"triangle",
|
|
1253
|
+
"wye",
|
|
1254
|
+
"none",
|
|
1255
|
+
]
|
|
1256
|
+
],
|
|
1257
|
+
Literal[
|
|
1258
|
+
"line",
|
|
1259
|
+
"plainline",
|
|
1260
|
+
"square",
|
|
1261
|
+
"rect",
|
|
1262
|
+
"circle",
|
|
1263
|
+
"cross",
|
|
1264
|
+
"diamond",
|
|
1265
|
+
"star",
|
|
1266
|
+
"triangle",
|
|
1267
|
+
"wye",
|
|
1268
|
+
"none",
|
|
1269
|
+
],
|
|
1270
|
+
]
|
|
1271
|
+
] = None,
|
|
937
1272
|
style: Optional[Style] = None,
|
|
938
1273
|
key: Optional[Any] = None,
|
|
939
1274
|
id: Optional[Any] = None,
|
|
940
1275
|
class_name: Optional[Any] = None,
|
|
941
1276
|
autofocus: Optional[bool] = None,
|
|
942
1277
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1278
|
+
on_blur: Optional[
|
|
1279
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1280
|
+
] = None,
|
|
943
1281
|
on_click: Optional[
|
|
944
1282
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
945
1283
|
] = None,
|
|
1284
|
+
on_context_menu: Optional[
|
|
1285
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1286
|
+
] = None,
|
|
1287
|
+
on_double_click: Optional[
|
|
1288
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1289
|
+
] = None,
|
|
1290
|
+
on_focus: Optional[
|
|
1291
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1292
|
+
] = None,
|
|
1293
|
+
on_mount: Optional[
|
|
1294
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1295
|
+
] = None,
|
|
946
1296
|
on_mouse_down: Optional[
|
|
947
1297
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
948
1298
|
] = None,
|
|
@@ -964,6 +1314,12 @@ class Line(Cartesian):
|
|
|
964
1314
|
on_mouse_up: Optional[
|
|
965
1315
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
966
1316
|
] = None,
|
|
1317
|
+
on_scroll: Optional[
|
|
1318
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1319
|
+
] = None,
|
|
1320
|
+
on_unmount: Optional[
|
|
1321
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1322
|
+
] = None,
|
|
967
1323
|
**props
|
|
968
1324
|
) -> "Line":
|
|
969
1325
|
"""Create the component.
|
|
@@ -978,11 +1334,14 @@ class Line(Cartesian):
|
|
|
978
1334
|
label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally.
|
|
979
1335
|
hide: Hides the line when true, useful when toggling visibility state via legend.
|
|
980
1336
|
connect_nulls: Whether to connect a graph line across null points.
|
|
1337
|
+
unit: The unit of data. This option will be used in tooltip.
|
|
1338
|
+
name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
|
|
981
1339
|
layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical'
|
|
982
1340
|
data_key: The key of a group of data which should be unique in an area chart.
|
|
983
1341
|
x_axis_id: The id of x-axis which is corresponding to the data.
|
|
984
1342
|
y_axis_id: The id of y-axis which is corresponding to the data.
|
|
985
|
-
|
|
1343
|
+
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' | 'star' | 'triangle' | 'wye' | 'none'optional
|
|
1344
|
+
style: The style of the component.
|
|
986
1345
|
key: A unique key for the component.
|
|
987
1346
|
id: The id for the component.
|
|
988
1347
|
class_name: The class name for the component.
|
|
@@ -995,13 +1354,47 @@ class Line(Cartesian):
|
|
|
995
1354
|
"""
|
|
996
1355
|
...
|
|
997
1356
|
|
|
998
|
-
class Scatter(
|
|
1357
|
+
class Scatter(Recharts):
|
|
999
1358
|
@overload
|
|
1000
1359
|
@classmethod
|
|
1001
1360
|
def create( # type: ignore
|
|
1002
1361
|
cls,
|
|
1003
1362
|
*children,
|
|
1004
1363
|
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
1364
|
+
legend_type: Optional[
|
|
1365
|
+
Union[
|
|
1366
|
+
Var[
|
|
1367
|
+
Literal[
|
|
1368
|
+
"line",
|
|
1369
|
+
"plainline",
|
|
1370
|
+
"square",
|
|
1371
|
+
"rect",
|
|
1372
|
+
"circle",
|
|
1373
|
+
"cross",
|
|
1374
|
+
"diamond",
|
|
1375
|
+
"star",
|
|
1376
|
+
"triangle",
|
|
1377
|
+
"wye",
|
|
1378
|
+
"none",
|
|
1379
|
+
]
|
|
1380
|
+
],
|
|
1381
|
+
Literal[
|
|
1382
|
+
"line",
|
|
1383
|
+
"plainline",
|
|
1384
|
+
"square",
|
|
1385
|
+
"rect",
|
|
1386
|
+
"circle",
|
|
1387
|
+
"cross",
|
|
1388
|
+
"diamond",
|
|
1389
|
+
"star",
|
|
1390
|
+
"triangle",
|
|
1391
|
+
"wye",
|
|
1392
|
+
"none",
|
|
1393
|
+
],
|
|
1394
|
+
]
|
|
1395
|
+
] = None,
|
|
1396
|
+
x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1397
|
+
y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1005
1398
|
z_axis_id: Optional[Union[Var[str], str]] = None,
|
|
1006
1399
|
line: Optional[Union[Var[bool], bool]] = None,
|
|
1007
1400
|
shape: Optional[
|
|
@@ -1027,24 +1420,39 @@ class Scatter(Cartesian):
|
|
|
1027
1420
|
] = None,
|
|
1028
1421
|
fill: Optional[Union[Var[Union[str, Color]], Union[str, Color]]] = None,
|
|
1029
1422
|
name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1030
|
-
|
|
1423
|
+
is_animation_active: Optional[Union[Var[bool], bool]] = None,
|
|
1424
|
+
animation_begin: Optional[Union[Var[int], int]] = None,
|
|
1425
|
+
animation_duration: Optional[Union[Var[int], int]] = None,
|
|
1426
|
+
animation_easing: Optional[
|
|
1031
1427
|
Union[
|
|
1032
|
-
Var[Literal["
|
|
1033
|
-
Literal["
|
|
1428
|
+
Var[Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]],
|
|
1429
|
+
Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"],
|
|
1034
1430
|
]
|
|
1035
1431
|
] = None,
|
|
1036
|
-
data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1037
|
-
x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1038
|
-
y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1039
1432
|
style: Optional[Style] = None,
|
|
1040
1433
|
key: Optional[Any] = None,
|
|
1041
1434
|
id: Optional[Any] = None,
|
|
1042
1435
|
class_name: Optional[Any] = None,
|
|
1043
1436
|
autofocus: Optional[bool] = None,
|
|
1044
1437
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1438
|
+
on_blur: Optional[
|
|
1439
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1440
|
+
] = None,
|
|
1045
1441
|
on_click: Optional[
|
|
1046
1442
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1047
1443
|
] = None,
|
|
1444
|
+
on_context_menu: Optional[
|
|
1445
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1446
|
+
] = None,
|
|
1447
|
+
on_double_click: Optional[
|
|
1448
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1449
|
+
] = None,
|
|
1450
|
+
on_focus: Optional[
|
|
1451
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1452
|
+
] = None,
|
|
1453
|
+
on_mount: Optional[
|
|
1454
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1455
|
+
] = None,
|
|
1048
1456
|
on_mouse_down: Optional[
|
|
1049
1457
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1050
1458
|
] = None,
|
|
@@ -1066,6 +1474,12 @@ class Scatter(Cartesian):
|
|
|
1066
1474
|
on_mouse_up: Optional[
|
|
1067
1475
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1068
1476
|
] = None,
|
|
1477
|
+
on_scroll: Optional[
|
|
1478
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1479
|
+
] = None,
|
|
1480
|
+
on_unmount: Optional[
|
|
1481
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1482
|
+
] = None,
|
|
1069
1483
|
**props
|
|
1070
1484
|
) -> "Scatter":
|
|
1071
1485
|
"""Create the component.
|
|
@@ -1073,17 +1487,20 @@ class Scatter(Cartesian):
|
|
|
1073
1487
|
Args:
|
|
1074
1488
|
*children: The children of the component.
|
|
1075
1489
|
data: The source data, in which each element is an object.
|
|
1490
|
+
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'
|
|
1491
|
+
x_axis_id: The id of x-axis which is corresponding to the data.
|
|
1492
|
+
y_axis_id: The id of y-axis which is corresponding to the data.
|
|
1076
1493
|
z_axis_id: The id of z-axis which is corresponding to the data.
|
|
1077
1494
|
line: If false set, line will not be drawn. If true set, line will be drawn which have the props calculated internally.
|
|
1078
1495
|
shape: If a string set, specified symbol will be used to show scatter item. 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye'
|
|
1079
1496
|
line_type: If 'joint' set, line will generated by just jointing all the points. If 'fitting' set, line will be generated by fitting algorithm. 'joint' | 'fitting'
|
|
1080
1497
|
fill: The fill
|
|
1081
1498
|
name: the name
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
style: The
|
|
1499
|
+
is_animation_active: If set false, animation of bar will be disabled.
|
|
1500
|
+
animation_begin: Specifies when the animation should begin, the unit of this option is ms, default 0.
|
|
1501
|
+
animation_duration: Specifies the duration of animation, the unit of this option is ms, default 1500.
|
|
1502
|
+
animation_easing: The type of easing function, default 'ease'
|
|
1503
|
+
style: The style of the component.
|
|
1087
1504
|
key: A unique key for the component.
|
|
1088
1505
|
id: The id for the component.
|
|
1089
1506
|
class_name: The class name for the component.
|
|
@@ -1096,14 +1513,48 @@ class Scatter(Cartesian):
|
|
|
1096
1513
|
"""
|
|
1097
1514
|
...
|
|
1098
1515
|
|
|
1099
|
-
class Funnel(
|
|
1100
|
-
def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
|
|
1516
|
+
class Funnel(Recharts):
|
|
1101
1517
|
@overload
|
|
1102
1518
|
@classmethod
|
|
1103
1519
|
def create( # type: ignore
|
|
1104
1520
|
cls,
|
|
1105
1521
|
*children,
|
|
1106
1522
|
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
1523
|
+
data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1524
|
+
name_key: Optional[Union[Var[str], str]] = None,
|
|
1525
|
+
legend_type: Optional[
|
|
1526
|
+
Union[
|
|
1527
|
+
Var[
|
|
1528
|
+
Literal[
|
|
1529
|
+
"line",
|
|
1530
|
+
"plainline",
|
|
1531
|
+
"square",
|
|
1532
|
+
"rect",
|
|
1533
|
+
"circle",
|
|
1534
|
+
"cross",
|
|
1535
|
+
"diamond",
|
|
1536
|
+
"star",
|
|
1537
|
+
"triangle",
|
|
1538
|
+
"wye",
|
|
1539
|
+
"none",
|
|
1540
|
+
]
|
|
1541
|
+
],
|
|
1542
|
+
Literal[
|
|
1543
|
+
"line",
|
|
1544
|
+
"plainline",
|
|
1545
|
+
"square",
|
|
1546
|
+
"rect",
|
|
1547
|
+
"circle",
|
|
1548
|
+
"cross",
|
|
1549
|
+
"diamond",
|
|
1550
|
+
"star",
|
|
1551
|
+
"triangle",
|
|
1552
|
+
"wye",
|
|
1553
|
+
"none",
|
|
1554
|
+
],
|
|
1555
|
+
]
|
|
1556
|
+
] = None,
|
|
1557
|
+
is_animation_active: Optional[Union[Var[bool], bool]] = None,
|
|
1107
1558
|
animation_begin: Optional[Union[Var[int], int]] = None,
|
|
1108
1559
|
animation_duration: Optional[Union[Var[int], int]] = None,
|
|
1109
1560
|
animation_easing: Optional[
|
|
@@ -1112,24 +1563,36 @@ class Funnel(Cartesian):
|
|
|
1112
1563
|
Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"],
|
|
1113
1564
|
]
|
|
1114
1565
|
] = None,
|
|
1115
|
-
layout: Optional[
|
|
1116
|
-
Union[
|
|
1117
|
-
Var[Literal["horizontal", "vertical"]],
|
|
1118
|
-
Literal["horizontal", "vertical"],
|
|
1119
|
-
]
|
|
1120
|
-
] = None,
|
|
1121
|
-
data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1122
|
-
x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1123
|
-
y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1124
1566
|
style: Optional[Style] = None,
|
|
1125
1567
|
key: Optional[Any] = None,
|
|
1126
1568
|
id: Optional[Any] = None,
|
|
1127
1569
|
class_name: Optional[Any] = None,
|
|
1128
1570
|
autofocus: Optional[bool] = None,
|
|
1129
1571
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1572
|
+
on_animation_end: Optional[
|
|
1573
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1574
|
+
] = None,
|
|
1575
|
+
on_animation_start: Optional[
|
|
1576
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1577
|
+
] = None,
|
|
1578
|
+
on_blur: Optional[
|
|
1579
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1580
|
+
] = None,
|
|
1130
1581
|
on_click: Optional[
|
|
1131
1582
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1132
1583
|
] = None,
|
|
1584
|
+
on_context_menu: Optional[
|
|
1585
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1586
|
+
] = None,
|
|
1587
|
+
on_double_click: Optional[
|
|
1588
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1589
|
+
] = None,
|
|
1590
|
+
on_focus: Optional[
|
|
1591
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1592
|
+
] = None,
|
|
1593
|
+
on_mount: Optional[
|
|
1594
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1595
|
+
] = None,
|
|
1133
1596
|
on_mouse_down: Optional[
|
|
1134
1597
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1135
1598
|
] = None,
|
|
@@ -1151,6 +1614,12 @@ class Funnel(Cartesian):
|
|
|
1151
1614
|
on_mouse_up: Optional[
|
|
1152
1615
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1153
1616
|
] = None,
|
|
1617
|
+
on_scroll: Optional[
|
|
1618
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1619
|
+
] = None,
|
|
1620
|
+
on_unmount: Optional[
|
|
1621
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1622
|
+
] = None,
|
|
1154
1623
|
**props
|
|
1155
1624
|
) -> "Funnel":
|
|
1156
1625
|
"""Create the component.
|
|
@@ -1158,14 +1627,14 @@ class Funnel(Cartesian):
|
|
|
1158
1627
|
Args:
|
|
1159
1628
|
*children: The children of the component.
|
|
1160
1629
|
data: The source data, in which each element is an object.
|
|
1630
|
+
data_key: The key of a group of data which should be unique in an area chart.
|
|
1631
|
+
name_key: The key or getter of a group of data which should be unique in a LineChart.
|
|
1632
|
+
legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered.
|
|
1633
|
+
is_animation_active: If set false, animation of line will be disabled.
|
|
1161
1634
|
animation_begin: Specifies when the animation should begin, the unit of this option is ms.
|
|
1162
1635
|
animation_duration: Specifies the duration of animation, the unit of this option is ms.
|
|
1163
1636
|
animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'
|
|
1164
|
-
|
|
1165
|
-
data_key: The key of a group of data which should be unique in an area chart.
|
|
1166
|
-
x_axis_id: The id of x-axis which is corresponding to the data.
|
|
1167
|
-
y_axis_id: The id of y-axis which is corresponding to the data.
|
|
1168
|
-
style: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none'optional legend_type: Var[LiteralLegendType] The style of the component.
|
|
1637
|
+
style: The style of the component.
|
|
1169
1638
|
key: A unique key for the component.
|
|
1170
1639
|
id: The id for the component.
|
|
1171
1640
|
class_name: The class name for the component.
|
|
@@ -1274,14 +1743,13 @@ class Reference(Recharts):
|
|
|
1274
1743
|
*children,
|
|
1275
1744
|
x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1276
1745
|
y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1277
|
-
x: Optional[Union[Var[str], str]] = None,
|
|
1278
|
-
y: Optional[Union[Var[str], str]] = None,
|
|
1279
1746
|
if_overflow: Optional[
|
|
1280
1747
|
Union[
|
|
1281
1748
|
Var[Literal["discard", "hidden", "visible", "extendDomain"]],
|
|
1282
1749
|
Literal["discard", "hidden", "visible", "extendDomain"],
|
|
1283
1750
|
]
|
|
1284
1751
|
] = None,
|
|
1752
|
+
label: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1285
1753
|
is_front: Optional[Union[Var[bool], bool]] = None,
|
|
1286
1754
|
style: Optional[Style] = None,
|
|
1287
1755
|
key: Optional[Any] = None,
|
|
@@ -1342,9 +1810,8 @@ class Reference(Recharts):
|
|
|
1342
1810
|
*children: The children of the component.
|
|
1343
1811
|
x_axis_id: The id of x-axis which is corresponding to the data.
|
|
1344
1812
|
y_axis_id: The id of y-axis which is corresponding to the data.
|
|
1345
|
-
x: If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn.
|
|
1346
|
-
y: If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn.
|
|
1347
1813
|
if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas.
|
|
1814
|
+
label: If set a string or a number, default label will be drawn, and the option is content.
|
|
1348
1815
|
is_front: If set true, the line will be rendered in front of bars in BarChart, etc.
|
|
1349
1816
|
style: The style of the component.
|
|
1350
1817
|
key: A unique key for the component.
|
|
@@ -1365,17 +1832,20 @@ class ReferenceLine(Reference):
|
|
|
1365
1832
|
def create( # type: ignore
|
|
1366
1833
|
cls,
|
|
1367
1834
|
*children,
|
|
1368
|
-
|
|
1835
|
+
x: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1836
|
+
y: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1837
|
+
stroke: Optional[Union[Var[Union[str, Color]], Union[str, Color]]] = None,
|
|
1838
|
+
stroke_width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1839
|
+
segment: Optional[List[Any]] = None,
|
|
1369
1840
|
x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1370
1841
|
y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1371
|
-
x: Optional[Union[Var[str], str]] = None,
|
|
1372
|
-
y: Optional[Union[Var[str], str]] = None,
|
|
1373
1842
|
if_overflow: Optional[
|
|
1374
1843
|
Union[
|
|
1375
1844
|
Var[Literal["discard", "hidden", "visible", "extendDomain"]],
|
|
1376
1845
|
Literal["discard", "hidden", "visible", "extendDomain"],
|
|
1377
1846
|
]
|
|
1378
1847
|
] = None,
|
|
1848
|
+
label: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1379
1849
|
is_front: Optional[Union[Var[bool], bool]] = None,
|
|
1380
1850
|
style: Optional[Style] = None,
|
|
1381
1851
|
key: Optional[Any] = None,
|
|
@@ -1434,12 +1904,15 @@ class ReferenceLine(Reference):
|
|
|
1434
1904
|
|
|
1435
1905
|
Args:
|
|
1436
1906
|
*children: The children of the component.
|
|
1907
|
+
x: If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn.
|
|
1908
|
+
y: If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn.
|
|
1909
|
+
stroke: The color of the reference line.
|
|
1437
1910
|
stroke_width: The width of the stroke.
|
|
1911
|
+
segment: Array of endpoints in { x, y } format. These endpoints would be used to draw the ReferenceLine.
|
|
1438
1912
|
x_axis_id: The id of x-axis which is corresponding to the data.
|
|
1439
1913
|
y_axis_id: The id of y-axis which is corresponding to the data.
|
|
1440
|
-
x: If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn.
|
|
1441
|
-
y: If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn.
|
|
1442
1914
|
if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas.
|
|
1915
|
+
label: If set a string or a number, default label will be drawn, and the option is content.
|
|
1443
1916
|
is_front: If set true, the line will be rendered in front of bars in BarChart, etc.
|
|
1444
1917
|
style: The style of the component.
|
|
1445
1918
|
key: A unique key for the component.
|
|
@@ -1455,22 +1928,25 @@ class ReferenceLine(Reference):
|
|
|
1455
1928
|
...
|
|
1456
1929
|
|
|
1457
1930
|
class ReferenceDot(Reference):
|
|
1458
|
-
def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
|
|
1459
1931
|
@overload
|
|
1460
1932
|
@classmethod
|
|
1461
1933
|
def create( # type: ignore
|
|
1462
1934
|
cls,
|
|
1463
1935
|
*children,
|
|
1936
|
+
x: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1937
|
+
y: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1938
|
+
r: Optional[Union[Var[int], int]] = None,
|
|
1939
|
+
fill: Optional[Union[Var[Union[str, Color]], Union[str, Color]]] = None,
|
|
1940
|
+
stroke: Optional[Union[Var[Union[str, Color]], Union[str, Color]]] = None,
|
|
1464
1941
|
x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1465
1942
|
y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1466
|
-
x: Optional[Union[Var[str], str]] = None,
|
|
1467
|
-
y: Optional[Union[Var[str], str]] = None,
|
|
1468
1943
|
if_overflow: Optional[
|
|
1469
1944
|
Union[
|
|
1470
1945
|
Var[Literal["discard", "hidden", "visible", "extendDomain"]],
|
|
1471
1946
|
Literal["discard", "hidden", "visible", "extendDomain"],
|
|
1472
1947
|
]
|
|
1473
1948
|
] = None,
|
|
1949
|
+
label: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
1474
1950
|
is_front: Optional[Union[Var[bool], bool]] = None,
|
|
1475
1951
|
style: Optional[Style] = None,
|
|
1476
1952
|
key: Optional[Any] = None,
|
|
@@ -1478,9 +1954,27 @@ class ReferenceDot(Reference):
|
|
|
1478
1954
|
class_name: Optional[Any] = None,
|
|
1479
1955
|
autofocus: Optional[bool] = None,
|
|
1480
1956
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1957
|
+
on_blur: Optional[
|
|
1958
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1959
|
+
] = None,
|
|
1481
1960
|
on_click: Optional[
|
|
1482
1961
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1483
1962
|
] = None,
|
|
1963
|
+
on_context_menu: Optional[
|
|
1964
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1965
|
+
] = None,
|
|
1966
|
+
on_double_click: Optional[
|
|
1967
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1968
|
+
] = None,
|
|
1969
|
+
on_focus: Optional[
|
|
1970
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1971
|
+
] = None,
|
|
1972
|
+
on_mount: Optional[
|
|
1973
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1974
|
+
] = None,
|
|
1975
|
+
on_mouse_down: Optional[
|
|
1976
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1977
|
+
] = None,
|
|
1484
1978
|
on_mouse_enter: Optional[
|
|
1485
1979
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1486
1980
|
] = None,
|
|
@@ -1496,17 +1990,30 @@ class ReferenceDot(Reference):
|
|
|
1496
1990
|
on_mouse_over: Optional[
|
|
1497
1991
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1498
1992
|
] = None,
|
|
1993
|
+
on_mouse_up: Optional[
|
|
1994
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1995
|
+
] = None,
|
|
1996
|
+
on_scroll: Optional[
|
|
1997
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1998
|
+
] = None,
|
|
1999
|
+
on_unmount: Optional[
|
|
2000
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
2001
|
+
] = None,
|
|
1499
2002
|
**props
|
|
1500
2003
|
) -> "ReferenceDot":
|
|
1501
2004
|
"""Create the component.
|
|
1502
2005
|
|
|
1503
2006
|
Args:
|
|
1504
2007
|
*children: The children of the component.
|
|
1505
|
-
x_axis_id: The id of x-axis which is corresponding to the data.
|
|
1506
|
-
y_axis_id: The id of y-axis which is corresponding to the data.
|
|
1507
2008
|
x: If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn.
|
|
1508
2009
|
y: If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn.
|
|
2010
|
+
r: The radius of dot.
|
|
2011
|
+
fill: The color of the area fill.
|
|
2012
|
+
stroke: The color of the line stroke.
|
|
2013
|
+
x_axis_id: The id of x-axis which is corresponding to the data.
|
|
2014
|
+
y_axis_id: The id of y-axis which is corresponding to the data.
|
|
1509
2015
|
if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas.
|
|
2016
|
+
label: If set a string or a number, default label will be drawn, and the option is content.
|
|
1510
2017
|
is_front: If set true, the line will be rendered in front of bars in BarChart, etc.
|
|
1511
2018
|
style: The style of the component.
|
|
1512
2019
|
key: A unique key for the component.
|
|
@@ -1714,8 +2221,14 @@ class CartesianGrid(Grid):
|
|
|
1714
2221
|
def create( # type: ignore
|
|
1715
2222
|
cls,
|
|
1716
2223
|
*children,
|
|
1717
|
-
horizontal: Optional[Union[Var[
|
|
1718
|
-
vertical: Optional[Union[Var[
|
|
2224
|
+
horizontal: Optional[Union[Var[bool], bool]] = None,
|
|
2225
|
+
vertical: Optional[Union[Var[bool], bool]] = None,
|
|
2226
|
+
vertical_points: Optional[
|
|
2227
|
+
Union[Var[List[Union[str, int]]], List[Union[str, int]]]
|
|
2228
|
+
] = None,
|
|
2229
|
+
horizontal_points: Optional[
|
|
2230
|
+
Union[Var[List[Union[str, int]]], List[Union[str, int]]]
|
|
2231
|
+
] = None,
|
|
1719
2232
|
fill: Optional[Union[Var[Union[str, Color]], Union[str, Color]]] = None,
|
|
1720
2233
|
fill_opacity: Optional[Union[Var[float], float]] = None,
|
|
1721
2234
|
stroke_dasharray: Optional[Union[Var[str], str]] = None,
|
|
@@ -1782,6 +2295,8 @@ class CartesianGrid(Grid):
|
|
|
1782
2295
|
*children: The children of the component.
|
|
1783
2296
|
horizontal: The horizontal line configuration.
|
|
1784
2297
|
vertical: The vertical line configuration.
|
|
2298
|
+
vertical_points: The x-coordinates in pixel values of all vertical lines.
|
|
2299
|
+
horizontal_points: The x-coordinates in pixel values of all vertical lines.
|
|
1785
2300
|
fill: The background of grid.
|
|
1786
2301
|
fill_opacity: The opacity of the background used to fill the space between grid lines
|
|
1787
2302
|
stroke_dasharray: The pattern of dashes and gaps used to paint the lines of the grid
|