reflex 0.5.4a3__py3-none-any.whl → 0.5.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/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 +38 -29
- 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.5.dist-info}/METADATA +3 -3
- {reflex-0.5.4a3.dist-info → reflex-0.5.5.dist-info}/RECORD +260 -260
- {reflex-0.5.4a3.dist-info → reflex-0.5.5.dist-info}/LICENSE +0 -0
- {reflex-0.5.4a3.dist-info → reflex-0.5.5.dist-info}/WHEEL +0 -0
- {reflex-0.5.4a3.dist-info → reflex-0.5.5.dist-info}/entry_points.txt +0 -0
|
@@ -23,41 +23,138 @@ from .recharts import (
|
|
|
23
23
|
)
|
|
24
24
|
|
|
25
25
|
class ChartBase(RechartsCharts):
|
|
26
|
-
|
|
26
|
+
@overload
|
|
27
|
+
@classmethod
|
|
28
|
+
def create( # type: ignore
|
|
29
|
+
cls,
|
|
30
|
+
*children,
|
|
31
|
+
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
32
|
+
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
33
|
+
style: Optional[Style] = None,
|
|
34
|
+
key: Optional[Any] = None,
|
|
35
|
+
id: Optional[Any] = None,
|
|
36
|
+
class_name: Optional[Any] = None,
|
|
37
|
+
autofocus: Optional[bool] = None,
|
|
38
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
39
|
+
on_blur: Optional[
|
|
40
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
41
|
+
] = None,
|
|
42
|
+
on_click: Optional[
|
|
43
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
44
|
+
] = None,
|
|
45
|
+
on_context_menu: Optional[
|
|
46
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
47
|
+
] = None,
|
|
48
|
+
on_double_click: Optional[
|
|
49
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
50
|
+
] = None,
|
|
51
|
+
on_focus: Optional[
|
|
52
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
53
|
+
] = None,
|
|
54
|
+
on_mount: Optional[
|
|
55
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
56
|
+
] = None,
|
|
57
|
+
on_mouse_down: Optional[
|
|
58
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
59
|
+
] = None,
|
|
60
|
+
on_mouse_enter: Optional[
|
|
61
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
62
|
+
] = None,
|
|
63
|
+
on_mouse_leave: Optional[
|
|
64
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
65
|
+
] = None,
|
|
66
|
+
on_mouse_move: Optional[
|
|
67
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
68
|
+
] = None,
|
|
69
|
+
on_mouse_out: Optional[
|
|
70
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
71
|
+
] = None,
|
|
72
|
+
on_mouse_over: Optional[
|
|
73
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
74
|
+
] = None,
|
|
75
|
+
on_mouse_up: Optional[
|
|
76
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
77
|
+
] = None,
|
|
78
|
+
on_scroll: Optional[
|
|
79
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
80
|
+
] = None,
|
|
81
|
+
on_unmount: Optional[
|
|
82
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
83
|
+
] = None,
|
|
84
|
+
**props
|
|
85
|
+
) -> "ChartBase":
|
|
86
|
+
"""Create a chart component.
|
|
87
|
+
|
|
88
|
+
Args:
|
|
89
|
+
*children: The children of the chart component.
|
|
90
|
+
width: The width of chart container. String or Integer
|
|
91
|
+
height: The height of chart container.
|
|
92
|
+
style: The style of the component.
|
|
93
|
+
key: A unique key for the component.
|
|
94
|
+
id: The id for the component.
|
|
95
|
+
class_name: The class name for the component.
|
|
96
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
97
|
+
custom_attrs: custom attribute
|
|
98
|
+
**props: The properties of the chart component.
|
|
99
|
+
|
|
100
|
+
Returns:
|
|
101
|
+
The chart component wrapped in a responsive container.
|
|
102
|
+
"""
|
|
103
|
+
...
|
|
104
|
+
|
|
105
|
+
class CategoricalChartBase(ChartBase):
|
|
27
106
|
@overload
|
|
28
107
|
@classmethod
|
|
29
108
|
def create( # type: ignore
|
|
30
109
|
cls,
|
|
31
110
|
*children,
|
|
32
111
|
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
112
|
+
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
33
113
|
sync_id: Optional[Union[Var[str], str]] = None,
|
|
34
114
|
sync_method: Optional[
|
|
35
115
|
Union[Var[Literal["index", "value"]], Literal["index", "value"]]
|
|
36
116
|
] = None,
|
|
37
|
-
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
38
|
-
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
39
117
|
layout: Optional[
|
|
40
118
|
Union[
|
|
41
119
|
Var[Literal["horizontal", "vertical"]],
|
|
42
120
|
Literal["horizontal", "vertical"],
|
|
43
121
|
]
|
|
44
122
|
] = None,
|
|
45
|
-
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
46
123
|
stack_offset: Optional[
|
|
47
124
|
Union[
|
|
48
125
|
Var[Literal["expand", "none", "wiggle", "silhouette"]],
|
|
49
126
|
Literal["expand", "none", "wiggle", "silhouette"],
|
|
50
127
|
]
|
|
51
128
|
] = None,
|
|
129
|
+
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
130
|
+
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
52
131
|
style: Optional[Style] = None,
|
|
53
132
|
key: Optional[Any] = None,
|
|
54
133
|
id: Optional[Any] = None,
|
|
55
134
|
class_name: Optional[Any] = None,
|
|
56
135
|
autofocus: Optional[bool] = None,
|
|
57
136
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
137
|
+
on_blur: Optional[
|
|
138
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
139
|
+
] = None,
|
|
58
140
|
on_click: Optional[
|
|
59
141
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
60
142
|
] = None,
|
|
143
|
+
on_context_menu: Optional[
|
|
144
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
145
|
+
] = None,
|
|
146
|
+
on_double_click: Optional[
|
|
147
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
148
|
+
] = None,
|
|
149
|
+
on_focus: Optional[
|
|
150
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
151
|
+
] = None,
|
|
152
|
+
on_mount: Optional[
|
|
153
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
154
|
+
] = None,
|
|
155
|
+
on_mouse_down: Optional[
|
|
156
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
157
|
+
] = None,
|
|
61
158
|
on_mouse_enter: Optional[
|
|
62
159
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
63
160
|
] = None,
|
|
@@ -67,20 +164,35 @@ class ChartBase(RechartsCharts):
|
|
|
67
164
|
on_mouse_move: Optional[
|
|
68
165
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
69
166
|
] = None,
|
|
167
|
+
on_mouse_out: Optional[
|
|
168
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
169
|
+
] = None,
|
|
170
|
+
on_mouse_over: Optional[
|
|
171
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
172
|
+
] = None,
|
|
173
|
+
on_mouse_up: Optional[
|
|
174
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
175
|
+
] = None,
|
|
176
|
+
on_scroll: Optional[
|
|
177
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
178
|
+
] = None,
|
|
179
|
+
on_unmount: Optional[
|
|
180
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
181
|
+
] = None,
|
|
70
182
|
**props
|
|
71
|
-
) -> "
|
|
183
|
+
) -> "CategoricalChartBase":
|
|
72
184
|
"""Create a chart component.
|
|
73
185
|
|
|
74
186
|
Args:
|
|
75
187
|
*children: The children of the chart component.
|
|
76
188
|
data: The source data, in which each element is an object.
|
|
189
|
+
margin: The sizes of whitespace around the chart.
|
|
77
190
|
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
78
191
|
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
79
|
-
width: The width of chart container. String or Integer
|
|
80
|
-
height: The height of chart container.
|
|
81
192
|
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
82
|
-
margin: The sizes of whitespace around the chart.
|
|
83
193
|
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
194
|
+
width: The width of chart container. String or Integer
|
|
195
|
+
height: The height of chart container.
|
|
84
196
|
style: The style of the component.
|
|
85
197
|
key: A unique key for the component.
|
|
86
198
|
id: The id for the component.
|
|
@@ -94,7 +206,7 @@ class ChartBase(RechartsCharts):
|
|
|
94
206
|
"""
|
|
95
207
|
...
|
|
96
208
|
|
|
97
|
-
class AreaChart(
|
|
209
|
+
class AreaChart(CategoricalChartBase):
|
|
98
210
|
@overload
|
|
99
211
|
@classmethod
|
|
100
212
|
def create( # type: ignore
|
|
@@ -107,34 +219,52 @@ class AreaChart(ChartBase):
|
|
|
107
219
|
]
|
|
108
220
|
] = None,
|
|
109
221
|
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
222
|
+
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
110
223
|
sync_id: Optional[Union[Var[str], str]] = None,
|
|
111
224
|
sync_method: Optional[
|
|
112
225
|
Union[Var[Literal["index", "value"]], Literal["index", "value"]]
|
|
113
226
|
] = None,
|
|
114
|
-
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
115
|
-
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
116
227
|
layout: Optional[
|
|
117
228
|
Union[
|
|
118
229
|
Var[Literal["horizontal", "vertical"]],
|
|
119
230
|
Literal["horizontal", "vertical"],
|
|
120
231
|
]
|
|
121
232
|
] = None,
|
|
122
|
-
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
123
233
|
stack_offset: Optional[
|
|
124
234
|
Union[
|
|
125
235
|
Var[Literal["expand", "none", "wiggle", "silhouette"]],
|
|
126
236
|
Literal["expand", "none", "wiggle", "silhouette"],
|
|
127
237
|
]
|
|
128
238
|
] = None,
|
|
239
|
+
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
240
|
+
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
129
241
|
style: Optional[Style] = None,
|
|
130
242
|
key: Optional[Any] = None,
|
|
131
243
|
id: Optional[Any] = None,
|
|
132
244
|
class_name: Optional[Any] = None,
|
|
133
245
|
autofocus: Optional[bool] = None,
|
|
134
246
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
247
|
+
on_blur: Optional[
|
|
248
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
249
|
+
] = None,
|
|
135
250
|
on_click: Optional[
|
|
136
251
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
137
252
|
] = None,
|
|
253
|
+
on_context_menu: Optional[
|
|
254
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
255
|
+
] = None,
|
|
256
|
+
on_double_click: Optional[
|
|
257
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
258
|
+
] = None,
|
|
259
|
+
on_focus: Optional[
|
|
260
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
261
|
+
] = None,
|
|
262
|
+
on_mount: Optional[
|
|
263
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
264
|
+
] = None,
|
|
265
|
+
on_mouse_down: Optional[
|
|
266
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
267
|
+
] = None,
|
|
138
268
|
on_mouse_enter: Optional[
|
|
139
269
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
140
270
|
] = None,
|
|
@@ -144,6 +274,21 @@ class AreaChart(ChartBase):
|
|
|
144
274
|
on_mouse_move: Optional[
|
|
145
275
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
146
276
|
] = None,
|
|
277
|
+
on_mouse_out: Optional[
|
|
278
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
279
|
+
] = None,
|
|
280
|
+
on_mouse_over: Optional[
|
|
281
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
282
|
+
] = None,
|
|
283
|
+
on_mouse_up: Optional[
|
|
284
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
285
|
+
] = None,
|
|
286
|
+
on_scroll: Optional[
|
|
287
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
288
|
+
] = None,
|
|
289
|
+
on_unmount: Optional[
|
|
290
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
291
|
+
] = None,
|
|
147
292
|
**props
|
|
148
293
|
) -> "AreaChart":
|
|
149
294
|
"""Create a chart component.
|
|
@@ -152,13 +297,13 @@ class AreaChart(ChartBase):
|
|
|
152
297
|
*children: The children of the chart component.
|
|
153
298
|
base_value: The base value of area. Number | 'dataMin' | 'dataMax' | 'auto'
|
|
154
299
|
data: The source data, in which each element is an object.
|
|
300
|
+
margin: The sizes of whitespace around the chart.
|
|
155
301
|
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
156
302
|
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
157
|
-
width: The width of chart container. String or Integer
|
|
158
|
-
height: The height of chart container.
|
|
159
303
|
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
160
|
-
margin: The sizes of whitespace around the chart.
|
|
161
304
|
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
305
|
+
width: The width of chart container. String or Integer
|
|
306
|
+
height: The height of chart container.
|
|
162
307
|
style: The style of the component.
|
|
163
308
|
key: A unique key for the component.
|
|
164
309
|
id: The id for the component.
|
|
@@ -172,7 +317,7 @@ class AreaChart(ChartBase):
|
|
|
172
317
|
"""
|
|
173
318
|
...
|
|
174
319
|
|
|
175
|
-
class BarChart(
|
|
320
|
+
class BarChart(CategoricalChartBase):
|
|
176
321
|
@overload
|
|
177
322
|
@classmethod
|
|
178
323
|
def create( # type: ignore
|
|
@@ -190,28 +335,46 @@ class BarChart(ChartBase):
|
|
|
190
335
|
] = None,
|
|
191
336
|
reverse_stack_order: Optional[Union[Var[bool], bool]] = None,
|
|
192
337
|
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
338
|
+
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
193
339
|
sync_id: Optional[Union[Var[str], str]] = None,
|
|
194
340
|
sync_method: Optional[
|
|
195
341
|
Union[Var[Literal["index", "value"]], Literal["index", "value"]]
|
|
196
342
|
] = None,
|
|
197
|
-
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
198
|
-
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
199
343
|
layout: Optional[
|
|
200
344
|
Union[
|
|
201
345
|
Var[Literal["horizontal", "vertical"]],
|
|
202
346
|
Literal["horizontal", "vertical"],
|
|
203
347
|
]
|
|
204
348
|
] = None,
|
|
205
|
-
|
|
349
|
+
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
350
|
+
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
206
351
|
style: Optional[Style] = None,
|
|
207
352
|
key: Optional[Any] = None,
|
|
208
353
|
id: Optional[Any] = None,
|
|
209
354
|
class_name: Optional[Any] = None,
|
|
210
355
|
autofocus: Optional[bool] = None,
|
|
211
356
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
357
|
+
on_blur: Optional[
|
|
358
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
359
|
+
] = None,
|
|
212
360
|
on_click: Optional[
|
|
213
361
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
214
362
|
] = None,
|
|
363
|
+
on_context_menu: Optional[
|
|
364
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
365
|
+
] = None,
|
|
366
|
+
on_double_click: Optional[
|
|
367
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
368
|
+
] = None,
|
|
369
|
+
on_focus: Optional[
|
|
370
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
371
|
+
] = None,
|
|
372
|
+
on_mount: Optional[
|
|
373
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
374
|
+
] = None,
|
|
375
|
+
on_mouse_down: Optional[
|
|
376
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
377
|
+
] = None,
|
|
215
378
|
on_mouse_enter: Optional[
|
|
216
379
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
217
380
|
] = None,
|
|
@@ -221,6 +384,21 @@ class BarChart(ChartBase):
|
|
|
221
384
|
on_mouse_move: Optional[
|
|
222
385
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
223
386
|
] = None,
|
|
387
|
+
on_mouse_out: Optional[
|
|
388
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
389
|
+
] = None,
|
|
390
|
+
on_mouse_over: Optional[
|
|
391
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
392
|
+
] = None,
|
|
393
|
+
on_mouse_up: Optional[
|
|
394
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
395
|
+
] = None,
|
|
396
|
+
on_scroll: Optional[
|
|
397
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
398
|
+
] = None,
|
|
399
|
+
on_unmount: Optional[
|
|
400
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
401
|
+
] = None,
|
|
224
402
|
**props
|
|
225
403
|
) -> "BarChart":
|
|
226
404
|
"""Create a chart component.
|
|
@@ -234,12 +412,12 @@ class BarChart(ChartBase):
|
|
|
234
412
|
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
235
413
|
reverse_stack_order: If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position.)
|
|
236
414
|
data: The source data, in which each element is an object.
|
|
415
|
+
margin: The sizes of whitespace around the chart.
|
|
237
416
|
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
238
417
|
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
418
|
+
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
239
419
|
width: The width of chart container. String or Integer
|
|
240
420
|
height: The height of chart container.
|
|
241
|
-
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
242
|
-
margin: The sizes of whitespace around the chart.
|
|
243
421
|
style: The style of the component.
|
|
244
422
|
key: A unique key for the component.
|
|
245
423
|
id: The id for the component.
|
|
@@ -253,41 +431,59 @@ class BarChart(ChartBase):
|
|
|
253
431
|
"""
|
|
254
432
|
...
|
|
255
433
|
|
|
256
|
-
class LineChart(
|
|
434
|
+
class LineChart(CategoricalChartBase):
|
|
257
435
|
@overload
|
|
258
436
|
@classmethod
|
|
259
437
|
def create( # type: ignore
|
|
260
438
|
cls,
|
|
261
439
|
*children,
|
|
262
440
|
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
441
|
+
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
263
442
|
sync_id: Optional[Union[Var[str], str]] = None,
|
|
264
443
|
sync_method: Optional[
|
|
265
444
|
Union[Var[Literal["index", "value"]], Literal["index", "value"]]
|
|
266
445
|
] = None,
|
|
267
|
-
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
268
|
-
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
269
446
|
layout: Optional[
|
|
270
447
|
Union[
|
|
271
448
|
Var[Literal["horizontal", "vertical"]],
|
|
272
449
|
Literal["horizontal", "vertical"],
|
|
273
450
|
]
|
|
274
451
|
] = None,
|
|
275
|
-
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
276
452
|
stack_offset: Optional[
|
|
277
453
|
Union[
|
|
278
454
|
Var[Literal["expand", "none", "wiggle", "silhouette"]],
|
|
279
455
|
Literal["expand", "none", "wiggle", "silhouette"],
|
|
280
456
|
]
|
|
281
457
|
] = None,
|
|
458
|
+
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
459
|
+
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
282
460
|
style: Optional[Style] = None,
|
|
283
461
|
key: Optional[Any] = None,
|
|
284
462
|
id: Optional[Any] = None,
|
|
285
463
|
class_name: Optional[Any] = None,
|
|
286
464
|
autofocus: Optional[bool] = None,
|
|
287
465
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
466
|
+
on_blur: Optional[
|
|
467
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
468
|
+
] = None,
|
|
288
469
|
on_click: Optional[
|
|
289
470
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
290
471
|
] = None,
|
|
472
|
+
on_context_menu: Optional[
|
|
473
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
474
|
+
] = None,
|
|
475
|
+
on_double_click: Optional[
|
|
476
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
477
|
+
] = None,
|
|
478
|
+
on_focus: Optional[
|
|
479
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
480
|
+
] = None,
|
|
481
|
+
on_mount: Optional[
|
|
482
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
483
|
+
] = None,
|
|
484
|
+
on_mouse_down: Optional[
|
|
485
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
486
|
+
] = None,
|
|
291
487
|
on_mouse_enter: Optional[
|
|
292
488
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
293
489
|
] = None,
|
|
@@ -297,6 +493,21 @@ class LineChart(ChartBase):
|
|
|
297
493
|
on_mouse_move: Optional[
|
|
298
494
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
299
495
|
] = None,
|
|
496
|
+
on_mouse_out: Optional[
|
|
497
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
498
|
+
] = None,
|
|
499
|
+
on_mouse_over: Optional[
|
|
500
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
501
|
+
] = None,
|
|
502
|
+
on_mouse_up: Optional[
|
|
503
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
504
|
+
] = None,
|
|
505
|
+
on_scroll: Optional[
|
|
506
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
507
|
+
] = None,
|
|
508
|
+
on_unmount: Optional[
|
|
509
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
510
|
+
] = None,
|
|
300
511
|
**props
|
|
301
512
|
) -> "LineChart":
|
|
302
513
|
"""Create a chart component.
|
|
@@ -304,13 +515,13 @@ class LineChart(ChartBase):
|
|
|
304
515
|
Args:
|
|
305
516
|
*children: The children of the chart component.
|
|
306
517
|
data: The source data, in which each element is an object.
|
|
518
|
+
margin: The sizes of whitespace around the chart.
|
|
307
519
|
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
308
520
|
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
309
|
-
width: The width of chart container. String or Integer
|
|
310
|
-
height: The height of chart container.
|
|
311
521
|
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
312
|
-
margin: The sizes of whitespace around the chart.
|
|
313
522
|
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
523
|
+
width: The width of chart container. String or Integer
|
|
524
|
+
height: The height of chart container.
|
|
314
525
|
style: The style of the component.
|
|
315
526
|
key: A unique key for the component.
|
|
316
527
|
id: The id for the component.
|
|
@@ -324,7 +535,7 @@ class LineChart(ChartBase):
|
|
|
324
535
|
"""
|
|
325
536
|
...
|
|
326
537
|
|
|
327
|
-
class ComposedChart(
|
|
538
|
+
class ComposedChart(CategoricalChartBase):
|
|
328
539
|
@overload
|
|
329
540
|
@classmethod
|
|
330
541
|
def create( # type: ignore
|
|
@@ -337,38 +548,56 @@ class ComposedChart(ChartBase):
|
|
|
337
548
|
]
|
|
338
549
|
] = None,
|
|
339
550
|
bar_category_gap: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
340
|
-
bar_gap: Optional[Union[Var[int], int]] = None,
|
|
551
|
+
bar_gap: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
341
552
|
bar_size: Optional[Union[Var[int], int]] = None,
|
|
342
553
|
reverse_stack_order: Optional[Union[Var[bool], bool]] = None,
|
|
343
554
|
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
555
|
+
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
344
556
|
sync_id: Optional[Union[Var[str], str]] = None,
|
|
345
557
|
sync_method: Optional[
|
|
346
558
|
Union[Var[Literal["index", "value"]], Literal["index", "value"]]
|
|
347
559
|
] = None,
|
|
348
|
-
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
349
|
-
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
350
560
|
layout: Optional[
|
|
351
561
|
Union[
|
|
352
562
|
Var[Literal["horizontal", "vertical"]],
|
|
353
563
|
Literal["horizontal", "vertical"],
|
|
354
564
|
]
|
|
355
565
|
] = None,
|
|
356
|
-
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
357
566
|
stack_offset: Optional[
|
|
358
567
|
Union[
|
|
359
568
|
Var[Literal["expand", "none", "wiggle", "silhouette"]],
|
|
360
569
|
Literal["expand", "none", "wiggle", "silhouette"],
|
|
361
570
|
]
|
|
362
571
|
] = None,
|
|
572
|
+
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
573
|
+
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
363
574
|
style: Optional[Style] = None,
|
|
364
575
|
key: Optional[Any] = None,
|
|
365
576
|
id: Optional[Any] = None,
|
|
366
577
|
class_name: Optional[Any] = None,
|
|
367
578
|
autofocus: Optional[bool] = None,
|
|
368
579
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
580
|
+
on_blur: Optional[
|
|
581
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
582
|
+
] = None,
|
|
369
583
|
on_click: Optional[
|
|
370
584
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
371
585
|
] = None,
|
|
586
|
+
on_context_menu: Optional[
|
|
587
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
588
|
+
] = None,
|
|
589
|
+
on_double_click: Optional[
|
|
590
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
591
|
+
] = None,
|
|
592
|
+
on_focus: Optional[
|
|
593
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
594
|
+
] = None,
|
|
595
|
+
on_mount: Optional[
|
|
596
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
597
|
+
] = None,
|
|
598
|
+
on_mouse_down: Optional[
|
|
599
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
600
|
+
] = None,
|
|
372
601
|
on_mouse_enter: Optional[
|
|
373
602
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
374
603
|
] = None,
|
|
@@ -378,6 +607,21 @@ class ComposedChart(ChartBase):
|
|
|
378
607
|
on_mouse_move: Optional[
|
|
379
608
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
380
609
|
] = None,
|
|
610
|
+
on_mouse_out: Optional[
|
|
611
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
612
|
+
] = None,
|
|
613
|
+
on_mouse_over: Optional[
|
|
614
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
615
|
+
] = None,
|
|
616
|
+
on_mouse_up: Optional[
|
|
617
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
618
|
+
] = None,
|
|
619
|
+
on_scroll: Optional[
|
|
620
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
621
|
+
] = None,
|
|
622
|
+
on_unmount: Optional[
|
|
623
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
624
|
+
] = None,
|
|
381
625
|
**props
|
|
382
626
|
) -> "ComposedChart":
|
|
383
627
|
"""Create a chart component.
|
|
@@ -390,13 +634,13 @@ class ComposedChart(ChartBase):
|
|
|
390
634
|
bar_size: The width of all the bars in the chart. Number
|
|
391
635
|
reverse_stack_order: If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position.)
|
|
392
636
|
data: The source data, in which each element is an object.
|
|
637
|
+
margin: The sizes of whitespace around the chart.
|
|
393
638
|
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
394
639
|
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
395
|
-
width: The width of chart container. String or Integer
|
|
396
|
-
height: The height of chart container.
|
|
397
640
|
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
398
|
-
margin: The sizes of whitespace around the chart.
|
|
399
641
|
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
642
|
+
width: The width of chart container. String or Integer
|
|
643
|
+
height: The height of chart container.
|
|
400
644
|
style: The style of the component.
|
|
401
645
|
key: A unique key for the component.
|
|
402
646
|
id: The id for the component.
|
|
@@ -411,61 +655,74 @@ class ComposedChart(ChartBase):
|
|
|
411
655
|
...
|
|
412
656
|
|
|
413
657
|
class PieChart(ChartBase):
|
|
414
|
-
def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
|
|
415
658
|
@overload
|
|
416
659
|
@classmethod
|
|
417
660
|
def create( # type: ignore
|
|
418
661
|
cls,
|
|
419
662
|
*children,
|
|
420
|
-
|
|
421
|
-
sync_id: Optional[Union[Var[str], str]] = None,
|
|
422
|
-
sync_method: Optional[
|
|
423
|
-
Union[Var[Literal["index", "value"]], Literal["index", "value"]]
|
|
424
|
-
] = None,
|
|
663
|
+
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
425
664
|
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
426
665
|
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
427
|
-
layout: Optional[
|
|
428
|
-
Union[
|
|
429
|
-
Var[Literal["horizontal", "vertical"]],
|
|
430
|
-
Literal["horizontal", "vertical"],
|
|
431
|
-
]
|
|
432
|
-
] = None,
|
|
433
|
-
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
434
|
-
stack_offset: Optional[
|
|
435
|
-
Union[
|
|
436
|
-
Var[Literal["expand", "none", "wiggle", "silhouette"]],
|
|
437
|
-
Literal["expand", "none", "wiggle", "silhouette"],
|
|
438
|
-
]
|
|
439
|
-
] = None,
|
|
440
666
|
style: Optional[Style] = None,
|
|
441
667
|
key: Optional[Any] = None,
|
|
442
668
|
id: Optional[Any] = None,
|
|
443
669
|
class_name: Optional[Any] = None,
|
|
444
670
|
autofocus: Optional[bool] = None,
|
|
445
671
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
672
|
+
on_blur: Optional[
|
|
673
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
674
|
+
] = None,
|
|
446
675
|
on_click: Optional[
|
|
447
676
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
448
677
|
] = None,
|
|
678
|
+
on_context_menu: Optional[
|
|
679
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
680
|
+
] = None,
|
|
681
|
+
on_double_click: Optional[
|
|
682
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
683
|
+
] = None,
|
|
684
|
+
on_focus: Optional[
|
|
685
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
686
|
+
] = None,
|
|
687
|
+
on_mount: Optional[
|
|
688
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
689
|
+
] = None,
|
|
690
|
+
on_mouse_down: Optional[
|
|
691
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
692
|
+
] = None,
|
|
449
693
|
on_mouse_enter: Optional[
|
|
450
694
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
451
695
|
] = None,
|
|
452
696
|
on_mouse_leave: Optional[
|
|
453
697
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
454
698
|
] = None,
|
|
699
|
+
on_mouse_move: Optional[
|
|
700
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
701
|
+
] = None,
|
|
702
|
+
on_mouse_out: Optional[
|
|
703
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
704
|
+
] = None,
|
|
705
|
+
on_mouse_over: Optional[
|
|
706
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
707
|
+
] = None,
|
|
708
|
+
on_mouse_up: Optional[
|
|
709
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
710
|
+
] = None,
|
|
711
|
+
on_scroll: Optional[
|
|
712
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
713
|
+
] = None,
|
|
714
|
+
on_unmount: Optional[
|
|
715
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
716
|
+
] = None,
|
|
455
717
|
**props
|
|
456
718
|
) -> "PieChart":
|
|
457
719
|
"""Create a chart component.
|
|
458
720
|
|
|
459
721
|
Args:
|
|
460
722
|
*children: The children of the chart component.
|
|
461
|
-
|
|
462
|
-
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
463
|
-
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
723
|
+
margin: The sizes of whitespace around the chart.
|
|
464
724
|
width: The width of chart container. String or Integer
|
|
465
725
|
height: The height of chart container.
|
|
466
|
-
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
467
|
-
margin: The sizes of whitespace around the chart.
|
|
468
|
-
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
469
726
|
style: The style of the component.
|
|
470
727
|
key: A unique key for the component.
|
|
471
728
|
id: The id for the component.
|
|
@@ -486,32 +743,16 @@ class RadarChart(ChartBase):
|
|
|
486
743
|
def create( # type: ignore
|
|
487
744
|
cls,
|
|
488
745
|
*children,
|
|
746
|
+
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
747
|
+
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
489
748
|
cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
|
|
490
749
|
cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
|
|
491
750
|
start_angle: Optional[Union[Var[int], int]] = None,
|
|
492
751
|
end_angle: Optional[Union[Var[int], int]] = None,
|
|
493
752
|
inner_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
|
|
494
753
|
outer_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
|
|
495
|
-
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
496
|
-
sync_id: Optional[Union[Var[str], str]] = None,
|
|
497
|
-
sync_method: Optional[
|
|
498
|
-
Union[Var[Literal["index", "value"]], Literal["index", "value"]]
|
|
499
|
-
] = None,
|
|
500
754
|
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
501
755
|
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
502
|
-
layout: Optional[
|
|
503
|
-
Union[
|
|
504
|
-
Var[Literal["horizontal", "vertical"]],
|
|
505
|
-
Literal["horizontal", "vertical"],
|
|
506
|
-
]
|
|
507
|
-
] = None,
|
|
508
|
-
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
509
|
-
stack_offset: Optional[
|
|
510
|
-
Union[
|
|
511
|
-
Var[Literal["expand", "none", "wiggle", "silhouette"]],
|
|
512
|
-
Literal["expand", "none", "wiggle", "silhouette"],
|
|
513
|
-
]
|
|
514
|
-
] = None,
|
|
515
756
|
style: Optional[Style] = None,
|
|
516
757
|
key: Optional[Any] = None,
|
|
517
758
|
id: Optional[Any] = None,
|
|
@@ -533,20 +774,16 @@ class RadarChart(ChartBase):
|
|
|
533
774
|
|
|
534
775
|
Args:
|
|
535
776
|
*children: The children of the chart component.
|
|
777
|
+
data: The source data, in which each element is an object.
|
|
778
|
+
margin: The sizes of whitespace around the chart.
|
|
536
779
|
cx: The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage
|
|
537
780
|
cy: The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage
|
|
538
781
|
start_angle: The angle of first radial direction line.
|
|
539
782
|
end_angle: The angle of last point in the circle which should be startAngle - 360 or startAngle + 360. We'll calculate the direction of chart by 'startAngle' and 'endAngle'.
|
|
540
783
|
inner_radius: The inner radius of first circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy. Number | Percentage
|
|
541
784
|
outer_radius: The outer radius of last circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy. Number | Percentage
|
|
542
|
-
data: The source data, in which each element is an object.
|
|
543
|
-
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
544
|
-
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
545
785
|
width: The width of chart container. String or Integer
|
|
546
786
|
height: The height of chart container.
|
|
547
|
-
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
548
|
-
margin: The sizes of whitespace around the chart.
|
|
549
|
-
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
550
787
|
style: The style of the component.
|
|
551
788
|
key: A unique key for the component.
|
|
552
789
|
id: The id for the component.
|
|
@@ -561,12 +798,13 @@ class RadarChart(ChartBase):
|
|
|
561
798
|
...
|
|
562
799
|
|
|
563
800
|
class RadialBarChart(ChartBase):
|
|
564
|
-
def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
|
|
565
801
|
@overload
|
|
566
802
|
@classmethod
|
|
567
803
|
def create( # type: ignore
|
|
568
804
|
cls,
|
|
569
805
|
*children,
|
|
806
|
+
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
807
|
+
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
570
808
|
cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
|
|
571
809
|
cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
|
|
572
810
|
start_angle: Optional[Union[Var[int], int]] = None,
|
|
@@ -576,47 +814,67 @@ class RadialBarChart(ChartBase):
|
|
|
576
814
|
bar_category_gap: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
|
|
577
815
|
bar_gap: Optional[Union[Var[str], str]] = None,
|
|
578
816
|
bar_size: Optional[Union[Var[int], int]] = None,
|
|
579
|
-
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
580
|
-
sync_id: Optional[Union[Var[str], str]] = None,
|
|
581
|
-
sync_method: Optional[
|
|
582
|
-
Union[Var[Literal["index", "value"]], Literal["index", "value"]]
|
|
583
|
-
] = None,
|
|
584
817
|
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
585
818
|
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
586
|
-
layout: Optional[
|
|
587
|
-
Union[
|
|
588
|
-
Var[Literal["horizontal", "vertical"]],
|
|
589
|
-
Literal["horizontal", "vertical"],
|
|
590
|
-
]
|
|
591
|
-
] = None,
|
|
592
|
-
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
593
|
-
stack_offset: Optional[
|
|
594
|
-
Union[
|
|
595
|
-
Var[Literal["expand", "none", "wiggle", "silhouette"]],
|
|
596
|
-
Literal["expand", "none", "wiggle", "silhouette"],
|
|
597
|
-
]
|
|
598
|
-
] = None,
|
|
599
819
|
style: Optional[Style] = None,
|
|
600
820
|
key: Optional[Any] = None,
|
|
601
821
|
id: Optional[Any] = None,
|
|
602
822
|
class_name: Optional[Any] = None,
|
|
603
823
|
autofocus: Optional[bool] = None,
|
|
604
824
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
825
|
+
on_blur: Optional[
|
|
826
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
827
|
+
] = None,
|
|
605
828
|
on_click: Optional[
|
|
606
829
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
607
830
|
] = None,
|
|
831
|
+
on_context_menu: Optional[
|
|
832
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
833
|
+
] = None,
|
|
834
|
+
on_double_click: Optional[
|
|
835
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
836
|
+
] = None,
|
|
837
|
+
on_focus: Optional[
|
|
838
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
839
|
+
] = None,
|
|
840
|
+
on_mount: Optional[
|
|
841
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
842
|
+
] = None,
|
|
843
|
+
on_mouse_down: Optional[
|
|
844
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
845
|
+
] = None,
|
|
608
846
|
on_mouse_enter: Optional[
|
|
609
847
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
610
848
|
] = None,
|
|
611
849
|
on_mouse_leave: Optional[
|
|
612
850
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
613
851
|
] = None,
|
|
852
|
+
on_mouse_move: Optional[
|
|
853
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
854
|
+
] = None,
|
|
855
|
+
on_mouse_out: Optional[
|
|
856
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
857
|
+
] = None,
|
|
858
|
+
on_mouse_over: Optional[
|
|
859
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
860
|
+
] = None,
|
|
861
|
+
on_mouse_up: Optional[
|
|
862
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
863
|
+
] = None,
|
|
864
|
+
on_scroll: Optional[
|
|
865
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
866
|
+
] = None,
|
|
867
|
+
on_unmount: Optional[
|
|
868
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
869
|
+
] = None,
|
|
614
870
|
**props
|
|
615
871
|
) -> "RadialBarChart":
|
|
616
872
|
"""Create a chart component.
|
|
617
873
|
|
|
618
874
|
Args:
|
|
619
875
|
*children: The children of the chart component.
|
|
876
|
+
data: The source data which each element is an object.
|
|
877
|
+
margin: The sizes of whitespace around the chart.
|
|
620
878
|
cx: The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage
|
|
621
879
|
cy: The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage
|
|
622
880
|
start_angle: The angle of first radial direction line.
|
|
@@ -626,14 +884,8 @@ class RadialBarChart(ChartBase):
|
|
|
626
884
|
bar_category_gap: The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number
|
|
627
885
|
bar_gap: The gap between two bars in the same category, which can be a percent value or a fixed value. Percentage | Number
|
|
628
886
|
bar_size: The size of each bar. If the barSize is not specified, the size of bar will be calculated by the barCategoryGap, barGap and the quantity of bar groups.
|
|
629
|
-
data: The source data, in which each element is an object.
|
|
630
|
-
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
631
|
-
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
632
887
|
width: The width of chart container. String or Integer
|
|
633
888
|
height: The height of chart container.
|
|
634
|
-
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
635
|
-
margin: The sizes of whitespace around the chart.
|
|
636
|
-
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
637
889
|
style: The style of the component.
|
|
638
890
|
key: A unique key for the component.
|
|
639
891
|
id: The id for the component.
|
|
@@ -654,26 +906,9 @@ class ScatterChart(ChartBase):
|
|
|
654
906
|
def create( # type: ignore
|
|
655
907
|
cls,
|
|
656
908
|
*children,
|
|
657
|
-
|
|
658
|
-
sync_id: Optional[Union[Var[str], str]] = None,
|
|
659
|
-
sync_method: Optional[
|
|
660
|
-
Union[Var[Literal["index", "value"]], Literal["index", "value"]]
|
|
661
|
-
] = None,
|
|
909
|
+
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
662
910
|
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
663
911
|
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
664
|
-
layout: Optional[
|
|
665
|
-
Union[
|
|
666
|
-
Var[Literal["horizontal", "vertical"]],
|
|
667
|
-
Literal["horizontal", "vertical"],
|
|
668
|
-
]
|
|
669
|
-
] = None,
|
|
670
|
-
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
671
|
-
stack_offset: Optional[
|
|
672
|
-
Union[
|
|
673
|
-
Var[Literal["expand", "none", "wiggle", "silhouette"]],
|
|
674
|
-
Literal["expand", "none", "wiggle", "silhouette"],
|
|
675
|
-
]
|
|
676
|
-
] = None,
|
|
677
912
|
style: Optional[Style] = None,
|
|
678
913
|
key: Optional[Any] = None,
|
|
679
914
|
id: Optional[Any] = None,
|
|
@@ -710,14 +945,9 @@ class ScatterChart(ChartBase):
|
|
|
710
945
|
|
|
711
946
|
Args:
|
|
712
947
|
*children: The children of the chart component.
|
|
713
|
-
|
|
714
|
-
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
715
|
-
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
948
|
+
margin: The sizes of whitespace around the chart.
|
|
716
949
|
width: The width of chart container. String or Integer
|
|
717
950
|
height: The height of chart container.
|
|
718
|
-
layout: The layout of area in the chart. 'horizontal' | 'vertical'
|
|
719
|
-
margin: The sizes of whitespace around the chart.
|
|
720
|
-
stack_offset: The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
721
951
|
style: The style of the component.
|
|
722
952
|
key: A unique key for the component.
|
|
723
953
|
id: The id for the component.
|
|
@@ -731,25 +961,16 @@ class ScatterChart(ChartBase):
|
|
|
731
961
|
"""
|
|
732
962
|
...
|
|
733
963
|
|
|
734
|
-
class FunnelChart(
|
|
964
|
+
class FunnelChart(ChartBase):
|
|
735
965
|
@overload
|
|
736
966
|
@classmethod
|
|
737
967
|
def create( # type: ignore
|
|
738
968
|
cls,
|
|
739
969
|
*children,
|
|
740
|
-
data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
|
|
741
|
-
sync_id: Optional[Union[Var[str], str]] = None,
|
|
742
|
-
sync_method: Optional[Union[Var[str], str]] = None,
|
|
743
|
-
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
744
|
-
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
745
970
|
layout: Optional[Union[Var[str], str]] = None,
|
|
746
971
|
margin: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None,
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
Var[Literal["expand", "none", "wiggle", "silhouette"]],
|
|
750
|
-
Literal["expand", "none", "wiggle", "silhouette"],
|
|
751
|
-
]
|
|
752
|
-
] = None,
|
|
972
|
+
width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
973
|
+
height: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
|
|
753
974
|
style: Optional[Style] = None,
|
|
754
975
|
key: Optional[Any] = None,
|
|
755
976
|
id: Optional[Any] = None,
|
|
@@ -803,28 +1024,24 @@ class FunnelChart(RechartsCharts):
|
|
|
803
1024
|
] = None,
|
|
804
1025
|
**props
|
|
805
1026
|
) -> "FunnelChart":
|
|
806
|
-
"""Create a
|
|
1027
|
+
"""Create a chart component.
|
|
807
1028
|
|
|
808
1029
|
Args:
|
|
809
|
-
*children: The children of the component.
|
|
810
|
-
data: The source data, in which each element is an object.
|
|
811
|
-
sync_id: If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
812
|
-
sync_method: When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
813
|
-
width: The width of chart container. String or Integer
|
|
814
|
-
height: The height of chart container.
|
|
1030
|
+
*children: The children of the chart component.
|
|
815
1031
|
layout: The layout of bars in the chart. centeric
|
|
816
1032
|
margin: The sizes of whitespace around the chart.
|
|
817
|
-
|
|
1033
|
+
width: The width of chart container. String or Integer
|
|
1034
|
+
height: The height of chart container.
|
|
818
1035
|
style: The style of the component.
|
|
819
1036
|
key: A unique key for the component.
|
|
820
1037
|
id: The id for the component.
|
|
821
1038
|
class_name: The class name for the component.
|
|
822
1039
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
823
1040
|
custom_attrs: custom attribute
|
|
824
|
-
**props: The
|
|
1041
|
+
**props: The properties of the chart component.
|
|
825
1042
|
|
|
826
1043
|
Returns:
|
|
827
|
-
The
|
|
1044
|
+
The chart component wrapped in a responsive container.
|
|
828
1045
|
"""
|
|
829
1046
|
...
|
|
830
1047
|
|