reflex 0.6.2.post1__py3-none-any.whl → 0.6.3a1__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/__init__.py +3 -2
- reflex/__init__.pyi +3 -1
- reflex/components/base/app_wrap.pyi +17 -37
- reflex/components/base/body.pyi +17 -37
- reflex/components/base/document.pyi +77 -177
- reflex/components/base/error_boundary.pyi +18 -38
- reflex/components/base/fragment.pyi +17 -37
- reflex/components/base/head.pyi +32 -72
- reflex/components/base/link.pyi +32 -72
- reflex/components/base/meta.pyi +62 -142
- reflex/components/base/script.py +4 -4
- reflex/components/base/script.pyi +20 -40
- reflex/components/component.py +12 -2
- reflex/components/core/banner.pyi +77 -177
- reflex/components/core/client_side_routing.pyi +32 -72
- reflex/components/core/clipboard.py +3 -3
- reflex/components/core/clipboard.pyi +18 -38
- reflex/components/core/debounce.py +2 -2
- reflex/components/core/debounce.pyi +18 -38
- reflex/components/core/html.pyi +17 -37
- reflex/components/core/upload.py +4 -5
- reflex/components/core/upload.pyi +65 -145
- reflex/components/datadisplay/code.pyi +32 -72
- reflex/components/datadisplay/dataeditor.py +13 -13
- reflex/components/datadisplay/dataeditor.pyi +33 -83
- reflex/components/dynamic.py +6 -7
- reflex/components/el/__init__.pyi +1 -0
- reflex/components/el/element.pyi +17 -37
- reflex/components/el/elements/base.pyi +17 -37
- reflex/components/el/elements/forms.py +29 -14
- reflex/components/el/elements/forms.pyi +222 -504
- reflex/components/el/elements/inline.pyi +422 -982
- reflex/components/el/elements/media.pyi +377 -877
- reflex/components/el/elements/metadata.pyi +92 -212
- reflex/components/el/elements/other.pyi +107 -247
- reflex/components/el/elements/scripts.pyi +47 -107
- reflex/components/el/elements/sectioning.pyi +227 -527
- reflex/components/el/elements/tables.pyi +152 -352
- reflex/components/el/elements/typography.pyi +227 -527
- reflex/components/gridjs/datatable.py +2 -2
- reflex/components/gridjs/datatable.pyi +32 -72
- reflex/components/lucide/icon.pyi +32 -72
- reflex/components/markdown/markdown.pyi +16 -36
- reflex/components/moment/moment.py +2 -2
- reflex/components/moment/moment.pyi +18 -38
- reflex/components/next/base.pyi +17 -37
- reflex/components/next/image.py +3 -3
- reflex/components/next/image.pyi +19 -39
- reflex/components/next/link.pyi +17 -37
- reflex/components/next/video.pyi +17 -37
- reflex/components/plotly/plotly.py +1 -1
- reflex/components/plotly/plotly.pyi +35 -87
- reflex/components/radix/primitives/accordion.py +14 -2
- reflex/components/radix/primitives/accordion.pyi +110 -250
- reflex/components/radix/primitives/base.pyi +32 -72
- reflex/components/radix/primitives/drawer.py +30 -12
- reflex/components/radix/primitives/drawer.pyi +159 -373
- reflex/components/radix/primitives/form.py +3 -3
- reflex/components/radix/primitives/form.pyi +158 -364
- reflex/components/radix/primitives/progress.pyi +77 -177
- reflex/components/radix/primitives/slider.py +17 -3
- reflex/components/radix/primitives/slider.pyi +81 -183
- reflex/components/radix/themes/base.pyi +107 -247
- reflex/components/radix/themes/color_mode.pyi +48 -117
- reflex/components/radix/themes/components/alert_dialog.py +5 -5
- reflex/components/radix/themes/components/alert_dialog.pyi +111 -259
- reflex/components/radix/themes/components/aspect_ratio.pyi +17 -37
- reflex/components/radix/themes/components/avatar.pyi +17 -37
- reflex/components/radix/themes/components/badge.pyi +17 -37
- reflex/components/radix/themes/components/button.pyi +17 -37
- reflex/components/radix/themes/components/callout.pyi +77 -177
- reflex/components/radix/themes/components/card.pyi +17 -37
- reflex/components/radix/themes/components/checkbox.py +3 -3
- reflex/components/radix/themes/components/checkbox.pyi +50 -110
- reflex/components/radix/themes/components/checkbox_cards.pyi +32 -72
- reflex/components/radix/themes/components/checkbox_group.pyi +32 -72
- reflex/components/radix/themes/components/context_menu.py +11 -11
- reflex/components/radix/themes/components/context_menu.pyi +132 -312
- reflex/components/radix/themes/components/data_list.pyi +62 -142
- reflex/components/radix/themes/components/dialog.py +7 -7
- reflex/components/radix/themes/components/dialog.pyi +114 -268
- reflex/components/radix/themes/components/dropdown_menu.py +13 -13
- reflex/components/radix/themes/components/dropdown_menu.pyi +134 -316
- reflex/components/radix/themes/components/hover_card.py +2 -2
- reflex/components/radix/themes/components/hover_card.pyi +64 -148
- reflex/components/radix/themes/components/icon_button.pyi +17 -37
- reflex/components/radix/themes/components/inset.pyi +17 -37
- reflex/components/radix/themes/components/popover.py +8 -8
- reflex/components/radix/themes/components/popover.pyi +69 -163
- reflex/components/radix/themes/components/progress.pyi +17 -37
- reflex/components/radix/themes/components/radio.pyi +17 -37
- reflex/components/radix/themes/components/radio_cards.py +2 -2
- reflex/components/radix/themes/components/radio_cards.pyi +33 -75
- reflex/components/radix/themes/components/radio_group.py +4 -4
- reflex/components/radix/themes/components/radio_group.pyi +63 -143
- reflex/components/radix/themes/components/scroll_area.pyi +17 -37
- reflex/components/radix/themes/components/segmented_control.py +14 -2
- reflex/components/radix/themes/components/segmented_control.pyi +35 -73
- reflex/components/radix/themes/components/select.py +6 -5
- reflex/components/radix/themes/components/select.pyi +146 -338
- reflex/components/radix/themes/components/separator.pyi +17 -37
- reflex/components/radix/themes/components/skeleton.pyi +17 -37
- reflex/components/radix/themes/components/slider.py +19 -3
- reflex/components/radix/themes/components/slider.pyi +23 -41
- reflex/components/radix/themes/components/spinner.pyi +17 -37
- reflex/components/radix/themes/components/switch.py +2 -2
- reflex/components/radix/themes/components/switch.pyi +18 -38
- reflex/components/radix/themes/components/table.pyi +107 -247
- reflex/components/radix/themes/components/tabs.py +2 -2
- reflex/components/radix/themes/components/tabs.pyi +79 -179
- reflex/components/radix/themes/components/text_area.py +0 -16
- reflex/components/radix/themes/components/text_area.pyi +20 -42
- reflex/components/radix/themes/components/text_field.py +6 -6
- reflex/components/radix/themes/components/text_field.pyi +53 -117
- reflex/components/radix/themes/components/tooltip.py +4 -4
- reflex/components/radix/themes/components/tooltip.pyi +20 -46
- reflex/components/radix/themes/layout/base.pyi +17 -37
- reflex/components/radix/themes/layout/box.pyi +17 -37
- reflex/components/radix/themes/layout/center.pyi +17 -37
- reflex/components/radix/themes/layout/container.pyi +17 -37
- reflex/components/radix/themes/layout/flex.pyi +17 -37
- reflex/components/radix/themes/layout/grid.pyi +17 -37
- reflex/components/radix/themes/layout/list.pyi +77 -177
- reflex/components/radix/themes/layout/section.pyi +17 -37
- reflex/components/radix/themes/layout/spacer.pyi +17 -37
- reflex/components/radix/themes/layout/stack.pyi +47 -107
- reflex/components/radix/themes/typography/blockquote.pyi +17 -37
- reflex/components/radix/themes/typography/code.pyi +17 -37
- reflex/components/radix/themes/typography/heading.pyi +17 -37
- reflex/components/radix/themes/typography/link.pyi +17 -37
- reflex/components/radix/themes/typography/text.pyi +107 -247
- reflex/components/react_player/audio.pyi +33 -69
- reflex/components/react_player/react_player.py +17 -17
- reflex/components/react_player/react_player.pyi +33 -69
- reflex/components/react_player/video.pyi +33 -69
- reflex/components/recharts/cartesian.py +215 -185
- reflex/components/recharts/cartesian.pyi +623 -832
- reflex/components/recharts/charts.py +57 -54
- reflex/components/recharts/charts.pyi +213 -433
- reflex/components/recharts/general.py +27 -21
- reflex/components/recharts/general.pyi +94 -189
- reflex/components/recharts/polar.py +115 -77
- reflex/components/recharts/polar.pyi +219 -229
- reflex/components/recharts/recharts.py +5 -1
- reflex/components/recharts/recharts.pyi +37 -73
- reflex/components/sonner/toast.py +1 -1
- reflex/components/sonner/toast.pyi +17 -37
- reflex/components/suneditor/editor.pyi +26 -52
- reflex/components/tags/iter_tag.py +2 -2
- reflex/config.py +16 -0
- reflex/constants/__init__.py +2 -0
- reflex/constants/compiler.py +25 -0
- reflex/constants/installer.py +17 -16
- reflex/constants/state.py +11 -0
- reflex/constants/style.py +1 -1
- reflex/event.py +237 -18
- reflex/experimental/layout.pyi +78 -180
- reflex/istate/dynamic.py +3 -0
- reflex/state.py +195 -118
- reflex/testing.py +8 -5
- reflex/utils/compat.py +1 -3
- reflex/utils/exceptions.py +8 -0
- reflex/utils/path_ops.py +2 -2
- reflex/utils/prerequisites.py +2 -2
- reflex/utils/pyi_generator.py +44 -4
- reflex/utils/registry.py +17 -3
- reflex/utils/telemetry.py +1 -3
- reflex/utils/types.py +60 -16
- reflex/vars/__init__.py +2 -0
- reflex/vars/base.py +127 -72
- reflex/vars/object.py +5 -1
- reflex/vars/sequence.py +10 -1
- {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/METADATA +3 -3
- {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/RECORD +177 -175
- {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/LICENSE +0 -0
- {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/WHEEL +0 -0
- {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/entry_points.txt +0 -0
|
@@ -6,7 +6,7 @@ from typing import Any, Dict, List, Union
|
|
|
6
6
|
|
|
7
7
|
from reflex.constants import EventTriggers
|
|
8
8
|
from reflex.constants.colors import Color
|
|
9
|
-
from reflex.event import EventHandler
|
|
9
|
+
from reflex.event import EventHandler, empty_event
|
|
10
10
|
from reflex.vars.base import LiteralVar, Var
|
|
11
11
|
|
|
12
12
|
from .recharts import (
|
|
@@ -15,6 +15,7 @@ from .recharts import (
|
|
|
15
15
|
LiteralDirection,
|
|
16
16
|
LiteralIfOverflow,
|
|
17
17
|
LiteralInterval,
|
|
18
|
+
LiteralIntervalAxis,
|
|
18
19
|
LiteralLayout,
|
|
19
20
|
LiteralLegendType,
|
|
20
21
|
LiteralLineType,
|
|
@@ -24,6 +25,7 @@ from .recharts import (
|
|
|
24
25
|
LiteralPolarRadiusType,
|
|
25
26
|
LiteralScale,
|
|
26
27
|
LiteralShape,
|
|
28
|
+
LiteralTextAnchor,
|
|
27
29
|
Recharts,
|
|
28
30
|
)
|
|
29
31
|
|
|
@@ -34,7 +36,7 @@ class Axis(Recharts):
|
|
|
34
36
|
# The key of data displayed in the axis.
|
|
35
37
|
data_key: Var[Union[str, int]]
|
|
36
38
|
|
|
37
|
-
# If set true, the axis do not display in the chart.
|
|
39
|
+
# If set true, the axis do not display in the chart. Default: False
|
|
38
40
|
hide: Var[bool]
|
|
39
41
|
|
|
40
42
|
# The width of axis which is usually calculated internally.
|
|
@@ -46,28 +48,34 @@ class Axis(Recharts):
|
|
|
46
48
|
# The type of axis 'number' | 'category'
|
|
47
49
|
type_: Var[LiteralPolarRadiusType]
|
|
48
50
|
|
|
49
|
-
#
|
|
51
|
+
# If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically. Default: "preserveEnd"
|
|
52
|
+
interval: Var[Union[LiteralIntervalAxis, int]]
|
|
53
|
+
|
|
54
|
+
# Allow the ticks of Axis to be decimals or not. Default: True
|
|
50
55
|
allow_decimals: Var[bool]
|
|
51
56
|
|
|
52
|
-
# 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.
|
|
57
|
+
# 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. Default: False
|
|
53
58
|
allow_data_overflow: Var[bool]
|
|
54
59
|
|
|
55
|
-
# Allow the axis has duplicated categorys or not when the type of axis is "category".
|
|
60
|
+
# Allow the axis has duplicated categorys or not when the type of axis is "category". Default: True
|
|
56
61
|
allow_duplicated_category: Var[bool]
|
|
57
62
|
|
|
58
|
-
#
|
|
63
|
+
# The range of the axis. Work best in conjuction with allow_data_overflow. Default: [0, "auto"]
|
|
64
|
+
domain: Var[List]
|
|
65
|
+
|
|
66
|
+
# If set false, no axis line will be drawn. Default: True
|
|
59
67
|
axis_line: Var[bool]
|
|
60
68
|
|
|
61
|
-
# If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside.
|
|
69
|
+
# If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. Default: False
|
|
62
70
|
mirror: Var[bool]
|
|
63
71
|
|
|
64
|
-
# Reverse the ticks or not.
|
|
72
|
+
# Reverse the ticks or not. Default: False
|
|
65
73
|
reversed: Var[bool]
|
|
66
74
|
|
|
67
75
|
# The label of axis, which appears next to the axis.
|
|
68
76
|
label: Var[Union[str, int, Dict[str, Any]]]
|
|
69
77
|
|
|
70
|
-
# 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'
|
|
78
|
+
# 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'. Default: "auto"
|
|
71
79
|
scale: Var[LiteralScale]
|
|
72
80
|
|
|
73
81
|
# The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
|
|
@@ -82,44 +90,44 @@ class Axis(Recharts):
|
|
|
82
90
|
# If set false, no ticks will be drawn.
|
|
83
91
|
tick: Var[bool]
|
|
84
92
|
|
|
85
|
-
# The count of axis ticks.
|
|
93
|
+
# The count of axis ticks. Not used if 'type' is 'category'. Default: 5
|
|
86
94
|
tick_count: Var[int]
|
|
87
95
|
|
|
88
|
-
# If set false, no axis tick lines will be drawn.
|
|
89
|
-
tick_line: Var[bool]
|
|
96
|
+
# If set false, no axis tick lines will be drawn. Default: True
|
|
97
|
+
tick_line: Var[bool]
|
|
90
98
|
|
|
91
|
-
# The length of tick line.
|
|
99
|
+
# The length of tick line. Default: 6
|
|
92
100
|
tick_size: Var[int]
|
|
93
101
|
|
|
94
|
-
# The minimum gap between two adjacent labels
|
|
102
|
+
# The minimum gap between two adjacent labels. Default: 5
|
|
95
103
|
min_tick_gap: Var[int]
|
|
96
104
|
|
|
97
|
-
# The stroke color of axis
|
|
105
|
+
# The stroke color of axis. Default: rx.color("gray", 9)
|
|
98
106
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 9))
|
|
99
107
|
|
|
100
|
-
# The text anchor of axis
|
|
101
|
-
text_anchor: Var[
|
|
108
|
+
# The text anchor of axis. Default: "middle"
|
|
109
|
+
text_anchor: Var[LiteralTextAnchor]
|
|
102
110
|
|
|
103
111
|
# The customized event handler of click on the ticks of this axis
|
|
104
|
-
on_click: EventHandler[
|
|
112
|
+
on_click: EventHandler[empty_event]
|
|
105
113
|
|
|
106
114
|
# The customized event handler of mousedown on the ticks of this axis
|
|
107
|
-
on_mouse_down: EventHandler[
|
|
115
|
+
on_mouse_down: EventHandler[empty_event]
|
|
108
116
|
|
|
109
117
|
# The customized event handler of mouseup on the ticks of this axis
|
|
110
|
-
on_mouse_up: EventHandler[
|
|
118
|
+
on_mouse_up: EventHandler[empty_event]
|
|
111
119
|
|
|
112
120
|
# The customized event handler of mousemove on the ticks of this axis
|
|
113
|
-
on_mouse_move: EventHandler[
|
|
121
|
+
on_mouse_move: EventHandler[empty_event]
|
|
114
122
|
|
|
115
123
|
# The customized event handler of mouseout on the ticks of this axis
|
|
116
|
-
on_mouse_out: EventHandler[
|
|
124
|
+
on_mouse_out: EventHandler[empty_event]
|
|
117
125
|
|
|
118
126
|
# The customized event handler of mouseenter on the ticks of this axis
|
|
119
|
-
on_mouse_enter: EventHandler[
|
|
127
|
+
on_mouse_enter: EventHandler[empty_event]
|
|
120
128
|
|
|
121
129
|
# The customized event handler of mouseleave on the ticks of this axis
|
|
122
|
-
on_mouse_leave: EventHandler[
|
|
130
|
+
on_mouse_leave: EventHandler[empty_event]
|
|
123
131
|
|
|
124
132
|
|
|
125
133
|
class XAxis(Axis):
|
|
@@ -129,20 +137,20 @@ class XAxis(Axis):
|
|
|
129
137
|
|
|
130
138
|
alias = "RechartsXAxis"
|
|
131
139
|
|
|
132
|
-
# The orientation of axis 'top' | 'bottom'
|
|
140
|
+
# The orientation of axis 'top' | 'bottom'. Default: "bottom"
|
|
133
141
|
orientation: Var[LiteralOrientationTopBottom]
|
|
134
142
|
|
|
135
|
-
# The id of x-axis which is corresponding to the data.
|
|
143
|
+
# The id of x-axis which is corresponding to the data. Default: 0
|
|
136
144
|
x_axis_id: Var[Union[str, int]]
|
|
137
145
|
|
|
138
|
-
# Ensures that all datapoints within a chart contribute to its domain calculation, even when they are hidden
|
|
139
|
-
include_hidden: Var[bool]
|
|
146
|
+
# Ensures that all datapoints within a chart contribute to its domain calculation, even when they are hidden. Default: False
|
|
147
|
+
include_hidden: Var[bool]
|
|
140
148
|
|
|
141
|
-
# The
|
|
142
|
-
|
|
149
|
+
# The angle of axis ticks. Default: 0
|
|
150
|
+
angle: Var[int]
|
|
143
151
|
|
|
144
|
-
#
|
|
145
|
-
|
|
152
|
+
# Specify the padding of x-axis. Default: {"left": 0, "right": 0}
|
|
153
|
+
padding: Var[Dict[str, int]]
|
|
146
154
|
|
|
147
155
|
|
|
148
156
|
class YAxis(Axis):
|
|
@@ -152,14 +160,14 @@ class YAxis(Axis):
|
|
|
152
160
|
|
|
153
161
|
alias = "RechartsYAxis"
|
|
154
162
|
|
|
155
|
-
# The orientation of axis 'left' | 'right'
|
|
163
|
+
# The orientation of axis 'left' | 'right'. Default: "left"
|
|
156
164
|
orientation: Var[LiteralOrientationLeftRight]
|
|
157
165
|
|
|
158
|
-
# The id of y-axis which is corresponding to the data.
|
|
166
|
+
# The id of y-axis which is corresponding to the data. Default: 0
|
|
159
167
|
y_axis_id: Var[Union[str, int]]
|
|
160
168
|
|
|
161
|
-
#
|
|
162
|
-
|
|
169
|
+
# Specify the padding of y-axis. Default: {"top": 0, "bottom": 0}
|
|
170
|
+
padding: Var[Dict[str, int]]
|
|
163
171
|
|
|
164
172
|
|
|
165
173
|
class ZAxis(Recharts):
|
|
@@ -172,7 +180,10 @@ class ZAxis(Recharts):
|
|
|
172
180
|
# The key of data displayed in the axis.
|
|
173
181
|
data_key: Var[Union[str, int]]
|
|
174
182
|
|
|
175
|
-
# The
|
|
183
|
+
# The unique id of z-axis. Default: 0
|
|
184
|
+
z_axis_id: Var[Union[str, int]]
|
|
185
|
+
|
|
186
|
+
# The range of axis. Default: [10, 10]
|
|
176
187
|
range: Var[List[int]]
|
|
177
188
|
|
|
178
189
|
# The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
|
|
@@ -181,7 +192,7 @@ class ZAxis(Recharts):
|
|
|
181
192
|
# The name of data displayed in the axis. This option will be used to represent an index in a scatter chart.
|
|
182
193
|
name: Var[Union[str, int]]
|
|
183
194
|
|
|
184
|
-
# If 'auto' set, the scale function is decided by the type of chart, and the props type.
|
|
195
|
+
# If 'auto' set, the scale function is decided by the type of chart, and the props type. Default: "auto"
|
|
185
196
|
scale: Var[LiteralScale]
|
|
186
197
|
|
|
187
198
|
|
|
@@ -192,40 +203,40 @@ class Brush(Recharts):
|
|
|
192
203
|
|
|
193
204
|
alias = "RechartsBrush"
|
|
194
205
|
|
|
195
|
-
# Stroke color
|
|
206
|
+
# Stroke color. Default: rx.color("gray", 9)
|
|
196
207
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 9))
|
|
197
208
|
|
|
198
|
-
# The fill color of brush.
|
|
209
|
+
# The fill color of brush. Default: rx.color("gray", 2)
|
|
199
210
|
fill: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 2))
|
|
200
211
|
|
|
201
212
|
# The key of data displayed in the axis.
|
|
202
213
|
data_key: Var[Union[str, int]]
|
|
203
214
|
|
|
204
|
-
# The x-coordinate of brush.
|
|
215
|
+
# The x-coordinate of brush. Default: 0
|
|
205
216
|
x: Var[int]
|
|
206
217
|
|
|
207
|
-
# The y-coordinate of brush.
|
|
218
|
+
# The y-coordinate of brush. Default: 0
|
|
208
219
|
y: Var[int]
|
|
209
220
|
|
|
210
|
-
# The width of brush.
|
|
221
|
+
# The width of brush. Default: 0
|
|
211
222
|
width: Var[int]
|
|
212
223
|
|
|
213
|
-
# The height of brush.
|
|
224
|
+
# The height of brush. Default: 40
|
|
214
225
|
height: Var[int]
|
|
215
226
|
|
|
216
|
-
# The data
|
|
227
|
+
# The original data of a LineChart, a BarChart or an AreaChart.
|
|
217
228
|
data: Var[List[Any]]
|
|
218
229
|
|
|
219
|
-
# The width of each traveller.
|
|
230
|
+
# The width of each traveller. Default: 5
|
|
220
231
|
traveller_width: Var[int]
|
|
221
232
|
|
|
222
|
-
# The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time
|
|
233
|
+
# The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time. Default: 1
|
|
223
234
|
gap: Var[int]
|
|
224
235
|
|
|
225
|
-
# The default start index of brush. If the option is not set, the start index will be 0.
|
|
236
|
+
# The default start index of brush. If the option is not set, the start index will be 0. Default: 0
|
|
226
237
|
start_index: Var[int]
|
|
227
238
|
|
|
228
|
-
# The default end index of brush. If the option is not set, the end index will be
|
|
239
|
+
# The default end index of brush. If the option is not set, the end index will be calculated by the length of data.
|
|
229
240
|
end_index: Var[int]
|
|
230
241
|
|
|
231
242
|
# The fill color of brush
|
|
@@ -254,38 +265,62 @@ class Cartesian(Recharts):
|
|
|
254
265
|
# The key of a group of data which should be unique in an area chart.
|
|
255
266
|
data_key: Var[Union[str, int]]
|
|
256
267
|
|
|
257
|
-
# The id of x-axis which is corresponding to the data.
|
|
268
|
+
# The id of x-axis which is corresponding to the data. Default: 0
|
|
258
269
|
x_axis_id: Var[Union[str, int]]
|
|
259
270
|
|
|
260
|
-
# The id of y-axis which is corresponding to the data.
|
|
271
|
+
# The id of y-axis which is corresponding to the data. Default: 0
|
|
261
272
|
y_axis_id: Var[Union[str, int]]
|
|
262
273
|
|
|
263
|
-
# 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
|
|
274
|
+
# 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
|
|
264
275
|
legend_type: Var[LiteralLegendType]
|
|
265
276
|
|
|
277
|
+
# If set false, animation of bar will be disabled. Default: True
|
|
278
|
+
is_animation_active: Var[bool]
|
|
279
|
+
|
|
280
|
+
# Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
281
|
+
animation_begin: Var[int]
|
|
282
|
+
|
|
283
|
+
# Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
284
|
+
animation_duration: Var[int]
|
|
285
|
+
|
|
286
|
+
# The type of easing function. Default: "ease"
|
|
287
|
+
animation_easing: Var[LiteralAnimationEasing]
|
|
288
|
+
|
|
289
|
+
# The unit of data. This option will be used in tooltip.
|
|
290
|
+
unit: Var[Union[str, int]]
|
|
291
|
+
|
|
292
|
+
# The name of data. This option will be used in tooltip and legend to represent the component. If no value was set to this option, the value of dataKey will be used alternatively.
|
|
293
|
+
name: Var[Union[str, int]]
|
|
294
|
+
|
|
295
|
+
# The customized event handler of animation start
|
|
296
|
+
on_animation_start: EventHandler[lambda: []]
|
|
297
|
+
|
|
298
|
+
# The customized event handler of animation end
|
|
299
|
+
on_animation_end: EventHandler[lambda: []]
|
|
300
|
+
|
|
266
301
|
# The customized event handler of click on the component in this group
|
|
267
|
-
on_click: EventHandler[
|
|
302
|
+
on_click: EventHandler[empty_event]
|
|
268
303
|
|
|
269
304
|
# The customized event handler of mousedown on the component in this group
|
|
270
|
-
on_mouse_down: EventHandler[
|
|
305
|
+
on_mouse_down: EventHandler[empty_event]
|
|
271
306
|
|
|
272
307
|
# The customized event handler of mouseup on the component in this group
|
|
273
|
-
on_mouse_up: EventHandler[
|
|
308
|
+
on_mouse_up: EventHandler[empty_event]
|
|
274
309
|
|
|
275
310
|
# The customized event handler of mousemove on the component in this group
|
|
276
|
-
on_mouse_move: EventHandler[
|
|
311
|
+
on_mouse_move: EventHandler[empty_event]
|
|
277
312
|
|
|
278
313
|
# The customized event handler of mouseover on the component in this group
|
|
279
|
-
on_mouse_over: EventHandler[
|
|
314
|
+
on_mouse_over: EventHandler[empty_event]
|
|
280
315
|
|
|
281
316
|
# The customized event handler of mouseout on the component in this group
|
|
282
|
-
on_mouse_out: EventHandler[
|
|
317
|
+
on_mouse_out: EventHandler[empty_event]
|
|
283
318
|
|
|
284
319
|
# The customized event handler of mouseenter on the component in this group
|
|
285
|
-
on_mouse_enter: EventHandler[
|
|
320
|
+
on_mouse_enter: EventHandler[empty_event]
|
|
286
321
|
|
|
287
322
|
# The customized event handler of mouseleave on the component in this group
|
|
288
|
-
on_mouse_leave: EventHandler[
|
|
323
|
+
on_mouse_leave: EventHandler[empty_event]
|
|
289
324
|
|
|
290
325
|
|
|
291
326
|
class Area(Cartesian):
|
|
@@ -295,22 +330,22 @@ class Area(Cartesian):
|
|
|
295
330
|
|
|
296
331
|
alias = "RechartsArea"
|
|
297
332
|
|
|
298
|
-
# The color of the line stroke.
|
|
333
|
+
# The color of the line stroke. Default: rx.color("accent", 9)
|
|
299
334
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("accent", 9))
|
|
300
335
|
|
|
301
|
-
# The width of the line stroke.
|
|
302
|
-
stroke_width: Var[int]
|
|
336
|
+
# The width of the line stroke. Default: 1
|
|
337
|
+
stroke_width: Var[int]
|
|
303
338
|
|
|
304
|
-
# The color of the area fill.
|
|
339
|
+
# The color of the area fill. Default: rx.color("accent", 5)
|
|
305
340
|
fill: Var[Union[str, Color]] = LiteralVar.create(Color("accent", 5))
|
|
306
341
|
|
|
307
|
-
# The interpolation type of area. And customized interpolation function can be set to type. 'basis' | 'basisClosed' | 'basisOpen' | 'bumpX' | 'bumpY' | 'bump' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter'
|
|
342
|
+
# The interpolation type of area. And customized interpolation function can be set to type. 'basis' | 'basisClosed' | 'basisOpen' | 'bumpX' | 'bumpY' | 'bump' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter'. Default: "monotone"
|
|
308
343
|
type_: Var[LiteralAreaType] = LiteralVar.create("monotone")
|
|
309
344
|
|
|
310
|
-
# If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally.
|
|
345
|
+
# If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally. Default: False
|
|
311
346
|
dot: Var[Union[bool, Dict[str, Any]]]
|
|
312
347
|
|
|
313
|
-
# 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.
|
|
348
|
+
# 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. Default: {stroke: rx.color("accent", 2), fill: rx.color("accent", 10)}
|
|
314
349
|
active_dot: Var[Union[bool, Dict[str, Any]]] = LiteralVar.create(
|
|
315
350
|
{
|
|
316
351
|
"stroke": Color("accent", 2),
|
|
@@ -318,17 +353,20 @@ class Area(Cartesian):
|
|
|
318
353
|
}
|
|
319
354
|
)
|
|
320
355
|
|
|
321
|
-
# If set false, labels will not be drawn. If set true, labels will be drawn which have the props calculated internally.
|
|
356
|
+
# If set false, labels will not be drawn. If set true, labels will be drawn which have the props calculated internally. Default: False
|
|
322
357
|
label: Var[bool]
|
|
323
358
|
|
|
359
|
+
# The value which can describle the line, usually calculated internally.
|
|
360
|
+
base_line: Var[Union[str, List[Dict[str, Any]]]]
|
|
361
|
+
|
|
362
|
+
# The coordinates of all the points in the area, usually calculated internally.
|
|
363
|
+
points: Var[List[Dict[str, Any]]]
|
|
364
|
+
|
|
324
365
|
# 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.
|
|
325
366
|
stack_id: Var[Union[str, int]]
|
|
326
367
|
|
|
327
|
-
#
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
# 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.
|
|
331
|
-
name: Var[Union[str, int]]
|
|
368
|
+
# Whether to connect a graph area across null points. Default: False
|
|
369
|
+
connect_nulls: Var[bool]
|
|
332
370
|
|
|
333
371
|
# Valid children components
|
|
334
372
|
_valid_children: List[str] = ["LabelList"]
|
|
@@ -347,12 +385,13 @@ class Bar(Cartesian):
|
|
|
347
385
|
# The width of the line stroke.
|
|
348
386
|
stroke_width: Var[int]
|
|
349
387
|
|
|
350
|
-
# The width of the line stroke.
|
|
388
|
+
# The width of the line stroke. Default: Color("accent", 9)
|
|
351
389
|
fill: Var[Union[str, Color]] = LiteralVar.create(Color("accent", 9))
|
|
352
|
-
|
|
390
|
+
|
|
391
|
+
# 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. Default: False
|
|
353
392
|
background: Var[bool]
|
|
354
393
|
|
|
355
|
-
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally.
|
|
394
|
+
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
356
395
|
label: Var[bool]
|
|
357
396
|
|
|
358
397
|
# 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.
|
|
@@ -373,30 +412,15 @@ class Bar(Cartesian):
|
|
|
373
412
|
# Max size of the bar
|
|
374
413
|
max_bar_size: Var[int]
|
|
375
414
|
|
|
415
|
+
# If set a value, the option is the radius of all the rounded corners. If set a array, the option are in turn the radiuses of top-left corner, top-right corner, bottom-right corner, bottom-left corner. Default: 0
|
|
416
|
+
radius: Var[Union[int, List[int]]]
|
|
417
|
+
|
|
376
418
|
# The active bar is shown when a user enters a bar chart and this chart has tooltip. If set to false, no active bar will be drawn. If set to true, active bar will be drawn with the props calculated internally. If passed an object, active bar will be drawn, and the internally calculated props will be merged with the key value pairs of the passed object.
|
|
377
419
|
# active_bar: Var[Union[bool, Dict[str, Any]]]
|
|
378
420
|
|
|
379
421
|
# Valid children components
|
|
380
422
|
_valid_children: List[str] = ["Cell", "LabelList", "ErrorBar"]
|
|
381
423
|
|
|
382
|
-
# If set false, animation of bar will be disabled.
|
|
383
|
-
is_animation_active: Var[bool]
|
|
384
|
-
|
|
385
|
-
# Specifies when the animation should begin, the unit of this option is ms, default 0.
|
|
386
|
-
animation_begin: Var[int]
|
|
387
|
-
|
|
388
|
-
# Specifies the duration of animation, the unit of this option is ms, default 1500.
|
|
389
|
-
animation_duration: Var[int]
|
|
390
|
-
|
|
391
|
-
# The type of easing function, default 'ease'
|
|
392
|
-
animation_easing: Var[LiteralAnimationEasing]
|
|
393
|
-
|
|
394
|
-
# The customized event handler of animation start
|
|
395
|
-
on_animation_start: EventHandler[lambda: []]
|
|
396
|
-
|
|
397
|
-
# The customized event handler of animation end
|
|
398
|
-
on_animation_end: EventHandler[lambda: []]
|
|
399
|
-
|
|
400
424
|
|
|
401
425
|
class Line(Cartesian):
|
|
402
426
|
"""A Line component in Recharts."""
|
|
@@ -408,13 +432,13 @@ class Line(Cartesian):
|
|
|
408
432
|
# The interpolation type of line. And customized interpolation function can be set to type. It's the same as type in Area.
|
|
409
433
|
type_: Var[LiteralAreaType]
|
|
410
434
|
|
|
411
|
-
# The color of the line stroke.
|
|
435
|
+
# The color of the line stroke. Default: rx.color("accent", 9)
|
|
412
436
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("accent", 9))
|
|
413
437
|
|
|
414
|
-
# The width of the line stroke.
|
|
438
|
+
# The width of the line stroke. Default: 1
|
|
415
439
|
stroke_width: Var[int]
|
|
416
440
|
|
|
417
|
-
# The dot is shown when mouse enter a line 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.
|
|
441
|
+
# The dot is shown when mouse enter a line 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. Default: {"stroke": rx.color("accent", 10), "fill": rx.color("accent", 4)}
|
|
418
442
|
dot: Var[Union[bool, Dict[str, Any]]] = LiteralVar.create(
|
|
419
443
|
{
|
|
420
444
|
"stroke": Color("accent", 10),
|
|
@@ -422,7 +446,7 @@ class Line(Cartesian):
|
|
|
422
446
|
}
|
|
423
447
|
)
|
|
424
448
|
|
|
425
|
-
# 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.
|
|
449
|
+
# 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. Default: {"stroke": rx.color("accent", 2), "fill": rx.color("accent", 10)}
|
|
426
450
|
active_dot: Var[Union[bool, Dict[str, Any]]] = LiteralVar.create(
|
|
427
451
|
{
|
|
428
452
|
"stroke": Color("accent", 2),
|
|
@@ -430,10 +454,10 @@ class Line(Cartesian):
|
|
|
430
454
|
}
|
|
431
455
|
)
|
|
432
456
|
|
|
433
|
-
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally.
|
|
457
|
+
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
434
458
|
label: Var[bool]
|
|
435
459
|
|
|
436
|
-
# Hides the line when true, useful when toggling visibility state via legend.
|
|
460
|
+
# Hides the line when true, useful when toggling visibility state via legend. Default: False
|
|
437
461
|
hide: Var[bool]
|
|
438
462
|
|
|
439
463
|
# Whether to connect a graph line across null points.
|
|
@@ -442,8 +466,11 @@ class Line(Cartesian):
|
|
|
442
466
|
# The unit of data. This option will be used in tooltip.
|
|
443
467
|
unit: Var[Union[str, int]]
|
|
444
468
|
|
|
445
|
-
# The
|
|
446
|
-
|
|
469
|
+
# The coordinates of all the points in the line, usually calculated internally.
|
|
470
|
+
points: Var[List[Dict[str, Any]]]
|
|
471
|
+
|
|
472
|
+
# The pattern of dashes and gaps used to paint the line.
|
|
473
|
+
stroke_dasharray: Var[str]
|
|
447
474
|
|
|
448
475
|
# Valid children components
|
|
449
476
|
_valid_children: List[str] = ["LabelList", "ErrorBar"]
|
|
@@ -459,71 +486,68 @@ class Scatter(Recharts):
|
|
|
459
486
|
# The source data, in which each element is an object.
|
|
460
487
|
data: Var[List[Dict[str, Any]]]
|
|
461
488
|
|
|
462
|
-
# 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'
|
|
489
|
+
# The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' | 'none'. Default: "circle"
|
|
463
490
|
legend_type: Var[LiteralLegendType]
|
|
464
491
|
|
|
465
|
-
# The id of x-axis which is corresponding to the data.
|
|
492
|
+
# The id of x-axis which is corresponding to the data. Default: 0
|
|
466
493
|
x_axis_id: Var[Union[str, int]]
|
|
467
494
|
|
|
468
|
-
# The id of y-axis which is corresponding to the data.
|
|
495
|
+
# The id of y-axis which is corresponding to the data. Default: 0
|
|
469
496
|
y_axis_id: Var[Union[str, int]]
|
|
470
497
|
|
|
471
|
-
# The id of z-axis which is corresponding to the data.
|
|
472
|
-
z_axis_id: Var[str]
|
|
498
|
+
# The id of z-axis which is corresponding to the data. Default: 0
|
|
499
|
+
z_axis_id: Var[Union[str, int]]
|
|
473
500
|
|
|
474
|
-
# If false set, line will not be drawn. If true set, line will be drawn which have the props calculated internally.
|
|
501
|
+
# If false set, line will not be drawn. If true set, line will be drawn which have the props calculated internally. Default: False
|
|
475
502
|
line: Var[bool]
|
|
476
503
|
|
|
477
|
-
# If a string set, specified symbol will be used to show scatter item. 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye'
|
|
504
|
+
# If a string set, specified symbol will be used to show scatter item. 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye'. Default: "circle"
|
|
478
505
|
shape: Var[LiteralShape]
|
|
479
506
|
|
|
480
|
-
# If 'joint' set, line will generated by just jointing all the points. If 'fitting' set, line will be generated by fitting algorithm. 'joint' | 'fitting'
|
|
507
|
+
# If 'joint' set, line will generated by just jointing all the points. If 'fitting' set, line will be generated by fitting algorithm. 'joint' | 'fitting'. Default: "joint"
|
|
481
508
|
line_type: Var[LiteralLineType]
|
|
482
509
|
|
|
483
|
-
# The fill
|
|
510
|
+
# The fill color of the scatter. Default: rx.color("accent", 9)
|
|
484
511
|
fill: Var[Union[str, Color]] = LiteralVar.create(Color("accent", 9))
|
|
485
512
|
|
|
486
|
-
# the name
|
|
487
|
-
name: Var[Union[str, int]]
|
|
488
|
-
|
|
489
513
|
# Valid children components.
|
|
490
514
|
_valid_children: List[str] = ["LabelList", "ErrorBar"]
|
|
491
515
|
|
|
492
|
-
# If set false, animation of bar will be disabled.
|
|
516
|
+
# If set false, animation of bar will be disabled. Default: True in CSR, False in SSR
|
|
493
517
|
is_animation_active: Var[bool]
|
|
494
518
|
|
|
495
|
-
# Specifies when the animation should begin, the unit of this option is ms
|
|
519
|
+
# Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
496
520
|
animation_begin: Var[int]
|
|
497
521
|
|
|
498
|
-
# Specifies the duration of animation, the unit of this option is ms
|
|
522
|
+
# Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
499
523
|
animation_duration: Var[int]
|
|
500
524
|
|
|
501
|
-
# The type of easing function
|
|
525
|
+
# The type of easing function. Default: "ease"
|
|
502
526
|
animation_easing: Var[LiteralAnimationEasing]
|
|
503
527
|
|
|
504
528
|
# The customized event handler of click on the component in this group
|
|
505
|
-
on_click: EventHandler[
|
|
529
|
+
on_click: EventHandler[empty_event]
|
|
506
530
|
|
|
507
531
|
# The customized event handler of mousedown on the component in this group
|
|
508
|
-
on_mouse_down: EventHandler[
|
|
532
|
+
on_mouse_down: EventHandler[empty_event]
|
|
509
533
|
|
|
510
534
|
# The customized event handler of mouseup on the component in this group
|
|
511
|
-
on_mouse_up: EventHandler[
|
|
535
|
+
on_mouse_up: EventHandler[empty_event]
|
|
512
536
|
|
|
513
537
|
# The customized event handler of mousemove on the component in this group
|
|
514
|
-
on_mouse_move: EventHandler[
|
|
538
|
+
on_mouse_move: EventHandler[empty_event]
|
|
515
539
|
|
|
516
540
|
# The customized event handler of mouseover on the component in this group
|
|
517
|
-
on_mouse_over: EventHandler[
|
|
541
|
+
on_mouse_over: EventHandler[empty_event]
|
|
518
542
|
|
|
519
543
|
# The customized event handler of mouseout on the component in this group
|
|
520
|
-
on_mouse_out: EventHandler[
|
|
544
|
+
on_mouse_out: EventHandler[empty_event]
|
|
521
545
|
|
|
522
546
|
# The customized event handler of mouseenter on the component in this group
|
|
523
|
-
on_mouse_enter: EventHandler[
|
|
547
|
+
on_mouse_enter: EventHandler[empty_event]
|
|
524
548
|
|
|
525
549
|
# The customized event handler of mouseleave on the component in this group
|
|
526
|
-
on_mouse_leave: EventHandler[
|
|
550
|
+
on_mouse_leave: EventHandler[empty_event]
|
|
527
551
|
|
|
528
552
|
|
|
529
553
|
class Funnel(Recharts):
|
|
@@ -536,62 +560,65 @@ class Funnel(Recharts):
|
|
|
536
560
|
# The source data, in which each element is an object.
|
|
537
561
|
data: Var[List[Dict[str, Any]]]
|
|
538
562
|
|
|
539
|
-
# The key of a group of data which should be unique in
|
|
563
|
+
# The key or getter of a group of data which should be unique in a FunnelChart.
|
|
540
564
|
data_key: Var[Union[str, int]]
|
|
541
565
|
|
|
542
|
-
# The key
|
|
566
|
+
# The key of each sector's name. Default: "name"
|
|
543
567
|
name_key: Var[str]
|
|
544
568
|
|
|
545
|
-
# The type of icon in legend. If set to 'none', no legend item will be rendered.
|
|
569
|
+
# The type of icon in legend. If set to 'none', no legend item will be rendered. Default: "line"
|
|
546
570
|
legend_type: Var[LiteralLegendType]
|
|
547
571
|
|
|
548
|
-
# If set false, animation of line will be disabled.
|
|
572
|
+
# If set false, animation of line will be disabled. Default: True
|
|
549
573
|
is_animation_active: Var[bool]
|
|
550
574
|
|
|
551
|
-
# Specifies when the animation should begin, the unit of this option is ms.
|
|
575
|
+
# Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
552
576
|
animation_begin: Var[int]
|
|
553
577
|
|
|
554
|
-
# Specifies the duration of animation, the unit of this option is ms.
|
|
578
|
+
# Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
555
579
|
animation_duration: Var[int]
|
|
556
580
|
|
|
557
|
-
# The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'
|
|
581
|
+
# The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. Default "ease"
|
|
558
582
|
animation_easing: Var[LiteralAnimationEasing]
|
|
559
583
|
|
|
560
|
-
#
|
|
584
|
+
# Stroke color. Default: rx.color("gray", 3)
|
|
561
585
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 3))
|
|
562
586
|
|
|
587
|
+
# The coordinates of all the trapezoids in the funnel, usually calculated internally.
|
|
588
|
+
trapezoids: Var[List[Dict[str, Any]]]
|
|
589
|
+
|
|
563
590
|
# Valid children components
|
|
564
591
|
_valid_children: List[str] = ["LabelList", "Cell"]
|
|
565
592
|
|
|
566
593
|
# The customized event handler of animation start
|
|
567
|
-
on_animation_start: EventHandler[
|
|
594
|
+
on_animation_start: EventHandler[empty_event]
|
|
568
595
|
|
|
569
596
|
# The customized event handler of animation end
|
|
570
|
-
on_animation_end: EventHandler[
|
|
597
|
+
on_animation_end: EventHandler[empty_event]
|
|
571
598
|
|
|
572
599
|
# The customized event handler of click on the component in this group
|
|
573
|
-
on_click: EventHandler[
|
|
600
|
+
on_click: EventHandler[empty_event]
|
|
574
601
|
|
|
575
602
|
# The customized event handler of mousedown on the component in this group
|
|
576
|
-
on_mouse_down: EventHandler[
|
|
603
|
+
on_mouse_down: EventHandler[empty_event]
|
|
577
604
|
|
|
578
605
|
# The customized event handler of mouseup on the component in this group
|
|
579
|
-
on_mouse_up: EventHandler[
|
|
606
|
+
on_mouse_up: EventHandler[empty_event]
|
|
580
607
|
|
|
581
608
|
# The customized event handler of mousemove on the component in this group
|
|
582
|
-
on_mouse_move: EventHandler[
|
|
609
|
+
on_mouse_move: EventHandler[empty_event]
|
|
583
610
|
|
|
584
611
|
# The customized event handler of mouseover on the component in this group
|
|
585
|
-
on_mouse_over: EventHandler[
|
|
612
|
+
on_mouse_over: EventHandler[empty_event]
|
|
586
613
|
|
|
587
614
|
# The customized event handler of mouseout on the component in this group
|
|
588
|
-
on_mouse_out: EventHandler[
|
|
615
|
+
on_mouse_out: EventHandler[empty_event]
|
|
589
616
|
|
|
590
617
|
# The customized event handler of mouseenter on the component in this group
|
|
591
|
-
on_mouse_enter: EventHandler[
|
|
618
|
+
on_mouse_enter: EventHandler[empty_event]
|
|
592
619
|
|
|
593
620
|
# The customized event handler of mouseleave on the component in this group
|
|
594
|
-
on_mouse_leave: EventHandler[
|
|
621
|
+
on_mouse_leave: EventHandler[empty_event]
|
|
595
622
|
|
|
596
623
|
|
|
597
624
|
class ErrorBar(Recharts):
|
|
@@ -601,38 +628,38 @@ class ErrorBar(Recharts):
|
|
|
601
628
|
|
|
602
629
|
alias = "RechartsErrorBar"
|
|
603
630
|
|
|
604
|
-
#
|
|
631
|
+
# Only used for ScatterChart with error bars in two directions. Only accepts a value of "x" or "y" and makes the error bars lie in that direction.
|
|
605
632
|
direction: Var[LiteralDirection]
|
|
606
633
|
|
|
607
634
|
# The key of a group of data which should be unique in an area chart.
|
|
608
635
|
data_key: Var[Union[str, int]]
|
|
609
636
|
|
|
610
|
-
# The width of the error bar ends.
|
|
637
|
+
# The width of the error bar ends. Default: 5
|
|
611
638
|
width: Var[int]
|
|
612
639
|
|
|
613
|
-
# The stroke color of error bar.
|
|
640
|
+
# The stroke color of error bar. Default: rx.color("gray", 8)
|
|
614
641
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 8))
|
|
615
642
|
|
|
616
|
-
# The stroke width of error bar.
|
|
617
|
-
stroke_width: Var[int]
|
|
643
|
+
# The stroke width of error bar. Default: 1.5
|
|
644
|
+
stroke_width: Var[Union[int, float]]
|
|
618
645
|
|
|
619
646
|
|
|
620
647
|
class Reference(Recharts):
|
|
621
648
|
"""A base class for reference components in Reference."""
|
|
622
649
|
|
|
623
|
-
# The id of x-axis which is corresponding to the data.
|
|
650
|
+
# The id of x-axis which is corresponding to the data. Default: 0
|
|
624
651
|
x_axis_id: Var[Union[str, int]]
|
|
625
652
|
|
|
626
|
-
# The id of y-axis which is corresponding to the data.
|
|
653
|
+
# The id of y-axis which is corresponding to the data. Default: 0
|
|
627
654
|
y_axis_id: Var[Union[str, int]]
|
|
628
655
|
|
|
629
|
-
# 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.
|
|
656
|
+
# 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. Default: "discard"
|
|
630
657
|
if_overflow: Var[LiteralIfOverflow]
|
|
631
658
|
|
|
632
659
|
# If set a string or a number, default label will be drawn, and the option is content.
|
|
633
660
|
label: Var[Union[str, int]]
|
|
634
661
|
|
|
635
|
-
# If set true, the line will be rendered in front of bars in BarChart, etc.
|
|
662
|
+
# If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
636
663
|
is_front: Var[bool]
|
|
637
664
|
|
|
638
665
|
|
|
@@ -652,7 +679,7 @@ class ReferenceLine(Reference):
|
|
|
652
679
|
# The color of the reference line.
|
|
653
680
|
stroke: Var[Union[str, Color]]
|
|
654
681
|
|
|
655
|
-
# The width of the stroke.
|
|
682
|
+
# The width of the stroke. Default: 1
|
|
656
683
|
stroke_width: Var[Union[str, int]]
|
|
657
684
|
|
|
658
685
|
# Valid children components
|
|
@@ -688,28 +715,28 @@ class ReferenceDot(Reference):
|
|
|
688
715
|
_valid_children: List[str] = ["Label"]
|
|
689
716
|
|
|
690
717
|
# The customized event handler of click on the component in this chart
|
|
691
|
-
on_click: EventHandler[
|
|
718
|
+
on_click: EventHandler[empty_event]
|
|
692
719
|
|
|
693
720
|
# The customized event handler of mousedown on the component in this chart
|
|
694
|
-
on_mouse_down: EventHandler[
|
|
721
|
+
on_mouse_down: EventHandler[empty_event]
|
|
695
722
|
|
|
696
723
|
# The customized event handler of mouseup on the component in this chart
|
|
697
|
-
on_mouse_up: EventHandler[
|
|
724
|
+
on_mouse_up: EventHandler[empty_event]
|
|
698
725
|
|
|
699
726
|
# The customized event handler of mouseover on the component in this chart
|
|
700
|
-
on_mouse_over: EventHandler[
|
|
727
|
+
on_mouse_over: EventHandler[empty_event]
|
|
701
728
|
|
|
702
729
|
# The customized event handler of mouseout on the component in this chart
|
|
703
|
-
on_mouse_out: EventHandler[
|
|
730
|
+
on_mouse_out: EventHandler[empty_event]
|
|
704
731
|
|
|
705
732
|
# The customized event handler of mouseenter on the component in this chart
|
|
706
|
-
on_mouse_enter: EventHandler[
|
|
733
|
+
on_mouse_enter: EventHandler[empty_event]
|
|
707
734
|
|
|
708
735
|
# The customized event handler of mousemove on the component in this chart
|
|
709
|
-
on_mouse_move: EventHandler[
|
|
736
|
+
on_mouse_move: EventHandler[empty_event]
|
|
710
737
|
|
|
711
738
|
# The customized event handler of mouseleave on the component in this chart
|
|
712
|
-
on_mouse_leave: EventHandler[
|
|
739
|
+
on_mouse_leave: EventHandler[empty_event]
|
|
713
740
|
|
|
714
741
|
|
|
715
742
|
class ReferenceArea(Recharts):
|
|
@@ -746,10 +773,10 @@ class ReferenceArea(Recharts):
|
|
|
746
773
|
# A boundary value of the area. 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. If one of y1 or y2 is invalidate, the area will cover along y-axis.
|
|
747
774
|
y2: Var[Union[str, int]]
|
|
748
775
|
|
|
749
|
-
# 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.
|
|
776
|
+
# 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. Default: "discard"
|
|
750
777
|
if_overflow: Var[LiteralIfOverflow]
|
|
751
778
|
|
|
752
|
-
# If set true, the line will be rendered in front of bars in BarChart, etc.
|
|
779
|
+
# If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
753
780
|
is_front: Var[bool]
|
|
754
781
|
|
|
755
782
|
# Valid children components
|
|
@@ -759,16 +786,16 @@ class ReferenceArea(Recharts):
|
|
|
759
786
|
class Grid(Recharts):
|
|
760
787
|
"""A base class for grid components in Recharts."""
|
|
761
788
|
|
|
762
|
-
# The x-coordinate of grid.
|
|
789
|
+
# The x-coordinate of grid. Default: 0
|
|
763
790
|
x: Var[int]
|
|
764
791
|
|
|
765
|
-
# The y-coordinate of grid.
|
|
792
|
+
# The y-coordinate of grid. Default: 0
|
|
766
793
|
y: Var[int]
|
|
767
794
|
|
|
768
|
-
# The width of grid.
|
|
795
|
+
# The width of grid. Default: 0
|
|
769
796
|
width: Var[int]
|
|
770
797
|
|
|
771
|
-
# The height of grid.
|
|
798
|
+
# The height of grid. Default: 0
|
|
772
799
|
height: Var[int]
|
|
773
800
|
|
|
774
801
|
|
|
@@ -779,28 +806,28 @@ class CartesianGrid(Grid):
|
|
|
779
806
|
|
|
780
807
|
alias = "RechartsCartesianGrid"
|
|
781
808
|
|
|
782
|
-
# The horizontal line configuration.
|
|
809
|
+
# The horizontal line configuration. Default: True
|
|
783
810
|
horizontal: Var[bool]
|
|
784
811
|
|
|
785
|
-
# The vertical line configuration.
|
|
812
|
+
# The vertical line configuration. Default: True
|
|
786
813
|
vertical: Var[bool]
|
|
787
814
|
|
|
788
|
-
# The x-coordinates in pixel values of all vertical lines.
|
|
815
|
+
# The x-coordinates in pixel values of all vertical lines. Default: []
|
|
789
816
|
vertical_points: Var[List[Union[str, int]]]
|
|
790
817
|
|
|
791
|
-
# The x-coordinates in pixel values of all vertical lines.
|
|
818
|
+
# The x-coordinates in pixel values of all vertical lines. Default: []
|
|
792
819
|
horizontal_points: Var[List[Union[str, int]]]
|
|
793
820
|
|
|
794
821
|
# The background of grid.
|
|
795
822
|
fill: Var[Union[str, Color]]
|
|
796
823
|
|
|
797
|
-
# The opacity of the background used to fill the space between grid lines
|
|
824
|
+
# The opacity of the background used to fill the space between grid lines.
|
|
798
825
|
fill_opacity: Var[float]
|
|
799
826
|
|
|
800
|
-
# The pattern of dashes and gaps used to paint the lines of the grid
|
|
827
|
+
# The pattern of dashes and gaps used to paint the lines of the grid.
|
|
801
828
|
stroke_dasharray: Var[str]
|
|
802
829
|
|
|
803
|
-
# the stroke color of grid
|
|
830
|
+
# the stroke color of grid. Default: rx.color("gray", 7)
|
|
804
831
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 7))
|
|
805
832
|
|
|
806
833
|
|
|
@@ -811,28 +838,31 @@ class CartesianAxis(Grid):
|
|
|
811
838
|
|
|
812
839
|
alias = "RechartsCartesianAxis"
|
|
813
840
|
|
|
814
|
-
# The orientation of axis 'top' | 'bottom' | 'left' | 'right'
|
|
841
|
+
# The orientation of axis 'top' | 'bottom' | 'left' | 'right'. Default: "bottom"
|
|
815
842
|
orientation: Var[LiteralOrientationTopBottomLeftRight]
|
|
816
843
|
|
|
817
|
-
#
|
|
844
|
+
# The box of viewing area. Default: {"x": 0, "y": 0, "width": 0, "height": 0}
|
|
845
|
+
view_box: Var[Dict[str, Any]]
|
|
846
|
+
|
|
847
|
+
# If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line. Default: True
|
|
818
848
|
axis_line: Var[bool]
|
|
819
849
|
|
|
820
|
-
# If set false, no
|
|
850
|
+
# If set false, no ticks will be drawn.
|
|
851
|
+
tick: Var[bool]
|
|
852
|
+
|
|
853
|
+
# If set false, no axis tick lines will be drawn. If set a object, the option is the configuration of tick lines. Default: True
|
|
821
854
|
tick_line: Var[bool]
|
|
822
855
|
|
|
823
|
-
# The length of tick line.
|
|
856
|
+
# The length of tick line. Default: 6
|
|
824
857
|
tick_size: Var[int]
|
|
825
858
|
|
|
826
|
-
# If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically.
|
|
859
|
+
# If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically. Default: "preserveEnd"
|
|
827
860
|
interval: Var[LiteralInterval]
|
|
828
861
|
|
|
829
|
-
# If set false, no ticks will be drawn.
|
|
830
|
-
ticks: Var[bool]
|
|
831
|
-
|
|
832
862
|
# If set a string or a number, default label will be drawn, and the option is content.
|
|
833
|
-
label: Var[str]
|
|
863
|
+
label: Var[Union[str, int]]
|
|
834
864
|
|
|
835
|
-
# If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside.
|
|
865
|
+
# If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. Default: False
|
|
836
866
|
mirror: Var[bool]
|
|
837
867
|
|
|
838
868
|
# The margin between tick line and tick.
|