reflex-silverpoint-react 0.1.0__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.
- reflex_silverpoint_react/__init__.py +170 -0
- reflex_silverpoint_react/base.py +180 -0
- reflex_silverpoint_react/base.pyi +270 -0
- reflex_silverpoint_react/catalog.py +637 -0
- reflex_silverpoint_react/charts.py +645 -0
- reflex_silverpoint_react/charts.pyi +3944 -0
- reflex_silverpoint_react/helpers.py +148 -0
- reflex_silverpoint_react-0.1.0.dist-info/METADATA +224 -0
- reflex_silverpoint_react-0.1.0.dist-info/RECORD +12 -0
- reflex_silverpoint_react-0.1.0.dist-info/WHEEL +5 -0
- reflex_silverpoint_react-0.1.0.dist-info/licenses/LICENSE +21 -0
- reflex_silverpoint_react-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,3944 @@
|
|
|
1
|
+
"""Stub file for custom_components/reflex_silverpoint_react/charts.py"""
|
|
2
|
+
|
|
3
|
+
# ------------------- DO NOT EDIT ----------------------
|
|
4
|
+
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
|
+
# ------------------------------------------------------
|
|
6
|
+
from collections.abc import Mapping, Sequence
|
|
7
|
+
from typing import Any, Literal, Optional
|
|
8
|
+
from reflex_components_core.core.breakpoints import Breakpoints
|
|
9
|
+
from reflex_base.event import (
|
|
10
|
+
EventType,
|
|
11
|
+
PointerEventInfo,
|
|
12
|
+
)
|
|
13
|
+
from reflex_base.vars.base import Var
|
|
14
|
+
from .base import SilverpointChart
|
|
15
|
+
|
|
16
|
+
class LineChart(SilverpointChart):
|
|
17
|
+
@classmethod
|
|
18
|
+
def create(
|
|
19
|
+
cls,
|
|
20
|
+
*children,
|
|
21
|
+
x_key: Var[str] | str | None = None,
|
|
22
|
+
value_key: Var[str] | str | None = None,
|
|
23
|
+
secondary_key: Var[str] | str | None = None,
|
|
24
|
+
curve: Literal["linear", "monotone", "natural", "step"]
|
|
25
|
+
| Var[Literal["linear", "monotone", "natural", "step"]]
|
|
26
|
+
| None = None,
|
|
27
|
+
series: Literal["all", "primary"] | Var[Literal["all", "primary"]] | None = None,
|
|
28
|
+
connect_nulls: Var[bool] | bool | None = None,
|
|
29
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
30
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
31
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
32
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
33
|
+
| None = None,
|
|
34
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
35
|
+
seed: Var[int | str] | int | str | None = None,
|
|
36
|
+
height: Var[float | int] | float | int | None = None,
|
|
37
|
+
width: Var[float | int] | float | int | None = None,
|
|
38
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
39
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
40
|
+
title: Var[str] | str | None = None,
|
|
41
|
+
badge: Var[str] | str | None = None,
|
|
42
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
43
|
+
unit: Var[str] | str | None = None,
|
|
44
|
+
footer_left: Var[str] | str | None = None,
|
|
45
|
+
footer_right: Var[str] | str | None = None,
|
|
46
|
+
label: Var[str] | str | None = None,
|
|
47
|
+
description: Var[str] | str | None = None,
|
|
48
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
49
|
+
locale: Var[str] | str | None = None,
|
|
50
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
51
|
+
tooltip: Any | Var[Any] | None = None,
|
|
52
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
53
|
+
key: Any | None = None,
|
|
54
|
+
id: Any | None = None,
|
|
55
|
+
ref: Var | None = None,
|
|
56
|
+
class_name: Any | None = None,
|
|
57
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
58
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
59
|
+
on_blur: Optional[EventType[()]] = None,
|
|
60
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
61
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
62
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
63
|
+
on_focus: Optional[EventType[()]] = None,
|
|
64
|
+
on_mount: Optional[EventType[()]] = None,
|
|
65
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
66
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
67
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
68
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
69
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
70
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
71
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
72
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
73
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
74
|
+
on_select: Optional[EventType[Any]] = None,
|
|
75
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
76
|
+
**props,
|
|
77
|
+
) -> "LineChart":
|
|
78
|
+
"""Create the component.
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
*children: The children of the component.
|
|
82
|
+
x_key: Key of each row in `data` to read.
|
|
83
|
+
value_key: Key of each row in `data` to read.
|
|
84
|
+
secondary_key: Key of each row in `data` to read.
|
|
85
|
+
curve: no description
|
|
86
|
+
series: `all` draws the secondary series when there is one; `primary` omits it.
|
|
87
|
+
connect_nulls: Whether a gap left by a missing value is bridged.
|
|
88
|
+
data: no description
|
|
89
|
+
ground: no description
|
|
90
|
+
substrate: no description
|
|
91
|
+
mode: no description
|
|
92
|
+
seed: no description
|
|
93
|
+
height: no description
|
|
94
|
+
width: no description
|
|
95
|
+
chrome: no description
|
|
96
|
+
hatch_fill: no description
|
|
97
|
+
title: no description
|
|
98
|
+
badge: no description
|
|
99
|
+
value: no description
|
|
100
|
+
unit: no description
|
|
101
|
+
footer_left: no description
|
|
102
|
+
footer_right: no description
|
|
103
|
+
label: no description
|
|
104
|
+
description: no description
|
|
105
|
+
data_table: no description
|
|
106
|
+
locale: no description
|
|
107
|
+
number_format: no description
|
|
108
|
+
tooltip: no description
|
|
109
|
+
style: The style of the component.
|
|
110
|
+
key: A unique key for the component.
|
|
111
|
+
id: The id for the component.
|
|
112
|
+
ref: The Var to pass as the ref to the component.
|
|
113
|
+
class_name: The class name for the component.
|
|
114
|
+
custom_attrs: Attributes passed directly to the component.
|
|
115
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
116
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
117
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
118
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
119
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
120
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
121
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
122
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
123
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
124
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
125
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
126
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
127
|
+
on_scroll: Fired when the user scrolls the element.
|
|
128
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
129
|
+
on_mount: Fired when the component is mounted to the page.
|
|
130
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
131
|
+
on_active_change: no description
|
|
132
|
+
on_select: no description
|
|
133
|
+
**props: The props of the component.
|
|
134
|
+
|
|
135
|
+
Returns:
|
|
136
|
+
The component.
|
|
137
|
+
"""
|
|
138
|
+
...
|
|
139
|
+
|
|
140
|
+
line_chart = LineChart.create
|
|
141
|
+
|
|
142
|
+
class StepChart(SilverpointChart):
|
|
143
|
+
@classmethod
|
|
144
|
+
def create(
|
|
145
|
+
cls,
|
|
146
|
+
*children,
|
|
147
|
+
x_key: Var[str] | str | None = None,
|
|
148
|
+
value_key: Var[str] | str | None = None,
|
|
149
|
+
step: Literal["after", "before", "middle"] | Var[Literal["after", "before", "middle"]] | None = None,
|
|
150
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
151
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
152
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
153
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
154
|
+
| None = None,
|
|
155
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
156
|
+
seed: Var[int | str] | int | str | None = None,
|
|
157
|
+
height: Var[float | int] | float | int | None = None,
|
|
158
|
+
width: Var[float | int] | float | int | None = None,
|
|
159
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
160
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
161
|
+
title: Var[str] | str | None = None,
|
|
162
|
+
badge: Var[str] | str | None = None,
|
|
163
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
164
|
+
unit: Var[str] | str | None = None,
|
|
165
|
+
footer_left: Var[str] | str | None = None,
|
|
166
|
+
footer_right: Var[str] | str | None = None,
|
|
167
|
+
label: Var[str] | str | None = None,
|
|
168
|
+
description: Var[str] | str | None = None,
|
|
169
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
170
|
+
locale: Var[str] | str | None = None,
|
|
171
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
172
|
+
tooltip: Any | Var[Any] | None = None,
|
|
173
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
174
|
+
key: Any | None = None,
|
|
175
|
+
id: Any | None = None,
|
|
176
|
+
ref: Var | None = None,
|
|
177
|
+
class_name: Any | None = None,
|
|
178
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
179
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
180
|
+
on_blur: Optional[EventType[()]] = None,
|
|
181
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
182
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
183
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
184
|
+
on_focus: Optional[EventType[()]] = None,
|
|
185
|
+
on_mount: Optional[EventType[()]] = None,
|
|
186
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
187
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
188
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
189
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
190
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
191
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
192
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
193
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
194
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
195
|
+
on_select: Optional[EventType[Any]] = None,
|
|
196
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
197
|
+
**props,
|
|
198
|
+
) -> "StepChart":
|
|
199
|
+
"""Create the component.
|
|
200
|
+
|
|
201
|
+
Args:
|
|
202
|
+
*children: The children of the component.
|
|
203
|
+
x_key: Key of each row in `data` to read.
|
|
204
|
+
value_key: Key of each row in `data` to read.
|
|
205
|
+
step: Where the step sits between two points; `after` by default.
|
|
206
|
+
data: no description
|
|
207
|
+
ground: no description
|
|
208
|
+
substrate: no description
|
|
209
|
+
mode: no description
|
|
210
|
+
seed: no description
|
|
211
|
+
height: no description
|
|
212
|
+
width: no description
|
|
213
|
+
chrome: no description
|
|
214
|
+
hatch_fill: no description
|
|
215
|
+
title: no description
|
|
216
|
+
badge: no description
|
|
217
|
+
value: no description
|
|
218
|
+
unit: no description
|
|
219
|
+
footer_left: no description
|
|
220
|
+
footer_right: no description
|
|
221
|
+
label: no description
|
|
222
|
+
description: no description
|
|
223
|
+
data_table: no description
|
|
224
|
+
locale: no description
|
|
225
|
+
number_format: no description
|
|
226
|
+
tooltip: no description
|
|
227
|
+
style: The style of the component.
|
|
228
|
+
key: A unique key for the component.
|
|
229
|
+
id: The id for the component.
|
|
230
|
+
ref: The Var to pass as the ref to the component.
|
|
231
|
+
class_name: The class name for the component.
|
|
232
|
+
custom_attrs: Attributes passed directly to the component.
|
|
233
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
234
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
235
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
236
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
237
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
238
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
239
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
240
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
241
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
242
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
243
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
244
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
245
|
+
on_scroll: Fired when the user scrolls the element.
|
|
246
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
247
|
+
on_mount: Fired when the component is mounted to the page.
|
|
248
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
249
|
+
on_active_change: no description
|
|
250
|
+
on_select: no description
|
|
251
|
+
**props: The props of the component.
|
|
252
|
+
|
|
253
|
+
Returns:
|
|
254
|
+
The component.
|
|
255
|
+
"""
|
|
256
|
+
...
|
|
257
|
+
|
|
258
|
+
step_chart = StepChart.create
|
|
259
|
+
|
|
260
|
+
class SparklineRows(SilverpointChart):
|
|
261
|
+
@classmethod
|
|
262
|
+
def create(
|
|
263
|
+
cls,
|
|
264
|
+
*children,
|
|
265
|
+
rows: Var[int] | int | None = None,
|
|
266
|
+
name_key: Var[str] | str | None = None,
|
|
267
|
+
readout_key: Var[str] | str | None = None,
|
|
268
|
+
series_key: Var[str] | str | None = None,
|
|
269
|
+
point_key: Var[str] | str | None = None,
|
|
270
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
271
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
272
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
273
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
274
|
+
| None = None,
|
|
275
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
276
|
+
seed: Var[int | str] | int | str | None = None,
|
|
277
|
+
height: Var[float | int] | float | int | None = None,
|
|
278
|
+
width: Var[float | int] | float | int | None = None,
|
|
279
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
280
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
281
|
+
title: Var[str] | str | None = None,
|
|
282
|
+
badge: Var[str] | str | None = None,
|
|
283
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
284
|
+
unit: Var[str] | str | None = None,
|
|
285
|
+
footer_left: Var[str] | str | None = None,
|
|
286
|
+
footer_right: Var[str] | str | None = None,
|
|
287
|
+
label: Var[str] | str | None = None,
|
|
288
|
+
description: Var[str] | str | None = None,
|
|
289
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
290
|
+
locale: Var[str] | str | None = None,
|
|
291
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
292
|
+
tooltip: Any | Var[Any] | None = None,
|
|
293
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
294
|
+
key: Any | None = None,
|
|
295
|
+
id: Any | None = None,
|
|
296
|
+
ref: Var | None = None,
|
|
297
|
+
class_name: Any | None = None,
|
|
298
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
299
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
300
|
+
on_blur: Optional[EventType[()]] = None,
|
|
301
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
302
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
303
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
304
|
+
on_focus: Optional[EventType[()]] = None,
|
|
305
|
+
on_mount: Optional[EventType[()]] = None,
|
|
306
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
307
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
308
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
309
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
310
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
311
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
312
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
313
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
314
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
315
|
+
on_select: Optional[EventType[Any]] = None,
|
|
316
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
317
|
+
**props,
|
|
318
|
+
) -> "SparklineRows":
|
|
319
|
+
"""Create the component.
|
|
320
|
+
|
|
321
|
+
Args:
|
|
322
|
+
*children: The children of the component.
|
|
323
|
+
rows: Rows shown, from the first; all by default.
|
|
324
|
+
name_key: Key of each row in `data` to read.
|
|
325
|
+
readout_key: The printed readout; the last value of the series by default.
|
|
326
|
+
series_key: The row's points: an array.
|
|
327
|
+
point_key: The value of one point; the point itself when it is a number, else its `value`.
|
|
328
|
+
data: no description
|
|
329
|
+
ground: no description
|
|
330
|
+
substrate: no description
|
|
331
|
+
mode: no description
|
|
332
|
+
seed: no description
|
|
333
|
+
height: no description
|
|
334
|
+
width: no description
|
|
335
|
+
chrome: no description
|
|
336
|
+
hatch_fill: no description
|
|
337
|
+
title: no description
|
|
338
|
+
badge: no description
|
|
339
|
+
value: no description
|
|
340
|
+
unit: no description
|
|
341
|
+
footer_left: no description
|
|
342
|
+
footer_right: no description
|
|
343
|
+
label: no description
|
|
344
|
+
description: no description
|
|
345
|
+
data_table: no description
|
|
346
|
+
locale: no description
|
|
347
|
+
number_format: no description
|
|
348
|
+
tooltip: no description
|
|
349
|
+
style: The style of the component.
|
|
350
|
+
key: A unique key for the component.
|
|
351
|
+
id: The id for the component.
|
|
352
|
+
ref: The Var to pass as the ref to the component.
|
|
353
|
+
class_name: The class name for the component.
|
|
354
|
+
custom_attrs: Attributes passed directly to the component.
|
|
355
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
356
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
357
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
358
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
359
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
360
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
361
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
362
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
363
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
364
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
365
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
366
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
367
|
+
on_scroll: Fired when the user scrolls the element.
|
|
368
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
369
|
+
on_mount: Fired when the component is mounted to the page.
|
|
370
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
371
|
+
on_active_change: no description
|
|
372
|
+
on_select: no description
|
|
373
|
+
**props: The props of the component.
|
|
374
|
+
|
|
375
|
+
Returns:
|
|
376
|
+
The component.
|
|
377
|
+
"""
|
|
378
|
+
...
|
|
379
|
+
|
|
380
|
+
sparkline_rows = SparklineRows.create
|
|
381
|
+
|
|
382
|
+
class KpiCard(SilverpointChart):
|
|
383
|
+
@classmethod
|
|
384
|
+
def create(
|
|
385
|
+
cls,
|
|
386
|
+
*children,
|
|
387
|
+
value_key: Var[str] | str | None = None,
|
|
388
|
+
metric: Var[str] | str | None = None,
|
|
389
|
+
delta: Var[float | int] | float | int | None = None,
|
|
390
|
+
delta_tone: Literal["down", "flat", "up"] | Var[Literal["down", "flat", "up"]] | None = None,
|
|
391
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
392
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
393
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
394
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
395
|
+
| None = None,
|
|
396
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
397
|
+
seed: Var[int | str] | int | str | None = None,
|
|
398
|
+
height: Var[float | int] | float | int | None = None,
|
|
399
|
+
width: Var[float | int] | float | int | None = None,
|
|
400
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
401
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
402
|
+
title: Var[str] | str | None = None,
|
|
403
|
+
badge: Var[str] | str | None = None,
|
|
404
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
405
|
+
unit: Var[str] | str | None = None,
|
|
406
|
+
footer_left: Var[str] | str | None = None,
|
|
407
|
+
footer_right: Var[str] | str | None = None,
|
|
408
|
+
label: Var[str] | str | None = None,
|
|
409
|
+
description: Var[str] | str | None = None,
|
|
410
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
411
|
+
locale: Var[str] | str | None = None,
|
|
412
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
413
|
+
tooltip: Any | Var[Any] | None = None,
|
|
414
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
415
|
+
key: Any | None = None,
|
|
416
|
+
id: Any | None = None,
|
|
417
|
+
ref: Var | None = None,
|
|
418
|
+
class_name: Any | None = None,
|
|
419
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
420
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
421
|
+
on_blur: Optional[EventType[()]] = None,
|
|
422
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
423
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
424
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
425
|
+
on_focus: Optional[EventType[()]] = None,
|
|
426
|
+
on_mount: Optional[EventType[()]] = None,
|
|
427
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
428
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
429
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
430
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
431
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
432
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
433
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
434
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
435
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
436
|
+
on_select: Optional[EventType[Any]] = None,
|
|
437
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
438
|
+
**props,
|
|
439
|
+
) -> "KpiCard":
|
|
440
|
+
"""Create the component.
|
|
441
|
+
|
|
442
|
+
Args:
|
|
443
|
+
*children: The children of the component.
|
|
444
|
+
value_key: Key of each row in `data` to read.
|
|
445
|
+
metric: The metric's name, printed under the figure.
|
|
446
|
+
delta: Signed change, printed with its sign and a direction mark.
|
|
447
|
+
delta_tone: Direction of the mark; from the sign of `delta` by default.
|
|
448
|
+
data: no description
|
|
449
|
+
ground: no description
|
|
450
|
+
substrate: no description
|
|
451
|
+
mode: no description
|
|
452
|
+
seed: no description
|
|
453
|
+
height: no description
|
|
454
|
+
width: no description
|
|
455
|
+
chrome: no description
|
|
456
|
+
hatch_fill: no description
|
|
457
|
+
title: no description
|
|
458
|
+
badge: no description
|
|
459
|
+
value: no description
|
|
460
|
+
unit: no description
|
|
461
|
+
footer_left: no description
|
|
462
|
+
footer_right: no description
|
|
463
|
+
label: no description
|
|
464
|
+
description: no description
|
|
465
|
+
data_table: no description
|
|
466
|
+
locale: no description
|
|
467
|
+
number_format: no description
|
|
468
|
+
tooltip: no description
|
|
469
|
+
style: The style of the component.
|
|
470
|
+
key: A unique key for the component.
|
|
471
|
+
id: The id for the component.
|
|
472
|
+
ref: The Var to pass as the ref to the component.
|
|
473
|
+
class_name: The class name for the component.
|
|
474
|
+
custom_attrs: Attributes passed directly to the component.
|
|
475
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
476
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
477
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
478
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
479
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
480
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
481
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
482
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
483
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
484
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
485
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
486
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
487
|
+
on_scroll: Fired when the user scrolls the element.
|
|
488
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
489
|
+
on_mount: Fired when the component is mounted to the page.
|
|
490
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
491
|
+
on_active_change: no description
|
|
492
|
+
on_select: no description
|
|
493
|
+
**props: The props of the component.
|
|
494
|
+
|
|
495
|
+
Returns:
|
|
496
|
+
The component.
|
|
497
|
+
"""
|
|
498
|
+
...
|
|
499
|
+
|
|
500
|
+
kpi_card = KpiCard.create
|
|
501
|
+
|
|
502
|
+
class BarChart(SilverpointChart):
|
|
503
|
+
@classmethod
|
|
504
|
+
def create(
|
|
505
|
+
cls,
|
|
506
|
+
*children,
|
|
507
|
+
x_key: Var[str] | str | None = None,
|
|
508
|
+
value_key: Var[str] | str | None = None,
|
|
509
|
+
secondary_key: Var[str] | str | None = None,
|
|
510
|
+
orientation: Literal["columns", "rows"] | Var[Literal["columns", "rows"]] | None = None,
|
|
511
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
512
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
513
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
514
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
515
|
+
| None = None,
|
|
516
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
517
|
+
seed: Var[int | str] | int | str | None = None,
|
|
518
|
+
height: Var[float | int] | float | int | None = None,
|
|
519
|
+
width: Var[float | int] | float | int | None = None,
|
|
520
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
521
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
522
|
+
title: Var[str] | str | None = None,
|
|
523
|
+
badge: Var[str] | str | None = None,
|
|
524
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
525
|
+
unit: Var[str] | str | None = None,
|
|
526
|
+
footer_left: Var[str] | str | None = None,
|
|
527
|
+
footer_right: Var[str] | str | None = None,
|
|
528
|
+
label: Var[str] | str | None = None,
|
|
529
|
+
description: Var[str] | str | None = None,
|
|
530
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
531
|
+
locale: Var[str] | str | None = None,
|
|
532
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
533
|
+
tooltip: Any | Var[Any] | None = None,
|
|
534
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
535
|
+
key: Any | None = None,
|
|
536
|
+
id: Any | None = None,
|
|
537
|
+
ref: Var | None = None,
|
|
538
|
+
class_name: Any | None = None,
|
|
539
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
540
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
541
|
+
on_blur: Optional[EventType[()]] = None,
|
|
542
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
543
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
544
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
545
|
+
on_focus: Optional[EventType[()]] = None,
|
|
546
|
+
on_mount: Optional[EventType[()]] = None,
|
|
547
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
548
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
549
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
550
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
551
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
552
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
553
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
554
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
555
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
556
|
+
on_select: Optional[EventType[Any]] = None,
|
|
557
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
558
|
+
**props,
|
|
559
|
+
) -> "BarChart":
|
|
560
|
+
"""Create the component.
|
|
561
|
+
|
|
562
|
+
Args:
|
|
563
|
+
*children: The children of the component.
|
|
564
|
+
x_key: Key of each row in `data` to read.
|
|
565
|
+
value_key: Key of each row in `data` to read.
|
|
566
|
+
secondary_key: Key of each row in `data` to read.
|
|
567
|
+
orientation: no description
|
|
568
|
+
data: no description
|
|
569
|
+
ground: no description
|
|
570
|
+
substrate: no description
|
|
571
|
+
mode: no description
|
|
572
|
+
seed: no description
|
|
573
|
+
height: no description
|
|
574
|
+
width: no description
|
|
575
|
+
chrome: no description
|
|
576
|
+
hatch_fill: no description
|
|
577
|
+
title: no description
|
|
578
|
+
badge: no description
|
|
579
|
+
value: no description
|
|
580
|
+
unit: no description
|
|
581
|
+
footer_left: no description
|
|
582
|
+
footer_right: no description
|
|
583
|
+
label: no description
|
|
584
|
+
description: no description
|
|
585
|
+
data_table: no description
|
|
586
|
+
locale: no description
|
|
587
|
+
number_format: no description
|
|
588
|
+
tooltip: no description
|
|
589
|
+
style: The style of the component.
|
|
590
|
+
key: A unique key for the component.
|
|
591
|
+
id: The id for the component.
|
|
592
|
+
ref: The Var to pass as the ref to the component.
|
|
593
|
+
class_name: The class name for the component.
|
|
594
|
+
custom_attrs: Attributes passed directly to the component.
|
|
595
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
596
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
597
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
598
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
599
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
600
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
601
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
602
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
603
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
604
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
605
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
606
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
607
|
+
on_scroll: Fired when the user scrolls the element.
|
|
608
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
609
|
+
on_mount: Fired when the component is mounted to the page.
|
|
610
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
611
|
+
on_active_change: no description
|
|
612
|
+
on_select: no description
|
|
613
|
+
**props: The props of the component.
|
|
614
|
+
|
|
615
|
+
Returns:
|
|
616
|
+
The component.
|
|
617
|
+
"""
|
|
618
|
+
...
|
|
619
|
+
|
|
620
|
+
bar_chart = BarChart.create
|
|
621
|
+
|
|
622
|
+
class StackedBarChart(SilverpointChart):
|
|
623
|
+
@classmethod
|
|
624
|
+
def create(
|
|
625
|
+
cls,
|
|
626
|
+
*children,
|
|
627
|
+
x_key: Var[str] | str | None = None,
|
|
628
|
+
keys: Var[list[str]] | list[str] | None = None,
|
|
629
|
+
names: Var[list[str]] | list[str] | None = None,
|
|
630
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
631
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
632
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
633
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
634
|
+
| None = None,
|
|
635
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
636
|
+
seed: Var[int | str] | int | str | None = None,
|
|
637
|
+
height: Var[float | int] | float | int | None = None,
|
|
638
|
+
width: Var[float | int] | float | int | None = None,
|
|
639
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
640
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
641
|
+
title: Var[str] | str | None = None,
|
|
642
|
+
badge: Var[str] | str | None = None,
|
|
643
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
644
|
+
unit: Var[str] | str | None = None,
|
|
645
|
+
footer_left: Var[str] | str | None = None,
|
|
646
|
+
footer_right: Var[str] | str | None = None,
|
|
647
|
+
label: Var[str] | str | None = None,
|
|
648
|
+
description: Var[str] | str | None = None,
|
|
649
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
650
|
+
locale: Var[str] | str | None = None,
|
|
651
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
652
|
+
tooltip: Any | Var[Any] | None = None,
|
|
653
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
654
|
+
key: Any | None = None,
|
|
655
|
+
id: Any | None = None,
|
|
656
|
+
ref: Var | None = None,
|
|
657
|
+
class_name: Any | None = None,
|
|
658
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
659
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
660
|
+
on_blur: Optional[EventType[()]] = None,
|
|
661
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
662
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
663
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
664
|
+
on_focus: Optional[EventType[()]] = None,
|
|
665
|
+
on_mount: Optional[EventType[()]] = None,
|
|
666
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
667
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
668
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
669
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
670
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
671
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
672
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
673
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
674
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
675
|
+
on_select: Optional[EventType[Any]] = None,
|
|
676
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
677
|
+
**props,
|
|
678
|
+
) -> "StackedBarChart":
|
|
679
|
+
"""Create the component.
|
|
680
|
+
|
|
681
|
+
Args:
|
|
682
|
+
*children: The children of the component.
|
|
683
|
+
x_key: Key of each row in `data` to read.
|
|
684
|
+
keys: no description
|
|
685
|
+
names: Display names of the keys, in order; the keys themselves by default.
|
|
686
|
+
data: no description
|
|
687
|
+
ground: no description
|
|
688
|
+
substrate: no description
|
|
689
|
+
mode: no description
|
|
690
|
+
seed: no description
|
|
691
|
+
height: no description
|
|
692
|
+
width: no description
|
|
693
|
+
chrome: no description
|
|
694
|
+
hatch_fill: no description
|
|
695
|
+
title: no description
|
|
696
|
+
badge: no description
|
|
697
|
+
value: no description
|
|
698
|
+
unit: no description
|
|
699
|
+
footer_left: no description
|
|
700
|
+
footer_right: no description
|
|
701
|
+
label: no description
|
|
702
|
+
description: no description
|
|
703
|
+
data_table: no description
|
|
704
|
+
locale: no description
|
|
705
|
+
number_format: no description
|
|
706
|
+
tooltip: no description
|
|
707
|
+
style: The style of the component.
|
|
708
|
+
key: A unique key for the component.
|
|
709
|
+
id: The id for the component.
|
|
710
|
+
ref: The Var to pass as the ref to the component.
|
|
711
|
+
class_name: The class name for the component.
|
|
712
|
+
custom_attrs: Attributes passed directly to the component.
|
|
713
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
714
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
715
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
716
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
717
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
718
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
719
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
720
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
721
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
722
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
723
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
724
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
725
|
+
on_scroll: Fired when the user scrolls the element.
|
|
726
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
727
|
+
on_mount: Fired when the component is mounted to the page.
|
|
728
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
729
|
+
on_active_change: no description
|
|
730
|
+
on_select: no description
|
|
731
|
+
**props: The props of the component.
|
|
732
|
+
|
|
733
|
+
Returns:
|
|
734
|
+
The component.
|
|
735
|
+
"""
|
|
736
|
+
...
|
|
737
|
+
|
|
738
|
+
stacked_bar_chart = StackedBarChart.create
|
|
739
|
+
|
|
740
|
+
class ComposedChart(SilverpointChart):
|
|
741
|
+
@classmethod
|
|
742
|
+
def create(
|
|
743
|
+
cls,
|
|
744
|
+
*children,
|
|
745
|
+
x_key: Var[str] | str | None = None,
|
|
746
|
+
bar_key: Var[str] | str | None = None,
|
|
747
|
+
line_key: Var[str] | str | None = None,
|
|
748
|
+
show_line: Var[bool] | bool | None = None,
|
|
749
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
750
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
751
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
752
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
753
|
+
| None = None,
|
|
754
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
755
|
+
seed: Var[int | str] | int | str | None = None,
|
|
756
|
+
height: Var[float | int] | float | int | None = None,
|
|
757
|
+
width: Var[float | int] | float | int | None = None,
|
|
758
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
759
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
760
|
+
title: Var[str] | str | None = None,
|
|
761
|
+
badge: Var[str] | str | None = None,
|
|
762
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
763
|
+
unit: Var[str] | str | None = None,
|
|
764
|
+
footer_left: Var[str] | str | None = None,
|
|
765
|
+
footer_right: Var[str] | str | None = None,
|
|
766
|
+
label: Var[str] | str | None = None,
|
|
767
|
+
description: Var[str] | str | None = None,
|
|
768
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
769
|
+
locale: Var[str] | str | None = None,
|
|
770
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
771
|
+
tooltip: Any | Var[Any] | None = None,
|
|
772
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
773
|
+
key: Any | None = None,
|
|
774
|
+
id: Any | None = None,
|
|
775
|
+
ref: Var | None = None,
|
|
776
|
+
class_name: Any | None = None,
|
|
777
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
778
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
779
|
+
on_blur: Optional[EventType[()]] = None,
|
|
780
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
781
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
782
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
783
|
+
on_focus: Optional[EventType[()]] = None,
|
|
784
|
+
on_mount: Optional[EventType[()]] = None,
|
|
785
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
786
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
787
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
788
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
789
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
790
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
791
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
792
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
793
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
794
|
+
on_select: Optional[EventType[Any]] = None,
|
|
795
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
796
|
+
**props,
|
|
797
|
+
) -> "ComposedChart":
|
|
798
|
+
"""Create the component.
|
|
799
|
+
|
|
800
|
+
Args:
|
|
801
|
+
*children: The children of the component.
|
|
802
|
+
x_key: Key of each row in `data` to read.
|
|
803
|
+
bar_key: Key of each row in `data` to read.
|
|
804
|
+
line_key: Key of each row in `data` to read.
|
|
805
|
+
show_line: no description
|
|
806
|
+
data: no description
|
|
807
|
+
ground: no description
|
|
808
|
+
substrate: no description
|
|
809
|
+
mode: no description
|
|
810
|
+
seed: no description
|
|
811
|
+
height: no description
|
|
812
|
+
width: no description
|
|
813
|
+
chrome: no description
|
|
814
|
+
hatch_fill: no description
|
|
815
|
+
title: no description
|
|
816
|
+
badge: no description
|
|
817
|
+
value: no description
|
|
818
|
+
unit: no description
|
|
819
|
+
footer_left: no description
|
|
820
|
+
footer_right: no description
|
|
821
|
+
label: no description
|
|
822
|
+
description: no description
|
|
823
|
+
data_table: no description
|
|
824
|
+
locale: no description
|
|
825
|
+
number_format: no description
|
|
826
|
+
tooltip: no description
|
|
827
|
+
style: The style of the component.
|
|
828
|
+
key: A unique key for the component.
|
|
829
|
+
id: The id for the component.
|
|
830
|
+
ref: The Var to pass as the ref to the component.
|
|
831
|
+
class_name: The class name for the component.
|
|
832
|
+
custom_attrs: Attributes passed directly to the component.
|
|
833
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
834
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
835
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
836
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
837
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
838
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
839
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
840
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
841
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
842
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
843
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
844
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
845
|
+
on_scroll: Fired when the user scrolls the element.
|
|
846
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
847
|
+
on_mount: Fired when the component is mounted to the page.
|
|
848
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
849
|
+
on_active_change: no description
|
|
850
|
+
on_select: no description
|
|
851
|
+
**props: The props of the component.
|
|
852
|
+
|
|
853
|
+
Returns:
|
|
854
|
+
The component.
|
|
855
|
+
"""
|
|
856
|
+
...
|
|
857
|
+
|
|
858
|
+
composed_chart = ComposedChart.create
|
|
859
|
+
|
|
860
|
+
class WaterfallChart(SilverpointChart):
|
|
861
|
+
@classmethod
|
|
862
|
+
def create(
|
|
863
|
+
cls,
|
|
864
|
+
*children,
|
|
865
|
+
step_key: Var[str] | str | None = None,
|
|
866
|
+
base_key: Var[str] | str | None = None,
|
|
867
|
+
delta_key: Var[str] | str | None = None,
|
|
868
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
869
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
870
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
871
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
872
|
+
| None = None,
|
|
873
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
874
|
+
seed: Var[int | str] | int | str | None = None,
|
|
875
|
+
height: Var[float | int] | float | int | None = None,
|
|
876
|
+
width: Var[float | int] | float | int | None = None,
|
|
877
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
878
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
879
|
+
title: Var[str] | str | None = None,
|
|
880
|
+
badge: Var[str] | str | None = None,
|
|
881
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
882
|
+
unit: Var[str] | str | None = None,
|
|
883
|
+
footer_left: Var[str] | str | None = None,
|
|
884
|
+
footer_right: Var[str] | str | None = None,
|
|
885
|
+
label: Var[str] | str | None = None,
|
|
886
|
+
description: Var[str] | str | None = None,
|
|
887
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
888
|
+
locale: Var[str] | str | None = None,
|
|
889
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
890
|
+
tooltip: Any | Var[Any] | None = None,
|
|
891
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
892
|
+
key: Any | None = None,
|
|
893
|
+
id: Any | None = None,
|
|
894
|
+
ref: Var | None = None,
|
|
895
|
+
class_name: Any | None = None,
|
|
896
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
897
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
898
|
+
on_blur: Optional[EventType[()]] = None,
|
|
899
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
900
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
901
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
902
|
+
on_focus: Optional[EventType[()]] = None,
|
|
903
|
+
on_mount: Optional[EventType[()]] = None,
|
|
904
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
905
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
906
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
907
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
908
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
909
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
910
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
911
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
912
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
913
|
+
on_select: Optional[EventType[Any]] = None,
|
|
914
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
915
|
+
**props,
|
|
916
|
+
) -> "WaterfallChart":
|
|
917
|
+
"""Create the component.
|
|
918
|
+
|
|
919
|
+
Args:
|
|
920
|
+
*children: The children of the component.
|
|
921
|
+
step_key: Key of each row in `data` to read.
|
|
922
|
+
base_key: An absolute total: the bar starts at zero and resets the running total.
|
|
923
|
+
delta_key: A change from the running total.
|
|
924
|
+
data: no description
|
|
925
|
+
ground: no description
|
|
926
|
+
substrate: no description
|
|
927
|
+
mode: no description
|
|
928
|
+
seed: no description
|
|
929
|
+
height: no description
|
|
930
|
+
width: no description
|
|
931
|
+
chrome: no description
|
|
932
|
+
hatch_fill: no description
|
|
933
|
+
title: no description
|
|
934
|
+
badge: no description
|
|
935
|
+
value: no description
|
|
936
|
+
unit: no description
|
|
937
|
+
footer_left: no description
|
|
938
|
+
footer_right: no description
|
|
939
|
+
label: no description
|
|
940
|
+
description: no description
|
|
941
|
+
data_table: no description
|
|
942
|
+
locale: no description
|
|
943
|
+
number_format: no description
|
|
944
|
+
tooltip: no description
|
|
945
|
+
style: The style of the component.
|
|
946
|
+
key: A unique key for the component.
|
|
947
|
+
id: The id for the component.
|
|
948
|
+
ref: The Var to pass as the ref to the component.
|
|
949
|
+
class_name: The class name for the component.
|
|
950
|
+
custom_attrs: Attributes passed directly to the component.
|
|
951
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
952
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
953
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
954
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
955
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
956
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
957
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
958
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
959
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
960
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
961
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
962
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
963
|
+
on_scroll: Fired when the user scrolls the element.
|
|
964
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
965
|
+
on_mount: Fired when the component is mounted to the page.
|
|
966
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
967
|
+
on_active_change: no description
|
|
968
|
+
on_select: no description
|
|
969
|
+
**props: The props of the component.
|
|
970
|
+
|
|
971
|
+
Returns:
|
|
972
|
+
The component.
|
|
973
|
+
"""
|
|
974
|
+
...
|
|
975
|
+
|
|
976
|
+
waterfall_chart = WaterfallChart.create
|
|
977
|
+
|
|
978
|
+
class FunnelChart(SilverpointChart):
|
|
979
|
+
@classmethod
|
|
980
|
+
def create(
|
|
981
|
+
cls,
|
|
982
|
+
*children,
|
|
983
|
+
stage_key: Var[str] | str | None = None,
|
|
984
|
+
value_key: Var[str] | str | None = None,
|
|
985
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
986
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
987
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
988
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
989
|
+
| None = None,
|
|
990
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
991
|
+
seed: Var[int | str] | int | str | None = None,
|
|
992
|
+
height: Var[float | int] | float | int | None = None,
|
|
993
|
+
width: Var[float | int] | float | int | None = None,
|
|
994
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
995
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
996
|
+
title: Var[str] | str | None = None,
|
|
997
|
+
badge: Var[str] | str | None = None,
|
|
998
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
999
|
+
unit: Var[str] | str | None = None,
|
|
1000
|
+
footer_left: Var[str] | str | None = None,
|
|
1001
|
+
footer_right: Var[str] | str | None = None,
|
|
1002
|
+
label: Var[str] | str | None = None,
|
|
1003
|
+
description: Var[str] | str | None = None,
|
|
1004
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
1005
|
+
locale: Var[str] | str | None = None,
|
|
1006
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
1007
|
+
tooltip: Any | Var[Any] | None = None,
|
|
1008
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
1009
|
+
key: Any | None = None,
|
|
1010
|
+
id: Any | None = None,
|
|
1011
|
+
ref: Var | None = None,
|
|
1012
|
+
class_name: Any | None = None,
|
|
1013
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
1014
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
1015
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1016
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1017
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1018
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1019
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1020
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1021
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1022
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1023
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1024
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1025
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1026
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1027
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1028
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1029
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
1030
|
+
on_select: Optional[EventType[Any]] = None,
|
|
1031
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1032
|
+
**props,
|
|
1033
|
+
) -> "FunnelChart":
|
|
1034
|
+
"""Create the component.
|
|
1035
|
+
|
|
1036
|
+
Args:
|
|
1037
|
+
*children: The children of the component.
|
|
1038
|
+
stage_key: Key of each row in `data` to read.
|
|
1039
|
+
value_key: Key of each row in `data` to read.
|
|
1040
|
+
data: no description
|
|
1041
|
+
ground: no description
|
|
1042
|
+
substrate: no description
|
|
1043
|
+
mode: no description
|
|
1044
|
+
seed: no description
|
|
1045
|
+
height: no description
|
|
1046
|
+
width: no description
|
|
1047
|
+
chrome: no description
|
|
1048
|
+
hatch_fill: no description
|
|
1049
|
+
title: no description
|
|
1050
|
+
badge: no description
|
|
1051
|
+
value: no description
|
|
1052
|
+
unit: no description
|
|
1053
|
+
footer_left: no description
|
|
1054
|
+
footer_right: no description
|
|
1055
|
+
label: no description
|
|
1056
|
+
description: no description
|
|
1057
|
+
data_table: no description
|
|
1058
|
+
locale: no description
|
|
1059
|
+
number_format: no description
|
|
1060
|
+
tooltip: no description
|
|
1061
|
+
style: The style of the component.
|
|
1062
|
+
key: A unique key for the component.
|
|
1063
|
+
id: The id for the component.
|
|
1064
|
+
ref: The Var to pass as the ref to the component.
|
|
1065
|
+
class_name: The class name for the component.
|
|
1066
|
+
custom_attrs: Attributes passed directly to the component.
|
|
1067
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
1068
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
1069
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
1070
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
1071
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
1072
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
1073
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
1074
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
1075
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
1076
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
1077
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
1078
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
1079
|
+
on_scroll: Fired when the user scrolls the element.
|
|
1080
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
1081
|
+
on_mount: Fired when the component is mounted to the page.
|
|
1082
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
1083
|
+
on_active_change: no description
|
|
1084
|
+
on_select: no description
|
|
1085
|
+
**props: The props of the component.
|
|
1086
|
+
|
|
1087
|
+
Returns:
|
|
1088
|
+
The component.
|
|
1089
|
+
"""
|
|
1090
|
+
...
|
|
1091
|
+
|
|
1092
|
+
funnel_chart = FunnelChart.create
|
|
1093
|
+
|
|
1094
|
+
class BulletChart(SilverpointChart):
|
|
1095
|
+
@classmethod
|
|
1096
|
+
def create(
|
|
1097
|
+
cls,
|
|
1098
|
+
*children,
|
|
1099
|
+
title_key: Var[str] | str | None = None,
|
|
1100
|
+
actual_key: Var[str] | str | None = None,
|
|
1101
|
+
target_key: Var[str] | str | None = None,
|
|
1102
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
1103
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
1104
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
1105
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
1106
|
+
| None = None,
|
|
1107
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
1108
|
+
seed: Var[int | str] | int | str | None = None,
|
|
1109
|
+
height: Var[float | int] | float | int | None = None,
|
|
1110
|
+
width: Var[float | int] | float | int | None = None,
|
|
1111
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
1112
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
1113
|
+
title: Var[str] | str | None = None,
|
|
1114
|
+
badge: Var[str] | str | None = None,
|
|
1115
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
1116
|
+
unit: Var[str] | str | None = None,
|
|
1117
|
+
footer_left: Var[str] | str | None = None,
|
|
1118
|
+
footer_right: Var[str] | str | None = None,
|
|
1119
|
+
label: Var[str] | str | None = None,
|
|
1120
|
+
description: Var[str] | str | None = None,
|
|
1121
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
1122
|
+
locale: Var[str] | str | None = None,
|
|
1123
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
1124
|
+
tooltip: Any | Var[Any] | None = None,
|
|
1125
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
1126
|
+
key: Any | None = None,
|
|
1127
|
+
id: Any | None = None,
|
|
1128
|
+
ref: Var | None = None,
|
|
1129
|
+
class_name: Any | None = None,
|
|
1130
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
1131
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
1132
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1133
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1134
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1135
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1136
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1137
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1138
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1139
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1140
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1141
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1142
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1143
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1144
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1145
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1146
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
1147
|
+
on_select: Optional[EventType[Any]] = None,
|
|
1148
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1149
|
+
**props,
|
|
1150
|
+
) -> "BulletChart":
|
|
1151
|
+
"""Create the component.
|
|
1152
|
+
|
|
1153
|
+
Args:
|
|
1154
|
+
*children: The children of the component.
|
|
1155
|
+
title_key: Key of each row in `data` to read.
|
|
1156
|
+
actual_key: Key of each row in `data` to read.
|
|
1157
|
+
target_key: Key of each row in `data` to read.
|
|
1158
|
+
data: no description
|
|
1159
|
+
ground: no description
|
|
1160
|
+
substrate: no description
|
|
1161
|
+
mode: no description
|
|
1162
|
+
seed: no description
|
|
1163
|
+
height: no description
|
|
1164
|
+
width: no description
|
|
1165
|
+
chrome: no description
|
|
1166
|
+
hatch_fill: no description
|
|
1167
|
+
title: no description
|
|
1168
|
+
badge: no description
|
|
1169
|
+
value: no description
|
|
1170
|
+
unit: no description
|
|
1171
|
+
footer_left: no description
|
|
1172
|
+
footer_right: no description
|
|
1173
|
+
label: no description
|
|
1174
|
+
description: no description
|
|
1175
|
+
data_table: no description
|
|
1176
|
+
locale: no description
|
|
1177
|
+
number_format: no description
|
|
1178
|
+
tooltip: no description
|
|
1179
|
+
style: The style of the component.
|
|
1180
|
+
key: A unique key for the component.
|
|
1181
|
+
id: The id for the component.
|
|
1182
|
+
ref: The Var to pass as the ref to the component.
|
|
1183
|
+
class_name: The class name for the component.
|
|
1184
|
+
custom_attrs: Attributes passed directly to the component.
|
|
1185
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
1186
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
1187
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
1188
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
1189
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
1190
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
1191
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
1192
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
1193
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
1194
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
1195
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
1196
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
1197
|
+
on_scroll: Fired when the user scrolls the element.
|
|
1198
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
1199
|
+
on_mount: Fired when the component is mounted to the page.
|
|
1200
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
1201
|
+
on_active_change: no description
|
|
1202
|
+
on_select: no description
|
|
1203
|
+
**props: The props of the component.
|
|
1204
|
+
|
|
1205
|
+
Returns:
|
|
1206
|
+
The component.
|
|
1207
|
+
"""
|
|
1208
|
+
...
|
|
1209
|
+
|
|
1210
|
+
bullet_chart = BulletChart.create
|
|
1211
|
+
|
|
1212
|
+
class PyramidChart(SilverpointChart):
|
|
1213
|
+
@classmethod
|
|
1214
|
+
def create(
|
|
1215
|
+
cls,
|
|
1216
|
+
*children,
|
|
1217
|
+
label_key: Var[str] | str | None = None,
|
|
1218
|
+
width_key: Var[str] | str | None = None,
|
|
1219
|
+
tone_key: Var[str] | str | None = None,
|
|
1220
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
1221
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
1222
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
1223
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
1224
|
+
| None = None,
|
|
1225
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
1226
|
+
seed: Var[int | str] | int | str | None = None,
|
|
1227
|
+
height: Var[float | int] | float | int | None = None,
|
|
1228
|
+
width: Var[float | int] | float | int | None = None,
|
|
1229
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
1230
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
1231
|
+
title: Var[str] | str | None = None,
|
|
1232
|
+
badge: Var[str] | str | None = None,
|
|
1233
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
1234
|
+
unit: Var[str] | str | None = None,
|
|
1235
|
+
footer_left: Var[str] | str | None = None,
|
|
1236
|
+
footer_right: Var[str] | str | None = None,
|
|
1237
|
+
label: Var[str] | str | None = None,
|
|
1238
|
+
description: Var[str] | str | None = None,
|
|
1239
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
1240
|
+
locale: Var[str] | str | None = None,
|
|
1241
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
1242
|
+
tooltip: Any | Var[Any] | None = None,
|
|
1243
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
1244
|
+
key: Any | None = None,
|
|
1245
|
+
id: Any | None = None,
|
|
1246
|
+
ref: Var | None = None,
|
|
1247
|
+
class_name: Any | None = None,
|
|
1248
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
1249
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
1250
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1251
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1252
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1253
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1254
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1255
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1256
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1257
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1258
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1259
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1260
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1261
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1262
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1263
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1264
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
1265
|
+
on_select: Optional[EventType[Any]] = None,
|
|
1266
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1267
|
+
**props,
|
|
1268
|
+
) -> "PyramidChart":
|
|
1269
|
+
"""Create the component.
|
|
1270
|
+
|
|
1271
|
+
Args:
|
|
1272
|
+
*children: The children of the component.
|
|
1273
|
+
label_key: Key of each row in `data` to read.
|
|
1274
|
+
width_key: Key of each row in `data` to read.
|
|
1275
|
+
tone_key: Key of each row in `data` to read.
|
|
1276
|
+
data: no description
|
|
1277
|
+
ground: no description
|
|
1278
|
+
substrate: no description
|
|
1279
|
+
mode: no description
|
|
1280
|
+
seed: no description
|
|
1281
|
+
height: no description
|
|
1282
|
+
width: no description
|
|
1283
|
+
chrome: no description
|
|
1284
|
+
hatch_fill: no description
|
|
1285
|
+
title: no description
|
|
1286
|
+
badge: no description
|
|
1287
|
+
value: no description
|
|
1288
|
+
unit: no description
|
|
1289
|
+
footer_left: no description
|
|
1290
|
+
footer_right: no description
|
|
1291
|
+
label: no description
|
|
1292
|
+
description: no description
|
|
1293
|
+
data_table: no description
|
|
1294
|
+
locale: no description
|
|
1295
|
+
number_format: no description
|
|
1296
|
+
tooltip: no description
|
|
1297
|
+
style: The style of the component.
|
|
1298
|
+
key: A unique key for the component.
|
|
1299
|
+
id: The id for the component.
|
|
1300
|
+
ref: The Var to pass as the ref to the component.
|
|
1301
|
+
class_name: The class name for the component.
|
|
1302
|
+
custom_attrs: Attributes passed directly to the component.
|
|
1303
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
1304
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
1305
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
1306
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
1307
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
1308
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
1309
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
1310
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
1311
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
1312
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
1313
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
1314
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
1315
|
+
on_scroll: Fired when the user scrolls the element.
|
|
1316
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
1317
|
+
on_mount: Fired when the component is mounted to the page.
|
|
1318
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
1319
|
+
on_active_change: no description
|
|
1320
|
+
on_select: no description
|
|
1321
|
+
**props: The props of the component.
|
|
1322
|
+
|
|
1323
|
+
Returns:
|
|
1324
|
+
The component.
|
|
1325
|
+
"""
|
|
1326
|
+
...
|
|
1327
|
+
|
|
1328
|
+
pyramid_chart = PyramidChart.create
|
|
1329
|
+
|
|
1330
|
+
class CandlestickChart(SilverpointChart):
|
|
1331
|
+
@classmethod
|
|
1332
|
+
def create(
|
|
1333
|
+
cls,
|
|
1334
|
+
*children,
|
|
1335
|
+
time_key: Var[str] | str | None = None,
|
|
1336
|
+
open_key: Var[str] | str | None = None,
|
|
1337
|
+
high_key: Var[str] | str | None = None,
|
|
1338
|
+
low_key: Var[str] | str | None = None,
|
|
1339
|
+
close_key: Var[str] | str | None = None,
|
|
1340
|
+
bounds: Var[list[float | int]] | list[float | int] | None = None,
|
|
1341
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
1342
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
1343
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
1344
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
1345
|
+
| None = None,
|
|
1346
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
1347
|
+
seed: Var[int | str] | int | str | None = None,
|
|
1348
|
+
height: Var[float | int] | float | int | None = None,
|
|
1349
|
+
width: Var[float | int] | float | int | None = None,
|
|
1350
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
1351
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
1352
|
+
title: Var[str] | str | None = None,
|
|
1353
|
+
badge: Var[str] | str | None = None,
|
|
1354
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
1355
|
+
unit: Var[str] | str | None = None,
|
|
1356
|
+
footer_left: Var[str] | str | None = None,
|
|
1357
|
+
footer_right: Var[str] | str | None = None,
|
|
1358
|
+
label: Var[str] | str | None = None,
|
|
1359
|
+
description: Var[str] | str | None = None,
|
|
1360
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
1361
|
+
locale: Var[str] | str | None = None,
|
|
1362
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
1363
|
+
tooltip: Any | Var[Any] | None = None,
|
|
1364
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
1365
|
+
key: Any | None = None,
|
|
1366
|
+
id: Any | None = None,
|
|
1367
|
+
ref: Var | None = None,
|
|
1368
|
+
class_name: Any | None = None,
|
|
1369
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
1370
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
1371
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1372
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1373
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1374
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1375
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1376
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1377
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1378
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1379
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1380
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1381
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1382
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1383
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1384
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1385
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
1386
|
+
on_select: Optional[EventType[Any]] = None,
|
|
1387
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1388
|
+
**props,
|
|
1389
|
+
) -> "CandlestickChart":
|
|
1390
|
+
"""Create the component.
|
|
1391
|
+
|
|
1392
|
+
Args:
|
|
1393
|
+
*children: The children of the component.
|
|
1394
|
+
time_key: Key of each row in `data` to read.
|
|
1395
|
+
open_key: Key of each row in `data` to read.
|
|
1396
|
+
high_key: Key of each row in `data` to read.
|
|
1397
|
+
low_key: Key of each row in `data` to read.
|
|
1398
|
+
close_key: Key of each row in `data` to read.
|
|
1399
|
+
bounds: Price bounds of the scale; derived from the data when omitted.
|
|
1400
|
+
data: no description
|
|
1401
|
+
ground: no description
|
|
1402
|
+
substrate: no description
|
|
1403
|
+
mode: no description
|
|
1404
|
+
seed: no description
|
|
1405
|
+
height: no description
|
|
1406
|
+
width: no description
|
|
1407
|
+
chrome: no description
|
|
1408
|
+
hatch_fill: no description
|
|
1409
|
+
title: no description
|
|
1410
|
+
badge: no description
|
|
1411
|
+
value: no description
|
|
1412
|
+
unit: no description
|
|
1413
|
+
footer_left: no description
|
|
1414
|
+
footer_right: no description
|
|
1415
|
+
label: no description
|
|
1416
|
+
description: no description
|
|
1417
|
+
data_table: no description
|
|
1418
|
+
locale: no description
|
|
1419
|
+
number_format: no description
|
|
1420
|
+
tooltip: no description
|
|
1421
|
+
style: The style of the component.
|
|
1422
|
+
key: A unique key for the component.
|
|
1423
|
+
id: The id for the component.
|
|
1424
|
+
ref: The Var to pass as the ref to the component.
|
|
1425
|
+
class_name: The class name for the component.
|
|
1426
|
+
custom_attrs: Attributes passed directly to the component.
|
|
1427
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
1428
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
1429
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
1430
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
1431
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
1432
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
1433
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
1434
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
1435
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
1436
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
1437
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
1438
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
1439
|
+
on_scroll: Fired when the user scrolls the element.
|
|
1440
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
1441
|
+
on_mount: Fired when the component is mounted to the page.
|
|
1442
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
1443
|
+
on_active_change: no description
|
|
1444
|
+
on_select: no description
|
|
1445
|
+
**props: The props of the component.
|
|
1446
|
+
|
|
1447
|
+
Returns:
|
|
1448
|
+
The component.
|
|
1449
|
+
"""
|
|
1450
|
+
...
|
|
1451
|
+
|
|
1452
|
+
candlestick_chart = CandlestickChart.create
|
|
1453
|
+
|
|
1454
|
+
class AreaChart(SilverpointChart):
|
|
1455
|
+
@classmethod
|
|
1456
|
+
def create(
|
|
1457
|
+
cls,
|
|
1458
|
+
*children,
|
|
1459
|
+
x_key: Var[str] | str | None = None,
|
|
1460
|
+
value_key: Var[str] | str | None = None,
|
|
1461
|
+
curve: Literal["linear", "monotone", "natural", "step"]
|
|
1462
|
+
| Var[Literal["linear", "monotone", "natural", "step"]]
|
|
1463
|
+
| None = None,
|
|
1464
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
1465
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
1466
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
1467
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
1468
|
+
| None = None,
|
|
1469
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
1470
|
+
seed: Var[int | str] | int | str | None = None,
|
|
1471
|
+
height: Var[float | int] | float | int | None = None,
|
|
1472
|
+
width: Var[float | int] | float | int | None = None,
|
|
1473
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
1474
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
1475
|
+
title: Var[str] | str | None = None,
|
|
1476
|
+
badge: Var[str] | str | None = None,
|
|
1477
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
1478
|
+
unit: Var[str] | str | None = None,
|
|
1479
|
+
footer_left: Var[str] | str | None = None,
|
|
1480
|
+
footer_right: Var[str] | str | None = None,
|
|
1481
|
+
label: Var[str] | str | None = None,
|
|
1482
|
+
description: Var[str] | str | None = None,
|
|
1483
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
1484
|
+
locale: Var[str] | str | None = None,
|
|
1485
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
1486
|
+
tooltip: Any | Var[Any] | None = None,
|
|
1487
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
1488
|
+
key: Any | None = None,
|
|
1489
|
+
id: Any | None = None,
|
|
1490
|
+
ref: Var | None = None,
|
|
1491
|
+
class_name: Any | None = None,
|
|
1492
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
1493
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
1494
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1495
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1496
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1497
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1498
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1499
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1500
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1501
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1502
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1503
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1504
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1505
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1506
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1507
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1508
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
1509
|
+
on_select: Optional[EventType[Any]] = None,
|
|
1510
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1511
|
+
**props,
|
|
1512
|
+
) -> "AreaChart":
|
|
1513
|
+
"""Create the component.
|
|
1514
|
+
|
|
1515
|
+
Args:
|
|
1516
|
+
*children: The children of the component.
|
|
1517
|
+
x_key: Key of each row in `data` to read.
|
|
1518
|
+
value_key: Key of each row in `data` to read.
|
|
1519
|
+
curve: no description
|
|
1520
|
+
data: no description
|
|
1521
|
+
ground: no description
|
|
1522
|
+
substrate: no description
|
|
1523
|
+
mode: no description
|
|
1524
|
+
seed: no description
|
|
1525
|
+
height: no description
|
|
1526
|
+
width: no description
|
|
1527
|
+
chrome: no description
|
|
1528
|
+
hatch_fill: no description
|
|
1529
|
+
title: no description
|
|
1530
|
+
badge: no description
|
|
1531
|
+
value: no description
|
|
1532
|
+
unit: no description
|
|
1533
|
+
footer_left: no description
|
|
1534
|
+
footer_right: no description
|
|
1535
|
+
label: no description
|
|
1536
|
+
description: no description
|
|
1537
|
+
data_table: no description
|
|
1538
|
+
locale: no description
|
|
1539
|
+
number_format: no description
|
|
1540
|
+
tooltip: no description
|
|
1541
|
+
style: The style of the component.
|
|
1542
|
+
key: A unique key for the component.
|
|
1543
|
+
id: The id for the component.
|
|
1544
|
+
ref: The Var to pass as the ref to the component.
|
|
1545
|
+
class_name: The class name for the component.
|
|
1546
|
+
custom_attrs: Attributes passed directly to the component.
|
|
1547
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
1548
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
1549
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
1550
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
1551
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
1552
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
1553
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
1554
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
1555
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
1556
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
1557
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
1558
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
1559
|
+
on_scroll: Fired when the user scrolls the element.
|
|
1560
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
1561
|
+
on_mount: Fired when the component is mounted to the page.
|
|
1562
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
1563
|
+
on_active_change: no description
|
|
1564
|
+
on_select: no description
|
|
1565
|
+
**props: The props of the component.
|
|
1566
|
+
|
|
1567
|
+
Returns:
|
|
1568
|
+
The component.
|
|
1569
|
+
"""
|
|
1570
|
+
...
|
|
1571
|
+
|
|
1572
|
+
area_chart = AreaChart.create
|
|
1573
|
+
|
|
1574
|
+
class RangeBandChart(SilverpointChart):
|
|
1575
|
+
@classmethod
|
|
1576
|
+
def create(
|
|
1577
|
+
cls,
|
|
1578
|
+
*children,
|
|
1579
|
+
x_key: Var[str] | str | None = None,
|
|
1580
|
+
low_key: Var[str] | str | None = None,
|
|
1581
|
+
high_key: Var[str] | str | None = None,
|
|
1582
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
1583
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
1584
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
1585
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
1586
|
+
| None = None,
|
|
1587
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
1588
|
+
seed: Var[int | str] | int | str | None = None,
|
|
1589
|
+
height: Var[float | int] | float | int | None = None,
|
|
1590
|
+
width: Var[float | int] | float | int | None = None,
|
|
1591
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
1592
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
1593
|
+
title: Var[str] | str | None = None,
|
|
1594
|
+
badge: Var[str] | str | None = None,
|
|
1595
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
1596
|
+
unit: Var[str] | str | None = None,
|
|
1597
|
+
footer_left: Var[str] | str | None = None,
|
|
1598
|
+
footer_right: Var[str] | str | None = None,
|
|
1599
|
+
label: Var[str] | str | None = None,
|
|
1600
|
+
description: Var[str] | str | None = None,
|
|
1601
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
1602
|
+
locale: Var[str] | str | None = None,
|
|
1603
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
1604
|
+
tooltip: Any | Var[Any] | None = None,
|
|
1605
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
1606
|
+
key: Any | None = None,
|
|
1607
|
+
id: Any | None = None,
|
|
1608
|
+
ref: Var | None = None,
|
|
1609
|
+
class_name: Any | None = None,
|
|
1610
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
1611
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
1612
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1613
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1614
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1615
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1616
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1617
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1618
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1619
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1620
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1621
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1622
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1623
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1624
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1625
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1626
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
1627
|
+
on_select: Optional[EventType[Any]] = None,
|
|
1628
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1629
|
+
**props,
|
|
1630
|
+
) -> "RangeBandChart":
|
|
1631
|
+
"""Create the component.
|
|
1632
|
+
|
|
1633
|
+
Args:
|
|
1634
|
+
*children: The children of the component.
|
|
1635
|
+
x_key: Key of each row in `data` to read.
|
|
1636
|
+
low_key: Key of each row in `data` to read.
|
|
1637
|
+
high_key: Key of each row in `data` to read.
|
|
1638
|
+
data: no description
|
|
1639
|
+
ground: no description
|
|
1640
|
+
substrate: no description
|
|
1641
|
+
mode: no description
|
|
1642
|
+
seed: no description
|
|
1643
|
+
height: no description
|
|
1644
|
+
width: no description
|
|
1645
|
+
chrome: no description
|
|
1646
|
+
hatch_fill: no description
|
|
1647
|
+
title: no description
|
|
1648
|
+
badge: no description
|
|
1649
|
+
value: no description
|
|
1650
|
+
unit: no description
|
|
1651
|
+
footer_left: no description
|
|
1652
|
+
footer_right: no description
|
|
1653
|
+
label: no description
|
|
1654
|
+
description: no description
|
|
1655
|
+
data_table: no description
|
|
1656
|
+
locale: no description
|
|
1657
|
+
number_format: no description
|
|
1658
|
+
tooltip: no description
|
|
1659
|
+
style: The style of the component.
|
|
1660
|
+
key: A unique key for the component.
|
|
1661
|
+
id: The id for the component.
|
|
1662
|
+
ref: The Var to pass as the ref to the component.
|
|
1663
|
+
class_name: The class name for the component.
|
|
1664
|
+
custom_attrs: Attributes passed directly to the component.
|
|
1665
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
1666
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
1667
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
1668
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
1669
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
1670
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
1671
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
1672
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
1673
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
1674
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
1675
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
1676
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
1677
|
+
on_scroll: Fired when the user scrolls the element.
|
|
1678
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
1679
|
+
on_mount: Fired when the component is mounted to the page.
|
|
1680
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
1681
|
+
on_active_change: no description
|
|
1682
|
+
on_select: no description
|
|
1683
|
+
**props: The props of the component.
|
|
1684
|
+
|
|
1685
|
+
Returns:
|
|
1686
|
+
The component.
|
|
1687
|
+
"""
|
|
1688
|
+
...
|
|
1689
|
+
|
|
1690
|
+
range_band_chart = RangeBandChart.create
|
|
1691
|
+
|
|
1692
|
+
class StreamChart(SilverpointChart):
|
|
1693
|
+
@classmethod
|
|
1694
|
+
def create(
|
|
1695
|
+
cls,
|
|
1696
|
+
*children,
|
|
1697
|
+
x_key: Var[str] | str | None = None,
|
|
1698
|
+
keys: Var[list[str]] | list[str] | None = None,
|
|
1699
|
+
stacked: Var[bool] | bool | None = None,
|
|
1700
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
1701
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
1702
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
1703
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
1704
|
+
| None = None,
|
|
1705
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
1706
|
+
seed: Var[int | str] | int | str | None = None,
|
|
1707
|
+
height: Var[float | int] | float | int | None = None,
|
|
1708
|
+
width: Var[float | int] | float | int | None = None,
|
|
1709
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
1710
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
1711
|
+
title: Var[str] | str | None = None,
|
|
1712
|
+
badge: Var[str] | str | None = None,
|
|
1713
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
1714
|
+
unit: Var[str] | str | None = None,
|
|
1715
|
+
footer_left: Var[str] | str | None = None,
|
|
1716
|
+
footer_right: Var[str] | str | None = None,
|
|
1717
|
+
label: Var[str] | str | None = None,
|
|
1718
|
+
description: Var[str] | str | None = None,
|
|
1719
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
1720
|
+
locale: Var[str] | str | None = None,
|
|
1721
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
1722
|
+
tooltip: Any | Var[Any] | None = None,
|
|
1723
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
1724
|
+
key: Any | None = None,
|
|
1725
|
+
id: Any | None = None,
|
|
1726
|
+
ref: Var | None = None,
|
|
1727
|
+
class_name: Any | None = None,
|
|
1728
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
1729
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
1730
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1731
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1732
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1733
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1734
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1735
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1736
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1737
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1738
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1739
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1740
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1741
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1742
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1743
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1744
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
1745
|
+
on_select: Optional[EventType[Any]] = None,
|
|
1746
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1747
|
+
**props,
|
|
1748
|
+
) -> "StreamChart":
|
|
1749
|
+
"""Create the component.
|
|
1750
|
+
|
|
1751
|
+
Args:
|
|
1752
|
+
*children: The children of the component.
|
|
1753
|
+
x_key: Key of each row in `data` to read.
|
|
1754
|
+
keys: no description
|
|
1755
|
+
stacked: no description
|
|
1756
|
+
data: no description
|
|
1757
|
+
ground: no description
|
|
1758
|
+
substrate: no description
|
|
1759
|
+
mode: no description
|
|
1760
|
+
seed: no description
|
|
1761
|
+
height: no description
|
|
1762
|
+
width: no description
|
|
1763
|
+
chrome: no description
|
|
1764
|
+
hatch_fill: no description
|
|
1765
|
+
title: no description
|
|
1766
|
+
badge: no description
|
|
1767
|
+
value: no description
|
|
1768
|
+
unit: no description
|
|
1769
|
+
footer_left: no description
|
|
1770
|
+
footer_right: no description
|
|
1771
|
+
label: no description
|
|
1772
|
+
description: no description
|
|
1773
|
+
data_table: no description
|
|
1774
|
+
locale: no description
|
|
1775
|
+
number_format: no description
|
|
1776
|
+
tooltip: no description
|
|
1777
|
+
style: The style of the component.
|
|
1778
|
+
key: A unique key for the component.
|
|
1779
|
+
id: The id for the component.
|
|
1780
|
+
ref: The Var to pass as the ref to the component.
|
|
1781
|
+
class_name: The class name for the component.
|
|
1782
|
+
custom_attrs: Attributes passed directly to the component.
|
|
1783
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
1784
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
1785
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
1786
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
1787
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
1788
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
1789
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
1790
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
1791
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
1792
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
1793
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
1794
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
1795
|
+
on_scroll: Fired when the user scrolls the element.
|
|
1796
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
1797
|
+
on_mount: Fired when the component is mounted to the page.
|
|
1798
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
1799
|
+
on_active_change: no description
|
|
1800
|
+
on_select: no description
|
|
1801
|
+
**props: The props of the component.
|
|
1802
|
+
|
|
1803
|
+
Returns:
|
|
1804
|
+
The component.
|
|
1805
|
+
"""
|
|
1806
|
+
...
|
|
1807
|
+
|
|
1808
|
+
stream_chart = StreamChart.create
|
|
1809
|
+
|
|
1810
|
+
class ScatterChart(SilverpointChart):
|
|
1811
|
+
@classmethod
|
|
1812
|
+
def create(
|
|
1813
|
+
cls,
|
|
1814
|
+
*children,
|
|
1815
|
+
x_key: Var[str] | str | None = None,
|
|
1816
|
+
y_key: Var[str] | str | None = None,
|
|
1817
|
+
size_key: Var[str] | str | None = None,
|
|
1818
|
+
size_range: Var[list[float | int]] | list[float | int] | None = None,
|
|
1819
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
1820
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
1821
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
1822
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
1823
|
+
| None = None,
|
|
1824
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
1825
|
+
seed: Var[int | str] | int | str | None = None,
|
|
1826
|
+
height: Var[float | int] | float | int | None = None,
|
|
1827
|
+
width: Var[float | int] | float | int | None = None,
|
|
1828
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
1829
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
1830
|
+
title: Var[str] | str | None = None,
|
|
1831
|
+
badge: Var[str] | str | None = None,
|
|
1832
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
1833
|
+
unit: Var[str] | str | None = None,
|
|
1834
|
+
footer_left: Var[str] | str | None = None,
|
|
1835
|
+
footer_right: Var[str] | str | None = None,
|
|
1836
|
+
label: Var[str] | str | None = None,
|
|
1837
|
+
description: Var[str] | str | None = None,
|
|
1838
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
1839
|
+
locale: Var[str] | str | None = None,
|
|
1840
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
1841
|
+
tooltip: Any | Var[Any] | None = None,
|
|
1842
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
1843
|
+
key: Any | None = None,
|
|
1844
|
+
id: Any | None = None,
|
|
1845
|
+
ref: Var | None = None,
|
|
1846
|
+
class_name: Any | None = None,
|
|
1847
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
1848
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
1849
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1850
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1851
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1852
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1853
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1854
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1855
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1856
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1857
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1858
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1859
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1860
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1861
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1862
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1863
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
1864
|
+
on_select: Optional[EventType[Any]] = None,
|
|
1865
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1866
|
+
**props,
|
|
1867
|
+
) -> "ScatterChart":
|
|
1868
|
+
"""Create the component.
|
|
1869
|
+
|
|
1870
|
+
Args:
|
|
1871
|
+
*children: The children of the component.
|
|
1872
|
+
x_key: Key of each row in `data` to read.
|
|
1873
|
+
y_key: Key of each row in `data` to read.
|
|
1874
|
+
size_key: Key of each row in `data` to read.
|
|
1875
|
+
size_range: Marker area in px², smallest to largest; `[60, 240]` by default.
|
|
1876
|
+
data: no description
|
|
1877
|
+
ground: no description
|
|
1878
|
+
substrate: no description
|
|
1879
|
+
mode: no description
|
|
1880
|
+
seed: no description
|
|
1881
|
+
height: no description
|
|
1882
|
+
width: no description
|
|
1883
|
+
chrome: no description
|
|
1884
|
+
hatch_fill: no description
|
|
1885
|
+
title: no description
|
|
1886
|
+
badge: no description
|
|
1887
|
+
value: no description
|
|
1888
|
+
unit: no description
|
|
1889
|
+
footer_left: no description
|
|
1890
|
+
footer_right: no description
|
|
1891
|
+
label: no description
|
|
1892
|
+
description: no description
|
|
1893
|
+
data_table: no description
|
|
1894
|
+
locale: no description
|
|
1895
|
+
number_format: no description
|
|
1896
|
+
tooltip: no description
|
|
1897
|
+
style: The style of the component.
|
|
1898
|
+
key: A unique key for the component.
|
|
1899
|
+
id: The id for the component.
|
|
1900
|
+
ref: The Var to pass as the ref to the component.
|
|
1901
|
+
class_name: The class name for the component.
|
|
1902
|
+
custom_attrs: Attributes passed directly to the component.
|
|
1903
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
1904
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
1905
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
1906
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
1907
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
1908
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
1909
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
1910
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
1911
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
1912
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
1913
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
1914
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
1915
|
+
on_scroll: Fired when the user scrolls the element.
|
|
1916
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
1917
|
+
on_mount: Fired when the component is mounted to the page.
|
|
1918
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
1919
|
+
on_active_change: no description
|
|
1920
|
+
on_select: no description
|
|
1921
|
+
**props: The props of the component.
|
|
1922
|
+
|
|
1923
|
+
Returns:
|
|
1924
|
+
The component.
|
|
1925
|
+
"""
|
|
1926
|
+
...
|
|
1927
|
+
|
|
1928
|
+
scatter_chart = ScatterChart.create
|
|
1929
|
+
|
|
1930
|
+
class BubbleChart(SilverpointChart):
|
|
1931
|
+
@classmethod
|
|
1932
|
+
def create(
|
|
1933
|
+
cls,
|
|
1934
|
+
*children,
|
|
1935
|
+
x_key: Var[str] | str | None = None,
|
|
1936
|
+
y_key: Var[str] | str | None = None,
|
|
1937
|
+
size_key: Var[str] | str | None = None,
|
|
1938
|
+
size_range: Var[list[float | int]] | list[float | int] | None = None,
|
|
1939
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
1940
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
1941
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
1942
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
1943
|
+
| None = None,
|
|
1944
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
1945
|
+
seed: Var[int | str] | int | str | None = None,
|
|
1946
|
+
height: Var[float | int] | float | int | None = None,
|
|
1947
|
+
width: Var[float | int] | float | int | None = None,
|
|
1948
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
1949
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
1950
|
+
title: Var[str] | str | None = None,
|
|
1951
|
+
badge: Var[str] | str | None = None,
|
|
1952
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
1953
|
+
unit: Var[str] | str | None = None,
|
|
1954
|
+
footer_left: Var[str] | str | None = None,
|
|
1955
|
+
footer_right: Var[str] | str | None = None,
|
|
1956
|
+
label: Var[str] | str | None = None,
|
|
1957
|
+
description: Var[str] | str | None = None,
|
|
1958
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
1959
|
+
locale: Var[str] | str | None = None,
|
|
1960
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
1961
|
+
tooltip: Any | Var[Any] | None = None,
|
|
1962
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
1963
|
+
key: Any | None = None,
|
|
1964
|
+
id: Any | None = None,
|
|
1965
|
+
ref: Var | None = None,
|
|
1966
|
+
class_name: Any | None = None,
|
|
1967
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
1968
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
1969
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1970
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1971
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1972
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
1973
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1974
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1975
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1976
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1977
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1978
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1979
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1980
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1981
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1982
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1983
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
1984
|
+
on_select: Optional[EventType[Any]] = None,
|
|
1985
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1986
|
+
**props,
|
|
1987
|
+
) -> "BubbleChart":
|
|
1988
|
+
"""Create the component.
|
|
1989
|
+
|
|
1990
|
+
Args:
|
|
1991
|
+
*children: The children of the component.
|
|
1992
|
+
x_key: Key of each row in `data` to read.
|
|
1993
|
+
y_key: Key of each row in `data` to read.
|
|
1994
|
+
size_key: Key of each row in `data` to read.
|
|
1995
|
+
size_range: Circle area in px², smallest to largest; `[100, 500]` by default.
|
|
1996
|
+
data: no description
|
|
1997
|
+
ground: no description
|
|
1998
|
+
substrate: no description
|
|
1999
|
+
mode: no description
|
|
2000
|
+
seed: no description
|
|
2001
|
+
height: no description
|
|
2002
|
+
width: no description
|
|
2003
|
+
chrome: no description
|
|
2004
|
+
hatch_fill: no description
|
|
2005
|
+
title: no description
|
|
2006
|
+
badge: no description
|
|
2007
|
+
value: no description
|
|
2008
|
+
unit: no description
|
|
2009
|
+
footer_left: no description
|
|
2010
|
+
footer_right: no description
|
|
2011
|
+
label: no description
|
|
2012
|
+
description: no description
|
|
2013
|
+
data_table: no description
|
|
2014
|
+
locale: no description
|
|
2015
|
+
number_format: no description
|
|
2016
|
+
tooltip: no description
|
|
2017
|
+
style: The style of the component.
|
|
2018
|
+
key: A unique key for the component.
|
|
2019
|
+
id: The id for the component.
|
|
2020
|
+
ref: The Var to pass as the ref to the component.
|
|
2021
|
+
class_name: The class name for the component.
|
|
2022
|
+
custom_attrs: Attributes passed directly to the component.
|
|
2023
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
2024
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
2025
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
2026
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
2027
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
2028
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
2029
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
2030
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
2031
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
2032
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
2033
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
2034
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
2035
|
+
on_scroll: Fired when the user scrolls the element.
|
|
2036
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
2037
|
+
on_mount: Fired when the component is mounted to the page.
|
|
2038
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
2039
|
+
on_active_change: no description
|
|
2040
|
+
on_select: no description
|
|
2041
|
+
**props: The props of the component.
|
|
2042
|
+
|
|
2043
|
+
Returns:
|
|
2044
|
+
The component.
|
|
2045
|
+
"""
|
|
2046
|
+
...
|
|
2047
|
+
|
|
2048
|
+
bubble_chart = BubbleChart.create
|
|
2049
|
+
|
|
2050
|
+
class HeatmapChart(SilverpointChart):
|
|
2051
|
+
@classmethod
|
|
2052
|
+
def create(
|
|
2053
|
+
cls,
|
|
2054
|
+
*children,
|
|
2055
|
+
label_key: Var[str] | str | None = None,
|
|
2056
|
+
values_key: Var[str] | str | None = None,
|
|
2057
|
+
scale_max: Var[float | int] | float | int | None = None,
|
|
2058
|
+
column_labels: Var[list[str]] | list[str] | None = None,
|
|
2059
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
2060
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
2061
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
2062
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
2063
|
+
| None = None,
|
|
2064
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
2065
|
+
seed: Var[int | str] | int | str | None = None,
|
|
2066
|
+
height: Var[float | int] | float | int | None = None,
|
|
2067
|
+
width: Var[float | int] | float | int | None = None,
|
|
2068
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
2069
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
2070
|
+
title: Var[str] | str | None = None,
|
|
2071
|
+
badge: Var[str] | str | None = None,
|
|
2072
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
2073
|
+
unit: Var[str] | str | None = None,
|
|
2074
|
+
footer_left: Var[str] | str | None = None,
|
|
2075
|
+
footer_right: Var[str] | str | None = None,
|
|
2076
|
+
label: Var[str] | str | None = None,
|
|
2077
|
+
description: Var[str] | str | None = None,
|
|
2078
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
2079
|
+
locale: Var[str] | str | None = None,
|
|
2080
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
2081
|
+
tooltip: Any | Var[Any] | None = None,
|
|
2082
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
2083
|
+
key: Any | None = None,
|
|
2084
|
+
id: Any | None = None,
|
|
2085
|
+
ref: Var | None = None,
|
|
2086
|
+
class_name: Any | None = None,
|
|
2087
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
2088
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
2089
|
+
on_blur: Optional[EventType[()]] = None,
|
|
2090
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2091
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2092
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2093
|
+
on_focus: Optional[EventType[()]] = None,
|
|
2094
|
+
on_mount: Optional[EventType[()]] = None,
|
|
2095
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
2096
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
2097
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
2098
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
2099
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
2100
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
2101
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
2102
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
2103
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
2104
|
+
on_select: Optional[EventType[Any]] = None,
|
|
2105
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
2106
|
+
**props,
|
|
2107
|
+
) -> "HeatmapChart":
|
|
2108
|
+
"""Create the component.
|
|
2109
|
+
|
|
2110
|
+
Args:
|
|
2111
|
+
*children: The children of the component.
|
|
2112
|
+
label_key: Key of each row in `data` to read.
|
|
2113
|
+
values_key: Key of each row in `data` to read.
|
|
2114
|
+
scale_max: Value that maps to the darkest tone; 100 by default.
|
|
2115
|
+
column_labels: Names of the columns, in order; missing ones fall back to `#k`.
|
|
2116
|
+
data: no description
|
|
2117
|
+
ground: no description
|
|
2118
|
+
substrate: no description
|
|
2119
|
+
mode: no description
|
|
2120
|
+
seed: no description
|
|
2121
|
+
height: no description
|
|
2122
|
+
width: no description
|
|
2123
|
+
chrome: no description
|
|
2124
|
+
hatch_fill: no description
|
|
2125
|
+
title: no description
|
|
2126
|
+
badge: no description
|
|
2127
|
+
value: no description
|
|
2128
|
+
unit: no description
|
|
2129
|
+
footer_left: no description
|
|
2130
|
+
footer_right: no description
|
|
2131
|
+
label: no description
|
|
2132
|
+
description: no description
|
|
2133
|
+
data_table: no description
|
|
2134
|
+
locale: no description
|
|
2135
|
+
number_format: no description
|
|
2136
|
+
tooltip: no description
|
|
2137
|
+
style: The style of the component.
|
|
2138
|
+
key: A unique key for the component.
|
|
2139
|
+
id: The id for the component.
|
|
2140
|
+
ref: The Var to pass as the ref to the component.
|
|
2141
|
+
class_name: The class name for the component.
|
|
2142
|
+
custom_attrs: Attributes passed directly to the component.
|
|
2143
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
2144
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
2145
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
2146
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
2147
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
2148
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
2149
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
2150
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
2151
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
2152
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
2153
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
2154
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
2155
|
+
on_scroll: Fired when the user scrolls the element.
|
|
2156
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
2157
|
+
on_mount: Fired when the component is mounted to the page.
|
|
2158
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
2159
|
+
on_active_change: no description
|
|
2160
|
+
on_select: no description
|
|
2161
|
+
**props: The props of the component.
|
|
2162
|
+
|
|
2163
|
+
Returns:
|
|
2164
|
+
The component.
|
|
2165
|
+
"""
|
|
2166
|
+
...
|
|
2167
|
+
|
|
2168
|
+
heatmap_chart = HeatmapChart.create
|
|
2169
|
+
|
|
2170
|
+
class TreemapChart(SilverpointChart):
|
|
2171
|
+
@classmethod
|
|
2172
|
+
def create(
|
|
2173
|
+
cls,
|
|
2174
|
+
*children,
|
|
2175
|
+
label_key: Var[str] | str | None = None,
|
|
2176
|
+
share_key: Var[str] | str | None = None,
|
|
2177
|
+
columns: Var[int] | int | None = None,
|
|
2178
|
+
rows: Var[int] | int | None = None,
|
|
2179
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
2180
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
2181
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
2182
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
2183
|
+
| None = None,
|
|
2184
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
2185
|
+
seed: Var[int | str] | int | str | None = None,
|
|
2186
|
+
height: Var[float | int] | float | int | None = None,
|
|
2187
|
+
width: Var[float | int] | float | int | None = None,
|
|
2188
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
2189
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
2190
|
+
title: Var[str] | str | None = None,
|
|
2191
|
+
badge: Var[str] | str | None = None,
|
|
2192
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
2193
|
+
unit: Var[str] | str | None = None,
|
|
2194
|
+
footer_left: Var[str] | str | None = None,
|
|
2195
|
+
footer_right: Var[str] | str | None = None,
|
|
2196
|
+
label: Var[str] | str | None = None,
|
|
2197
|
+
description: Var[str] | str | None = None,
|
|
2198
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
2199
|
+
locale: Var[str] | str | None = None,
|
|
2200
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
2201
|
+
tooltip: Any | Var[Any] | None = None,
|
|
2202
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
2203
|
+
key: Any | None = None,
|
|
2204
|
+
id: Any | None = None,
|
|
2205
|
+
ref: Var | None = None,
|
|
2206
|
+
class_name: Any | None = None,
|
|
2207
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
2208
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
2209
|
+
on_blur: Optional[EventType[()]] = None,
|
|
2210
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2211
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2212
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2213
|
+
on_focus: Optional[EventType[()]] = None,
|
|
2214
|
+
on_mount: Optional[EventType[()]] = None,
|
|
2215
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
2216
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
2217
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
2218
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
2219
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
2220
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
2221
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
2222
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
2223
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
2224
|
+
on_select: Optional[EventType[Any]] = None,
|
|
2225
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
2226
|
+
**props,
|
|
2227
|
+
) -> "TreemapChart":
|
|
2228
|
+
"""Create the component.
|
|
2229
|
+
|
|
2230
|
+
Args:
|
|
2231
|
+
*children: The children of the component.
|
|
2232
|
+
label_key: Key of each row in `data` to read.
|
|
2233
|
+
share_key: Key of each row in `data` to read.
|
|
2234
|
+
columns: no description
|
|
2235
|
+
rows: no description
|
|
2236
|
+
data: no description
|
|
2237
|
+
ground: no description
|
|
2238
|
+
substrate: no description
|
|
2239
|
+
mode: no description
|
|
2240
|
+
seed: no description
|
|
2241
|
+
height: no description
|
|
2242
|
+
width: no description
|
|
2243
|
+
chrome: no description
|
|
2244
|
+
hatch_fill: no description
|
|
2245
|
+
title: no description
|
|
2246
|
+
badge: no description
|
|
2247
|
+
value: no description
|
|
2248
|
+
unit: no description
|
|
2249
|
+
footer_left: no description
|
|
2250
|
+
footer_right: no description
|
|
2251
|
+
label: no description
|
|
2252
|
+
description: no description
|
|
2253
|
+
data_table: no description
|
|
2254
|
+
locale: no description
|
|
2255
|
+
number_format: no description
|
|
2256
|
+
tooltip: no description
|
|
2257
|
+
style: The style of the component.
|
|
2258
|
+
key: A unique key for the component.
|
|
2259
|
+
id: The id for the component.
|
|
2260
|
+
ref: The Var to pass as the ref to the component.
|
|
2261
|
+
class_name: The class name for the component.
|
|
2262
|
+
custom_attrs: Attributes passed directly to the component.
|
|
2263
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
2264
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
2265
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
2266
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
2267
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
2268
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
2269
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
2270
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
2271
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
2272
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
2273
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
2274
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
2275
|
+
on_scroll: Fired when the user scrolls the element.
|
|
2276
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
2277
|
+
on_mount: Fired when the component is mounted to the page.
|
|
2278
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
2279
|
+
on_active_change: no description
|
|
2280
|
+
on_select: no description
|
|
2281
|
+
**props: The props of the component.
|
|
2282
|
+
|
|
2283
|
+
Returns:
|
|
2284
|
+
The component.
|
|
2285
|
+
"""
|
|
2286
|
+
...
|
|
2287
|
+
|
|
2288
|
+
treemap_chart = TreemapChart.create
|
|
2289
|
+
|
|
2290
|
+
class ActivityGrid(SilverpointChart):
|
|
2291
|
+
@classmethod
|
|
2292
|
+
def create(
|
|
2293
|
+
cls,
|
|
2294
|
+
*children,
|
|
2295
|
+
date_key: Var[str] | str | None = None,
|
|
2296
|
+
count_key: Var[str] | str | None = None,
|
|
2297
|
+
level_key: Var[str] | str | None = None,
|
|
2298
|
+
weeks: Var[int] | int | None = None,
|
|
2299
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
2300
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
2301
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
2302
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
2303
|
+
| None = None,
|
|
2304
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
2305
|
+
seed: Var[int | str] | int | str | None = None,
|
|
2306
|
+
height: Var[float | int] | float | int | None = None,
|
|
2307
|
+
width: Var[float | int] | float | int | None = None,
|
|
2308
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
2309
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
2310
|
+
title: Var[str] | str | None = None,
|
|
2311
|
+
badge: Var[str] | str | None = None,
|
|
2312
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
2313
|
+
unit: Var[str] | str | None = None,
|
|
2314
|
+
footer_left: Var[str] | str | None = None,
|
|
2315
|
+
footer_right: Var[str] | str | None = None,
|
|
2316
|
+
label: Var[str] | str | None = None,
|
|
2317
|
+
description: Var[str] | str | None = None,
|
|
2318
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
2319
|
+
locale: Var[str] | str | None = None,
|
|
2320
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
2321
|
+
tooltip: Any | Var[Any] | None = None,
|
|
2322
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
2323
|
+
key: Any | None = None,
|
|
2324
|
+
id: Any | None = None,
|
|
2325
|
+
ref: Var | None = None,
|
|
2326
|
+
class_name: Any | None = None,
|
|
2327
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
2328
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
2329
|
+
on_blur: Optional[EventType[()]] = None,
|
|
2330
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2331
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2332
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2333
|
+
on_focus: Optional[EventType[()]] = None,
|
|
2334
|
+
on_mount: Optional[EventType[()]] = None,
|
|
2335
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
2336
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
2337
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
2338
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
2339
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
2340
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
2341
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
2342
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
2343
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
2344
|
+
on_select: Optional[EventType[Any]] = None,
|
|
2345
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
2346
|
+
**props,
|
|
2347
|
+
) -> "ActivityGrid":
|
|
2348
|
+
"""Create the component.
|
|
2349
|
+
|
|
2350
|
+
Args:
|
|
2351
|
+
*children: The children of the component.
|
|
2352
|
+
date_key: Key of each row in `data` to read.
|
|
2353
|
+
count_key: Key of each row in `data` to read.
|
|
2354
|
+
level_key: Key of each row in `data` to read.
|
|
2355
|
+
weeks: Weeks shown, the most recent last; 26 by default.
|
|
2356
|
+
data: no description
|
|
2357
|
+
ground: no description
|
|
2358
|
+
substrate: no description
|
|
2359
|
+
mode: no description
|
|
2360
|
+
seed: no description
|
|
2361
|
+
height: no description
|
|
2362
|
+
width: no description
|
|
2363
|
+
chrome: no description
|
|
2364
|
+
hatch_fill: no description
|
|
2365
|
+
title: no description
|
|
2366
|
+
badge: no description
|
|
2367
|
+
value: no description
|
|
2368
|
+
unit: no description
|
|
2369
|
+
footer_left: no description
|
|
2370
|
+
footer_right: no description
|
|
2371
|
+
label: no description
|
|
2372
|
+
description: no description
|
|
2373
|
+
data_table: no description
|
|
2374
|
+
locale: no description
|
|
2375
|
+
number_format: no description
|
|
2376
|
+
tooltip: no description
|
|
2377
|
+
style: The style of the component.
|
|
2378
|
+
key: A unique key for the component.
|
|
2379
|
+
id: The id for the component.
|
|
2380
|
+
ref: The Var to pass as the ref to the component.
|
|
2381
|
+
class_name: The class name for the component.
|
|
2382
|
+
custom_attrs: Attributes passed directly to the component.
|
|
2383
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
2384
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
2385
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
2386
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
2387
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
2388
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
2389
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
2390
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
2391
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
2392
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
2393
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
2394
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
2395
|
+
on_scroll: Fired when the user scrolls the element.
|
|
2396
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
2397
|
+
on_mount: Fired when the component is mounted to the page.
|
|
2398
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
2399
|
+
on_active_change: no description
|
|
2400
|
+
on_select: no description
|
|
2401
|
+
**props: The props of the component.
|
|
2402
|
+
|
|
2403
|
+
Returns:
|
|
2404
|
+
The component.
|
|
2405
|
+
"""
|
|
2406
|
+
...
|
|
2407
|
+
|
|
2408
|
+
activity_grid = ActivityGrid.create
|
|
2409
|
+
|
|
2410
|
+
class SankeyChart(SilverpointChart):
|
|
2411
|
+
@classmethod
|
|
2412
|
+
def create(
|
|
2413
|
+
cls,
|
|
2414
|
+
*children,
|
|
2415
|
+
source_key: Var[str] | str | None = None,
|
|
2416
|
+
target_key: Var[str] | str | None = None,
|
|
2417
|
+
value_key: Var[str] | str | None = None,
|
|
2418
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
2419
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
2420
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
2421
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
2422
|
+
| None = None,
|
|
2423
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
2424
|
+
seed: Var[int | str] | int | str | None = None,
|
|
2425
|
+
height: Var[float | int] | float | int | None = None,
|
|
2426
|
+
width: Var[float | int] | float | int | None = None,
|
|
2427
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
2428
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
2429
|
+
title: Var[str] | str | None = None,
|
|
2430
|
+
badge: Var[str] | str | None = None,
|
|
2431
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
2432
|
+
unit: Var[str] | str | None = None,
|
|
2433
|
+
footer_left: Var[str] | str | None = None,
|
|
2434
|
+
footer_right: Var[str] | str | None = None,
|
|
2435
|
+
label: Var[str] | str | None = None,
|
|
2436
|
+
description: Var[str] | str | None = None,
|
|
2437
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
2438
|
+
locale: Var[str] | str | None = None,
|
|
2439
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
2440
|
+
tooltip: Any | Var[Any] | None = None,
|
|
2441
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
2442
|
+
key: Any | None = None,
|
|
2443
|
+
id: Any | None = None,
|
|
2444
|
+
ref: Var | None = None,
|
|
2445
|
+
class_name: Any | None = None,
|
|
2446
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
2447
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
2448
|
+
on_blur: Optional[EventType[()]] = None,
|
|
2449
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2450
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2451
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2452
|
+
on_focus: Optional[EventType[()]] = None,
|
|
2453
|
+
on_mount: Optional[EventType[()]] = None,
|
|
2454
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
2455
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
2456
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
2457
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
2458
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
2459
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
2460
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
2461
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
2462
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
2463
|
+
on_select: Optional[EventType[Any]] = None,
|
|
2464
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
2465
|
+
**props,
|
|
2466
|
+
) -> "SankeyChart":
|
|
2467
|
+
"""Create the component.
|
|
2468
|
+
|
|
2469
|
+
Args:
|
|
2470
|
+
*children: The children of the component.
|
|
2471
|
+
source_key: Key of each row in `data` to read.
|
|
2472
|
+
target_key: Key of each row in `data` to read.
|
|
2473
|
+
value_key: Key of each row in `data` to read.
|
|
2474
|
+
data: no description
|
|
2475
|
+
ground: no description
|
|
2476
|
+
substrate: no description
|
|
2477
|
+
mode: no description
|
|
2478
|
+
seed: no description
|
|
2479
|
+
height: no description
|
|
2480
|
+
width: no description
|
|
2481
|
+
chrome: no description
|
|
2482
|
+
hatch_fill: no description
|
|
2483
|
+
title: no description
|
|
2484
|
+
badge: no description
|
|
2485
|
+
value: no description
|
|
2486
|
+
unit: no description
|
|
2487
|
+
footer_left: no description
|
|
2488
|
+
footer_right: no description
|
|
2489
|
+
label: no description
|
|
2490
|
+
description: no description
|
|
2491
|
+
data_table: no description
|
|
2492
|
+
locale: no description
|
|
2493
|
+
number_format: no description
|
|
2494
|
+
tooltip: no description
|
|
2495
|
+
style: The style of the component.
|
|
2496
|
+
key: A unique key for the component.
|
|
2497
|
+
id: The id for the component.
|
|
2498
|
+
ref: The Var to pass as the ref to the component.
|
|
2499
|
+
class_name: The class name for the component.
|
|
2500
|
+
custom_attrs: Attributes passed directly to the component.
|
|
2501
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
2502
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
2503
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
2504
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
2505
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
2506
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
2507
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
2508
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
2509
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
2510
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
2511
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
2512
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
2513
|
+
on_scroll: Fired when the user scrolls the element.
|
|
2514
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
2515
|
+
on_mount: Fired when the component is mounted to the page.
|
|
2516
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
2517
|
+
on_active_change: no description
|
|
2518
|
+
on_select: no description
|
|
2519
|
+
**props: The props of the component.
|
|
2520
|
+
|
|
2521
|
+
Returns:
|
|
2522
|
+
The component.
|
|
2523
|
+
"""
|
|
2524
|
+
...
|
|
2525
|
+
|
|
2526
|
+
sankey_chart = SankeyChart.create
|
|
2527
|
+
|
|
2528
|
+
class ChordRing(SilverpointChart):
|
|
2529
|
+
@classmethod
|
|
2530
|
+
def create(
|
|
2531
|
+
cls,
|
|
2532
|
+
*children,
|
|
2533
|
+
source_key: Var[str] | str | None = None,
|
|
2534
|
+
target_key: Var[str] | str | None = None,
|
|
2535
|
+
value_key: Var[str] | str | None = None,
|
|
2536
|
+
max_categories: Var[int] | int | None = None,
|
|
2537
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
2538
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
2539
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
2540
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
2541
|
+
| None = None,
|
|
2542
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
2543
|
+
seed: Var[int | str] | int | str | None = None,
|
|
2544
|
+
height: Var[float | int] | float | int | None = None,
|
|
2545
|
+
width: Var[float | int] | float | int | None = None,
|
|
2546
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
2547
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
2548
|
+
title: Var[str] | str | None = None,
|
|
2549
|
+
badge: Var[str] | str | None = None,
|
|
2550
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
2551
|
+
unit: Var[str] | str | None = None,
|
|
2552
|
+
footer_left: Var[str] | str | None = None,
|
|
2553
|
+
footer_right: Var[str] | str | None = None,
|
|
2554
|
+
label: Var[str] | str | None = None,
|
|
2555
|
+
description: Var[str] | str | None = None,
|
|
2556
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
2557
|
+
locale: Var[str] | str | None = None,
|
|
2558
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
2559
|
+
tooltip: Any | Var[Any] | None = None,
|
|
2560
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
2561
|
+
key: Any | None = None,
|
|
2562
|
+
id: Any | None = None,
|
|
2563
|
+
ref: Var | None = None,
|
|
2564
|
+
class_name: Any | None = None,
|
|
2565
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
2566
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
2567
|
+
on_blur: Optional[EventType[()]] = None,
|
|
2568
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2569
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2570
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2571
|
+
on_focus: Optional[EventType[()]] = None,
|
|
2572
|
+
on_mount: Optional[EventType[()]] = None,
|
|
2573
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
2574
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
2575
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
2576
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
2577
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
2578
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
2579
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
2580
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
2581
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
2582
|
+
on_select: Optional[EventType[Any]] = None,
|
|
2583
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
2584
|
+
**props,
|
|
2585
|
+
) -> "ChordRing":
|
|
2586
|
+
"""Create the component.
|
|
2587
|
+
|
|
2588
|
+
Args:
|
|
2589
|
+
*children: The children of the component.
|
|
2590
|
+
source_key: Key of each row in `data` to read.
|
|
2591
|
+
target_key: Key of each row in `data` to read.
|
|
2592
|
+
value_key: Key of each row in `data` to read.
|
|
2593
|
+
max_categories: Categories drawn; past it the smallest merge into "Other" (`SP010`). 12 by default.
|
|
2594
|
+
data: no description
|
|
2595
|
+
ground: no description
|
|
2596
|
+
substrate: no description
|
|
2597
|
+
mode: no description
|
|
2598
|
+
seed: no description
|
|
2599
|
+
height: no description
|
|
2600
|
+
width: no description
|
|
2601
|
+
chrome: no description
|
|
2602
|
+
hatch_fill: no description
|
|
2603
|
+
title: no description
|
|
2604
|
+
badge: no description
|
|
2605
|
+
value: no description
|
|
2606
|
+
unit: no description
|
|
2607
|
+
footer_left: no description
|
|
2608
|
+
footer_right: no description
|
|
2609
|
+
label: no description
|
|
2610
|
+
description: no description
|
|
2611
|
+
data_table: no description
|
|
2612
|
+
locale: no description
|
|
2613
|
+
number_format: no description
|
|
2614
|
+
tooltip: no description
|
|
2615
|
+
style: The style of the component.
|
|
2616
|
+
key: A unique key for the component.
|
|
2617
|
+
id: The id for the component.
|
|
2618
|
+
ref: The Var to pass as the ref to the component.
|
|
2619
|
+
class_name: The class name for the component.
|
|
2620
|
+
custom_attrs: Attributes passed directly to the component.
|
|
2621
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
2622
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
2623
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
2624
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
2625
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
2626
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
2627
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
2628
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
2629
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
2630
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
2631
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
2632
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
2633
|
+
on_scroll: Fired when the user scrolls the element.
|
|
2634
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
2635
|
+
on_mount: Fired when the component is mounted to the page.
|
|
2636
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
2637
|
+
on_active_change: no description
|
|
2638
|
+
on_select: no description
|
|
2639
|
+
**props: The props of the component.
|
|
2640
|
+
|
|
2641
|
+
Returns:
|
|
2642
|
+
The component.
|
|
2643
|
+
"""
|
|
2644
|
+
...
|
|
2645
|
+
|
|
2646
|
+
chord_ring = ChordRing.create
|
|
2647
|
+
|
|
2648
|
+
class DonutChart(SilverpointChart):
|
|
2649
|
+
@classmethod
|
|
2650
|
+
def create(
|
|
2651
|
+
cls,
|
|
2652
|
+
*children,
|
|
2653
|
+
name_key: Var[str] | str | None = None,
|
|
2654
|
+
value_key: Var[str] | str | None = None,
|
|
2655
|
+
center_value: Var[float | int | str] | float | int | str | None = None,
|
|
2656
|
+
center_label: Var[str] | str | None = None,
|
|
2657
|
+
legend: Var[bool] | bool | None = None,
|
|
2658
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
2659
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
2660
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
2661
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
2662
|
+
| None = None,
|
|
2663
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
2664
|
+
seed: Var[int | str] | int | str | None = None,
|
|
2665
|
+
height: Var[float | int] | float | int | None = None,
|
|
2666
|
+
width: Var[float | int] | float | int | None = None,
|
|
2667
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
2668
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
2669
|
+
title: Var[str] | str | None = None,
|
|
2670
|
+
badge: Var[str] | str | None = None,
|
|
2671
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
2672
|
+
unit: Var[str] | str | None = None,
|
|
2673
|
+
footer_left: Var[str] | str | None = None,
|
|
2674
|
+
footer_right: Var[str] | str | None = None,
|
|
2675
|
+
label: Var[str] | str | None = None,
|
|
2676
|
+
description: Var[str] | str | None = None,
|
|
2677
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
2678
|
+
locale: Var[str] | str | None = None,
|
|
2679
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
2680
|
+
tooltip: Any | Var[Any] | None = None,
|
|
2681
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
2682
|
+
key: Any | None = None,
|
|
2683
|
+
id: Any | None = None,
|
|
2684
|
+
ref: Var | None = None,
|
|
2685
|
+
class_name: Any | None = None,
|
|
2686
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
2687
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
2688
|
+
on_blur: Optional[EventType[()]] = None,
|
|
2689
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2690
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2691
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2692
|
+
on_focus: Optional[EventType[()]] = None,
|
|
2693
|
+
on_mount: Optional[EventType[()]] = None,
|
|
2694
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
2695
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
2696
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
2697
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
2698
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
2699
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
2700
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
2701
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
2702
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
2703
|
+
on_select: Optional[EventType[Any]] = None,
|
|
2704
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
2705
|
+
**props,
|
|
2706
|
+
) -> "DonutChart":
|
|
2707
|
+
"""Create the component.
|
|
2708
|
+
|
|
2709
|
+
Args:
|
|
2710
|
+
*children: The children of the component.
|
|
2711
|
+
name_key: Key of each row in `data` to read.
|
|
2712
|
+
value_key: Key of each row in `data` to read.
|
|
2713
|
+
center_value: Printed in the centre; the total by default.
|
|
2714
|
+
center_label: A line under the centre value.
|
|
2715
|
+
legend: Names every sector with its share beside the ring; `true` by default.
|
|
2716
|
+
data: no description
|
|
2717
|
+
ground: no description
|
|
2718
|
+
substrate: no description
|
|
2719
|
+
mode: no description
|
|
2720
|
+
seed: no description
|
|
2721
|
+
height: no description
|
|
2722
|
+
width: no description
|
|
2723
|
+
chrome: no description
|
|
2724
|
+
hatch_fill: no description
|
|
2725
|
+
title: no description
|
|
2726
|
+
badge: no description
|
|
2727
|
+
value: no description
|
|
2728
|
+
unit: no description
|
|
2729
|
+
footer_left: no description
|
|
2730
|
+
footer_right: no description
|
|
2731
|
+
label: no description
|
|
2732
|
+
description: no description
|
|
2733
|
+
data_table: no description
|
|
2734
|
+
locale: no description
|
|
2735
|
+
number_format: no description
|
|
2736
|
+
tooltip: no description
|
|
2737
|
+
style: The style of the component.
|
|
2738
|
+
key: A unique key for the component.
|
|
2739
|
+
id: The id for the component.
|
|
2740
|
+
ref: The Var to pass as the ref to the component.
|
|
2741
|
+
class_name: The class name for the component.
|
|
2742
|
+
custom_attrs: Attributes passed directly to the component.
|
|
2743
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
2744
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
2745
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
2746
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
2747
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
2748
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
2749
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
2750
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
2751
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
2752
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
2753
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
2754
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
2755
|
+
on_scroll: Fired when the user scrolls the element.
|
|
2756
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
2757
|
+
on_mount: Fired when the component is mounted to the page.
|
|
2758
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
2759
|
+
on_active_change: no description
|
|
2760
|
+
on_select: no description
|
|
2761
|
+
**props: The props of the component.
|
|
2762
|
+
|
|
2763
|
+
Returns:
|
|
2764
|
+
The component.
|
|
2765
|
+
"""
|
|
2766
|
+
...
|
|
2767
|
+
|
|
2768
|
+
donut_chart = DonutChart.create
|
|
2769
|
+
|
|
2770
|
+
class RadarChart(SilverpointChart):
|
|
2771
|
+
@classmethod
|
|
2772
|
+
def create(
|
|
2773
|
+
cls,
|
|
2774
|
+
*children,
|
|
2775
|
+
subject_key: Var[str] | str | None = None,
|
|
2776
|
+
value_key: Var[str] | str | None = None,
|
|
2777
|
+
domain: Var[list[float | int]] | list[float | int] | None = None,
|
|
2778
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
2779
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
2780
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
2781
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
2782
|
+
| None = None,
|
|
2783
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
2784
|
+
seed: Var[int | str] | int | str | None = None,
|
|
2785
|
+
height: Var[float | int] | float | int | None = None,
|
|
2786
|
+
width: Var[float | int] | float | int | None = None,
|
|
2787
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
2788
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
2789
|
+
title: Var[str] | str | None = None,
|
|
2790
|
+
badge: Var[str] | str | None = None,
|
|
2791
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
2792
|
+
unit: Var[str] | str | None = None,
|
|
2793
|
+
footer_left: Var[str] | str | None = None,
|
|
2794
|
+
footer_right: Var[str] | str | None = None,
|
|
2795
|
+
label: Var[str] | str | None = None,
|
|
2796
|
+
description: Var[str] | str | None = None,
|
|
2797
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
2798
|
+
locale: Var[str] | str | None = None,
|
|
2799
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
2800
|
+
tooltip: Any | Var[Any] | None = None,
|
|
2801
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
2802
|
+
key: Any | None = None,
|
|
2803
|
+
id: Any | None = None,
|
|
2804
|
+
ref: Var | None = None,
|
|
2805
|
+
class_name: Any | None = None,
|
|
2806
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
2807
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
2808
|
+
on_blur: Optional[EventType[()]] = None,
|
|
2809
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2810
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2811
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2812
|
+
on_focus: Optional[EventType[()]] = None,
|
|
2813
|
+
on_mount: Optional[EventType[()]] = None,
|
|
2814
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
2815
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
2816
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
2817
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
2818
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
2819
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
2820
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
2821
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
2822
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
2823
|
+
on_select: Optional[EventType[Any]] = None,
|
|
2824
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
2825
|
+
**props,
|
|
2826
|
+
) -> "RadarChart":
|
|
2827
|
+
"""Create the component.
|
|
2828
|
+
|
|
2829
|
+
Args:
|
|
2830
|
+
*children: The children of the component.
|
|
2831
|
+
subject_key: Key of each row in `data` to read.
|
|
2832
|
+
value_key: Key of each row in `data` to read.
|
|
2833
|
+
domain: The value range along a spoke; `[0, the largest value]`, niced, by default.
|
|
2834
|
+
data: no description
|
|
2835
|
+
ground: no description
|
|
2836
|
+
substrate: no description
|
|
2837
|
+
mode: no description
|
|
2838
|
+
seed: no description
|
|
2839
|
+
height: no description
|
|
2840
|
+
width: no description
|
|
2841
|
+
chrome: no description
|
|
2842
|
+
hatch_fill: no description
|
|
2843
|
+
title: no description
|
|
2844
|
+
badge: no description
|
|
2845
|
+
value: no description
|
|
2846
|
+
unit: no description
|
|
2847
|
+
footer_left: no description
|
|
2848
|
+
footer_right: no description
|
|
2849
|
+
label: no description
|
|
2850
|
+
description: no description
|
|
2851
|
+
data_table: no description
|
|
2852
|
+
locale: no description
|
|
2853
|
+
number_format: no description
|
|
2854
|
+
tooltip: no description
|
|
2855
|
+
style: The style of the component.
|
|
2856
|
+
key: A unique key for the component.
|
|
2857
|
+
id: The id for the component.
|
|
2858
|
+
ref: The Var to pass as the ref to the component.
|
|
2859
|
+
class_name: The class name for the component.
|
|
2860
|
+
custom_attrs: Attributes passed directly to the component.
|
|
2861
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
2862
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
2863
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
2864
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
2865
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
2866
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
2867
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
2868
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
2869
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
2870
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
2871
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
2872
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
2873
|
+
on_scroll: Fired when the user scrolls the element.
|
|
2874
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
2875
|
+
on_mount: Fired when the component is mounted to the page.
|
|
2876
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
2877
|
+
on_active_change: no description
|
|
2878
|
+
on_select: no description
|
|
2879
|
+
**props: The props of the component.
|
|
2880
|
+
|
|
2881
|
+
Returns:
|
|
2882
|
+
The component.
|
|
2883
|
+
"""
|
|
2884
|
+
...
|
|
2885
|
+
|
|
2886
|
+
radar_chart = RadarChart.create
|
|
2887
|
+
|
|
2888
|
+
class PolarBarChart(SilverpointChart):
|
|
2889
|
+
@classmethod
|
|
2890
|
+
def create(
|
|
2891
|
+
cls,
|
|
2892
|
+
*children,
|
|
2893
|
+
name_key: Var[str] | str | None = None,
|
|
2894
|
+
value_key: Var[str] | str | None = None,
|
|
2895
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
2896
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
2897
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
2898
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
2899
|
+
| None = None,
|
|
2900
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
2901
|
+
seed: Var[int | str] | int | str | None = None,
|
|
2902
|
+
height: Var[float | int] | float | int | None = None,
|
|
2903
|
+
width: Var[float | int] | float | int | None = None,
|
|
2904
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
2905
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
2906
|
+
title: Var[str] | str | None = None,
|
|
2907
|
+
badge: Var[str] | str | None = None,
|
|
2908
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
2909
|
+
unit: Var[str] | str | None = None,
|
|
2910
|
+
footer_left: Var[str] | str | None = None,
|
|
2911
|
+
footer_right: Var[str] | str | None = None,
|
|
2912
|
+
label: Var[str] | str | None = None,
|
|
2913
|
+
description: Var[str] | str | None = None,
|
|
2914
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
2915
|
+
locale: Var[str] | str | None = None,
|
|
2916
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
2917
|
+
tooltip: Any | Var[Any] | None = None,
|
|
2918
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
2919
|
+
key: Any | None = None,
|
|
2920
|
+
id: Any | None = None,
|
|
2921
|
+
ref: Var | None = None,
|
|
2922
|
+
class_name: Any | None = None,
|
|
2923
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
2924
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
2925
|
+
on_blur: Optional[EventType[()]] = None,
|
|
2926
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2927
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2928
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
2929
|
+
on_focus: Optional[EventType[()]] = None,
|
|
2930
|
+
on_mount: Optional[EventType[()]] = None,
|
|
2931
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
2932
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
2933
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
2934
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
2935
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
2936
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
2937
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
2938
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
2939
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
2940
|
+
on_select: Optional[EventType[Any]] = None,
|
|
2941
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
2942
|
+
**props,
|
|
2943
|
+
) -> "PolarBarChart":
|
|
2944
|
+
"""Create the component.
|
|
2945
|
+
|
|
2946
|
+
Args:
|
|
2947
|
+
*children: The children of the component.
|
|
2948
|
+
name_key: Key of each row in `data` to read.
|
|
2949
|
+
value_key: Key of each row in `data` to read.
|
|
2950
|
+
data: no description
|
|
2951
|
+
ground: no description
|
|
2952
|
+
substrate: no description
|
|
2953
|
+
mode: no description
|
|
2954
|
+
seed: no description
|
|
2955
|
+
height: no description
|
|
2956
|
+
width: no description
|
|
2957
|
+
chrome: no description
|
|
2958
|
+
hatch_fill: no description
|
|
2959
|
+
title: no description
|
|
2960
|
+
badge: no description
|
|
2961
|
+
value: no description
|
|
2962
|
+
unit: no description
|
|
2963
|
+
footer_left: no description
|
|
2964
|
+
footer_right: no description
|
|
2965
|
+
label: no description
|
|
2966
|
+
description: no description
|
|
2967
|
+
data_table: no description
|
|
2968
|
+
locale: no description
|
|
2969
|
+
number_format: no description
|
|
2970
|
+
tooltip: no description
|
|
2971
|
+
style: The style of the component.
|
|
2972
|
+
key: A unique key for the component.
|
|
2973
|
+
id: The id for the component.
|
|
2974
|
+
ref: The Var to pass as the ref to the component.
|
|
2975
|
+
class_name: The class name for the component.
|
|
2976
|
+
custom_attrs: Attributes passed directly to the component.
|
|
2977
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
2978
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
2979
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
2980
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
2981
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
2982
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
2983
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
2984
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
2985
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
2986
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
2987
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
2988
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
2989
|
+
on_scroll: Fired when the user scrolls the element.
|
|
2990
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
2991
|
+
on_mount: Fired when the component is mounted to the page.
|
|
2992
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
2993
|
+
on_active_change: no description
|
|
2994
|
+
on_select: no description
|
|
2995
|
+
**props: The props of the component.
|
|
2996
|
+
|
|
2997
|
+
Returns:
|
|
2998
|
+
The component.
|
|
2999
|
+
"""
|
|
3000
|
+
...
|
|
3001
|
+
|
|
3002
|
+
polar_bar_chart = PolarBarChart.create
|
|
3003
|
+
|
|
3004
|
+
class RadialArcGroup(SilverpointChart):
|
|
3005
|
+
@classmethod
|
|
3006
|
+
def create(
|
|
3007
|
+
cls,
|
|
3008
|
+
*children,
|
|
3009
|
+
name_key: Var[str] | str | None = None,
|
|
3010
|
+
value_key: Var[str] | str | None = None,
|
|
3011
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
3012
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
3013
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
3014
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
3015
|
+
| None = None,
|
|
3016
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
3017
|
+
seed: Var[int | str] | int | str | None = None,
|
|
3018
|
+
height: Var[float | int] | float | int | None = None,
|
|
3019
|
+
width: Var[float | int] | float | int | None = None,
|
|
3020
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
3021
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
3022
|
+
title: Var[str] | str | None = None,
|
|
3023
|
+
badge: Var[str] | str | None = None,
|
|
3024
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
3025
|
+
unit: Var[str] | str | None = None,
|
|
3026
|
+
footer_left: Var[str] | str | None = None,
|
|
3027
|
+
footer_right: Var[str] | str | None = None,
|
|
3028
|
+
label: Var[str] | str | None = None,
|
|
3029
|
+
description: Var[str] | str | None = None,
|
|
3030
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
3031
|
+
locale: Var[str] | str | None = None,
|
|
3032
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
3033
|
+
tooltip: Any | Var[Any] | None = None,
|
|
3034
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
3035
|
+
key: Any | None = None,
|
|
3036
|
+
id: Any | None = None,
|
|
3037
|
+
ref: Var | None = None,
|
|
3038
|
+
class_name: Any | None = None,
|
|
3039
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
3040
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
3041
|
+
on_blur: Optional[EventType[()]] = None,
|
|
3042
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3043
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3044
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3045
|
+
on_focus: Optional[EventType[()]] = None,
|
|
3046
|
+
on_mount: Optional[EventType[()]] = None,
|
|
3047
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
3048
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
3049
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
3050
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
3051
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
3052
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
3053
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
3054
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
3055
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
3056
|
+
on_select: Optional[EventType[Any]] = None,
|
|
3057
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
3058
|
+
**props,
|
|
3059
|
+
) -> "RadialArcGroup":
|
|
3060
|
+
"""Create the component.
|
|
3061
|
+
|
|
3062
|
+
Args:
|
|
3063
|
+
*children: The children of the component.
|
|
3064
|
+
name_key: Key of each row in `data` to read.
|
|
3065
|
+
value_key: Key of each row in `data` to read.
|
|
3066
|
+
data: no description
|
|
3067
|
+
ground: no description
|
|
3068
|
+
substrate: no description
|
|
3069
|
+
mode: no description
|
|
3070
|
+
seed: no description
|
|
3071
|
+
height: no description
|
|
3072
|
+
width: no description
|
|
3073
|
+
chrome: no description
|
|
3074
|
+
hatch_fill: no description
|
|
3075
|
+
title: no description
|
|
3076
|
+
badge: no description
|
|
3077
|
+
value: no description
|
|
3078
|
+
unit: no description
|
|
3079
|
+
footer_left: no description
|
|
3080
|
+
footer_right: no description
|
|
3081
|
+
label: no description
|
|
3082
|
+
description: no description
|
|
3083
|
+
data_table: no description
|
|
3084
|
+
locale: no description
|
|
3085
|
+
number_format: no description
|
|
3086
|
+
tooltip: no description
|
|
3087
|
+
style: The style of the component.
|
|
3088
|
+
key: A unique key for the component.
|
|
3089
|
+
id: The id for the component.
|
|
3090
|
+
ref: The Var to pass as the ref to the component.
|
|
3091
|
+
class_name: The class name for the component.
|
|
3092
|
+
custom_attrs: Attributes passed directly to the component.
|
|
3093
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
3094
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
3095
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
3096
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
3097
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
3098
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
3099
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
3100
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
3101
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
3102
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
3103
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
3104
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
3105
|
+
on_scroll: Fired when the user scrolls the element.
|
|
3106
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
3107
|
+
on_mount: Fired when the component is mounted to the page.
|
|
3108
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
3109
|
+
on_active_change: no description
|
|
3110
|
+
on_select: no description
|
|
3111
|
+
**props: The props of the component.
|
|
3112
|
+
|
|
3113
|
+
Returns:
|
|
3114
|
+
The component.
|
|
3115
|
+
"""
|
|
3116
|
+
...
|
|
3117
|
+
|
|
3118
|
+
radial_arc_group = RadialArcGroup.create
|
|
3119
|
+
|
|
3120
|
+
class RadialRings(SilverpointChart):
|
|
3121
|
+
@classmethod
|
|
3122
|
+
def create(
|
|
3123
|
+
cls,
|
|
3124
|
+
*children,
|
|
3125
|
+
name_key: Var[str] | str | None = None,
|
|
3126
|
+
value_key: Var[str] | str | None = None,
|
|
3127
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
3128
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
3129
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
3130
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
3131
|
+
| None = None,
|
|
3132
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
3133
|
+
seed: Var[int | str] | int | str | None = None,
|
|
3134
|
+
height: Var[float | int] | float | int | None = None,
|
|
3135
|
+
width: Var[float | int] | float | int | None = None,
|
|
3136
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
3137
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
3138
|
+
title: Var[str] | str | None = None,
|
|
3139
|
+
badge: Var[str] | str | None = None,
|
|
3140
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
3141
|
+
unit: Var[str] | str | None = None,
|
|
3142
|
+
footer_left: Var[str] | str | None = None,
|
|
3143
|
+
footer_right: Var[str] | str | None = None,
|
|
3144
|
+
label: Var[str] | str | None = None,
|
|
3145
|
+
description: Var[str] | str | None = None,
|
|
3146
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
3147
|
+
locale: Var[str] | str | None = None,
|
|
3148
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
3149
|
+
tooltip: Any | Var[Any] | None = None,
|
|
3150
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
3151
|
+
key: Any | None = None,
|
|
3152
|
+
id: Any | None = None,
|
|
3153
|
+
ref: Var | None = None,
|
|
3154
|
+
class_name: Any | None = None,
|
|
3155
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
3156
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
3157
|
+
on_blur: Optional[EventType[()]] = None,
|
|
3158
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3159
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3160
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3161
|
+
on_focus: Optional[EventType[()]] = None,
|
|
3162
|
+
on_mount: Optional[EventType[()]] = None,
|
|
3163
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
3164
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
3165
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
3166
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
3167
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
3168
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
3169
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
3170
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
3171
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
3172
|
+
on_select: Optional[EventType[Any]] = None,
|
|
3173
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
3174
|
+
**props,
|
|
3175
|
+
) -> "RadialRings":
|
|
3176
|
+
"""Create the component.
|
|
3177
|
+
|
|
3178
|
+
Args:
|
|
3179
|
+
*children: The children of the component.
|
|
3180
|
+
name_key: Key of each row in `data` to read.
|
|
3181
|
+
value_key: Key of each row in `data` to read.
|
|
3182
|
+
data: no description
|
|
3183
|
+
ground: no description
|
|
3184
|
+
substrate: no description
|
|
3185
|
+
mode: no description
|
|
3186
|
+
seed: no description
|
|
3187
|
+
height: no description
|
|
3188
|
+
width: no description
|
|
3189
|
+
chrome: no description
|
|
3190
|
+
hatch_fill: no description
|
|
3191
|
+
title: no description
|
|
3192
|
+
badge: no description
|
|
3193
|
+
value: no description
|
|
3194
|
+
unit: no description
|
|
3195
|
+
footer_left: no description
|
|
3196
|
+
footer_right: no description
|
|
3197
|
+
label: no description
|
|
3198
|
+
description: no description
|
|
3199
|
+
data_table: no description
|
|
3200
|
+
locale: no description
|
|
3201
|
+
number_format: no description
|
|
3202
|
+
tooltip: no description
|
|
3203
|
+
style: The style of the component.
|
|
3204
|
+
key: A unique key for the component.
|
|
3205
|
+
id: The id for the component.
|
|
3206
|
+
ref: The Var to pass as the ref to the component.
|
|
3207
|
+
class_name: The class name for the component.
|
|
3208
|
+
custom_attrs: Attributes passed directly to the component.
|
|
3209
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
3210
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
3211
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
3212
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
3213
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
3214
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
3215
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
3216
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
3217
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
3218
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
3219
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
3220
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
3221
|
+
on_scroll: Fired when the user scrolls the element.
|
|
3222
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
3223
|
+
on_mount: Fired when the component is mounted to the page.
|
|
3224
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
3225
|
+
on_active_change: no description
|
|
3226
|
+
on_select: no description
|
|
3227
|
+
**props: The props of the component.
|
|
3228
|
+
|
|
3229
|
+
Returns:
|
|
3230
|
+
The component.
|
|
3231
|
+
"""
|
|
3232
|
+
...
|
|
3233
|
+
|
|
3234
|
+
radial_rings = RadialRings.create
|
|
3235
|
+
|
|
3236
|
+
class GaugeArc(SilverpointChart):
|
|
3237
|
+
@classmethod
|
|
3238
|
+
def create(
|
|
3239
|
+
cls,
|
|
3240
|
+
*children,
|
|
3241
|
+
percent: Var[float | int] | float | int | None = None,
|
|
3242
|
+
caption: Var[str] | str | None = None,
|
|
3243
|
+
readout: Var[str] | str | None = None,
|
|
3244
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
3245
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
3246
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
3247
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
3248
|
+
| None = None,
|
|
3249
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
3250
|
+
seed: Var[int | str] | int | str | None = None,
|
|
3251
|
+
height: Var[float | int] | float | int | None = None,
|
|
3252
|
+
width: Var[float | int] | float | int | None = None,
|
|
3253
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
3254
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
3255
|
+
title: Var[str] | str | None = None,
|
|
3256
|
+
badge: Var[str] | str | None = None,
|
|
3257
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
3258
|
+
unit: Var[str] | str | None = None,
|
|
3259
|
+
footer_left: Var[str] | str | None = None,
|
|
3260
|
+
footer_right: Var[str] | str | None = None,
|
|
3261
|
+
label: Var[str] | str | None = None,
|
|
3262
|
+
description: Var[str] | str | None = None,
|
|
3263
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
3264
|
+
locale: Var[str] | str | None = None,
|
|
3265
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
3266
|
+
tooltip: Any | Var[Any] | None = None,
|
|
3267
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
3268
|
+
key: Any | None = None,
|
|
3269
|
+
id: Any | None = None,
|
|
3270
|
+
ref: Var | None = None,
|
|
3271
|
+
class_name: Any | None = None,
|
|
3272
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
3273
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
3274
|
+
on_blur: Optional[EventType[()]] = None,
|
|
3275
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3276
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3277
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3278
|
+
on_focus: Optional[EventType[()]] = None,
|
|
3279
|
+
on_mount: Optional[EventType[()]] = None,
|
|
3280
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
3281
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
3282
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
3283
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
3284
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
3285
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
3286
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
3287
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
3288
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
3289
|
+
on_select: Optional[EventType[Any]] = None,
|
|
3290
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
3291
|
+
**props,
|
|
3292
|
+
) -> "GaugeArc":
|
|
3293
|
+
"""Create the component.
|
|
3294
|
+
|
|
3295
|
+
Args:
|
|
3296
|
+
*children: The children of the component.
|
|
3297
|
+
percent: 0 to 100; saturated at the ends outside it.
|
|
3298
|
+
caption: Names the measure under the readout.
|
|
3299
|
+
readout: Printed in place of the percent.
|
|
3300
|
+
data: no description
|
|
3301
|
+
ground: no description
|
|
3302
|
+
substrate: no description
|
|
3303
|
+
mode: no description
|
|
3304
|
+
seed: no description
|
|
3305
|
+
height: no description
|
|
3306
|
+
width: no description
|
|
3307
|
+
chrome: no description
|
|
3308
|
+
hatch_fill: no description
|
|
3309
|
+
title: no description
|
|
3310
|
+
badge: no description
|
|
3311
|
+
value: no description
|
|
3312
|
+
unit: no description
|
|
3313
|
+
footer_left: no description
|
|
3314
|
+
footer_right: no description
|
|
3315
|
+
label: no description
|
|
3316
|
+
description: no description
|
|
3317
|
+
data_table: no description
|
|
3318
|
+
locale: no description
|
|
3319
|
+
number_format: no description
|
|
3320
|
+
tooltip: no description
|
|
3321
|
+
style: The style of the component.
|
|
3322
|
+
key: A unique key for the component.
|
|
3323
|
+
id: The id for the component.
|
|
3324
|
+
ref: The Var to pass as the ref to the component.
|
|
3325
|
+
class_name: The class name for the component.
|
|
3326
|
+
custom_attrs: Attributes passed directly to the component.
|
|
3327
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
3328
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
3329
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
3330
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
3331
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
3332
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
3333
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
3334
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
3335
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
3336
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
3337
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
3338
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
3339
|
+
on_scroll: Fired when the user scrolls the element.
|
|
3340
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
3341
|
+
on_mount: Fired when the component is mounted to the page.
|
|
3342
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
3343
|
+
on_active_change: no description
|
|
3344
|
+
on_select: no description
|
|
3345
|
+
**props: The props of the component.
|
|
3346
|
+
|
|
3347
|
+
Returns:
|
|
3348
|
+
The component.
|
|
3349
|
+
"""
|
|
3350
|
+
...
|
|
3351
|
+
|
|
3352
|
+
gauge_arc = GaugeArc.create
|
|
3353
|
+
|
|
3354
|
+
class MeterChart(SilverpointChart):
|
|
3355
|
+
@classmethod
|
|
3356
|
+
def create(
|
|
3357
|
+
cls,
|
|
3358
|
+
*children,
|
|
3359
|
+
percent: Var[float | int] | float | int | None = None,
|
|
3360
|
+
caption: Var[str] | str | None = None,
|
|
3361
|
+
readout: Var[str] | str | None = None,
|
|
3362
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
3363
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
3364
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
3365
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
3366
|
+
| None = None,
|
|
3367
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
3368
|
+
seed: Var[int | str] | int | str | None = None,
|
|
3369
|
+
height: Var[float | int] | float | int | None = None,
|
|
3370
|
+
width: Var[float | int] | float | int | None = None,
|
|
3371
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
3372
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
3373
|
+
title: Var[str] | str | None = None,
|
|
3374
|
+
badge: Var[str] | str | None = None,
|
|
3375
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
3376
|
+
unit: Var[str] | str | None = None,
|
|
3377
|
+
footer_left: Var[str] | str | None = None,
|
|
3378
|
+
footer_right: Var[str] | str | None = None,
|
|
3379
|
+
label: Var[str] | str | None = None,
|
|
3380
|
+
description: Var[str] | str | None = None,
|
|
3381
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
3382
|
+
locale: Var[str] | str | None = None,
|
|
3383
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
3384
|
+
tooltip: Any | Var[Any] | None = None,
|
|
3385
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
3386
|
+
key: Any | None = None,
|
|
3387
|
+
id: Any | None = None,
|
|
3388
|
+
ref: Var | None = None,
|
|
3389
|
+
class_name: Any | None = None,
|
|
3390
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
3391
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
3392
|
+
on_blur: Optional[EventType[()]] = None,
|
|
3393
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3394
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3395
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3396
|
+
on_focus: Optional[EventType[()]] = None,
|
|
3397
|
+
on_mount: Optional[EventType[()]] = None,
|
|
3398
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
3399
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
3400
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
3401
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
3402
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
3403
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
3404
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
3405
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
3406
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
3407
|
+
on_select: Optional[EventType[Any]] = None,
|
|
3408
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
3409
|
+
**props,
|
|
3410
|
+
) -> "MeterChart":
|
|
3411
|
+
"""Create the component.
|
|
3412
|
+
|
|
3413
|
+
Args:
|
|
3414
|
+
*children: The children of the component.
|
|
3415
|
+
percent: 0 to 100; saturated at the ends outside it.
|
|
3416
|
+
caption: Names the measure under the readout.
|
|
3417
|
+
readout: Printed in place of the percent.
|
|
3418
|
+
data: no description
|
|
3419
|
+
ground: no description
|
|
3420
|
+
substrate: no description
|
|
3421
|
+
mode: no description
|
|
3422
|
+
seed: no description
|
|
3423
|
+
height: no description
|
|
3424
|
+
width: no description
|
|
3425
|
+
chrome: no description
|
|
3426
|
+
hatch_fill: no description
|
|
3427
|
+
title: no description
|
|
3428
|
+
badge: no description
|
|
3429
|
+
value: no description
|
|
3430
|
+
unit: no description
|
|
3431
|
+
footer_left: no description
|
|
3432
|
+
footer_right: no description
|
|
3433
|
+
label: no description
|
|
3434
|
+
description: no description
|
|
3435
|
+
data_table: no description
|
|
3436
|
+
locale: no description
|
|
3437
|
+
number_format: no description
|
|
3438
|
+
tooltip: no description
|
|
3439
|
+
style: The style of the component.
|
|
3440
|
+
key: A unique key for the component.
|
|
3441
|
+
id: The id for the component.
|
|
3442
|
+
ref: The Var to pass as the ref to the component.
|
|
3443
|
+
class_name: The class name for the component.
|
|
3444
|
+
custom_attrs: Attributes passed directly to the component.
|
|
3445
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
3446
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
3447
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
3448
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
3449
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
3450
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
3451
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
3452
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
3453
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
3454
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
3455
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
3456
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
3457
|
+
on_scroll: Fired when the user scrolls the element.
|
|
3458
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
3459
|
+
on_mount: Fired when the component is mounted to the page.
|
|
3460
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
3461
|
+
on_active_change: no description
|
|
3462
|
+
on_select: no description
|
|
3463
|
+
**props: The props of the component.
|
|
3464
|
+
|
|
3465
|
+
Returns:
|
|
3466
|
+
The component.
|
|
3467
|
+
"""
|
|
3468
|
+
...
|
|
3469
|
+
|
|
3470
|
+
meter_chart = MeterChart.create
|
|
3471
|
+
|
|
3472
|
+
class CoxcombChart(SilverpointChart):
|
|
3473
|
+
@classmethod
|
|
3474
|
+
def create(
|
|
3475
|
+
cls,
|
|
3476
|
+
*children,
|
|
3477
|
+
name_key: Var[str] | str | None = None,
|
|
3478
|
+
value_key: Var[str] | str | None = None,
|
|
3479
|
+
start_angle: Var[float | int] | float | int | None = None,
|
|
3480
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
3481
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
3482
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
3483
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
3484
|
+
| None = None,
|
|
3485
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
3486
|
+
seed: Var[int | str] | int | str | None = None,
|
|
3487
|
+
height: Var[float | int] | float | int | None = None,
|
|
3488
|
+
width: Var[float | int] | float | int | None = None,
|
|
3489
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
3490
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
3491
|
+
title: Var[str] | str | None = None,
|
|
3492
|
+
badge: Var[str] | str | None = None,
|
|
3493
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
3494
|
+
unit: Var[str] | str | None = None,
|
|
3495
|
+
footer_left: Var[str] | str | None = None,
|
|
3496
|
+
footer_right: Var[str] | str | None = None,
|
|
3497
|
+
label: Var[str] | str | None = None,
|
|
3498
|
+
description: Var[str] | str | None = None,
|
|
3499
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
3500
|
+
locale: Var[str] | str | None = None,
|
|
3501
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
3502
|
+
tooltip: Any | Var[Any] | None = None,
|
|
3503
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
3504
|
+
key: Any | None = None,
|
|
3505
|
+
id: Any | None = None,
|
|
3506
|
+
ref: Var | None = None,
|
|
3507
|
+
class_name: Any | None = None,
|
|
3508
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
3509
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
3510
|
+
on_blur: Optional[EventType[()]] = None,
|
|
3511
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3512
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3513
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3514
|
+
on_focus: Optional[EventType[()]] = None,
|
|
3515
|
+
on_mount: Optional[EventType[()]] = None,
|
|
3516
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
3517
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
3518
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
3519
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
3520
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
3521
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
3522
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
3523
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
3524
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
3525
|
+
on_select: Optional[EventType[Any]] = None,
|
|
3526
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
3527
|
+
**props,
|
|
3528
|
+
) -> "CoxcombChart":
|
|
3529
|
+
"""Create the component.
|
|
3530
|
+
|
|
3531
|
+
Args:
|
|
3532
|
+
*children: The children of the component.
|
|
3533
|
+
name_key: Key of each row in `data` to read.
|
|
3534
|
+
value_key: Key of each row in `data` to read.
|
|
3535
|
+
start_angle: Where the first sector starts, in degrees clockwise from 12 o'clock; 0 by default.
|
|
3536
|
+
data: no description
|
|
3537
|
+
ground: no description
|
|
3538
|
+
substrate: no description
|
|
3539
|
+
mode: no description
|
|
3540
|
+
seed: no description
|
|
3541
|
+
height: no description
|
|
3542
|
+
width: no description
|
|
3543
|
+
chrome: no description
|
|
3544
|
+
hatch_fill: no description
|
|
3545
|
+
title: no description
|
|
3546
|
+
badge: no description
|
|
3547
|
+
value: no description
|
|
3548
|
+
unit: no description
|
|
3549
|
+
footer_left: no description
|
|
3550
|
+
footer_right: no description
|
|
3551
|
+
label: no description
|
|
3552
|
+
description: no description
|
|
3553
|
+
data_table: no description
|
|
3554
|
+
locale: no description
|
|
3555
|
+
number_format: no description
|
|
3556
|
+
tooltip: no description
|
|
3557
|
+
style: The style of the component.
|
|
3558
|
+
key: A unique key for the component.
|
|
3559
|
+
id: The id for the component.
|
|
3560
|
+
ref: The Var to pass as the ref to the component.
|
|
3561
|
+
class_name: The class name for the component.
|
|
3562
|
+
custom_attrs: Attributes passed directly to the component.
|
|
3563
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
3564
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
3565
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
3566
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
3567
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
3568
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
3569
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
3570
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
3571
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
3572
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
3573
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
3574
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
3575
|
+
on_scroll: Fired when the user scrolls the element.
|
|
3576
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
3577
|
+
on_mount: Fired when the component is mounted to the page.
|
|
3578
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
3579
|
+
on_active_change: no description
|
|
3580
|
+
on_select: no description
|
|
3581
|
+
**props: The props of the component.
|
|
3582
|
+
|
|
3583
|
+
Returns:
|
|
3584
|
+
The component.
|
|
3585
|
+
"""
|
|
3586
|
+
...
|
|
3587
|
+
|
|
3588
|
+
coxcomb_chart = CoxcombChart.create
|
|
3589
|
+
|
|
3590
|
+
class WindRose(SilverpointChart):
|
|
3591
|
+
@classmethod
|
|
3592
|
+
def create(
|
|
3593
|
+
cls,
|
|
3594
|
+
*children,
|
|
3595
|
+
bearing_key: Var[str] | str | None = None,
|
|
3596
|
+
value_key: Var[str] | str | None = None,
|
|
3597
|
+
sectors: Var[int] | int | None = None,
|
|
3598
|
+
bins: Var[list[float | int]] | list[float | int] | None = None,
|
|
3599
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
3600
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
3601
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
3602
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
3603
|
+
| None = None,
|
|
3604
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
3605
|
+
seed: Var[int | str] | int | str | None = None,
|
|
3606
|
+
height: Var[float | int] | float | int | None = None,
|
|
3607
|
+
width: Var[float | int] | float | int | None = None,
|
|
3608
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
3609
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
3610
|
+
title: Var[str] | str | None = None,
|
|
3611
|
+
badge: Var[str] | str | None = None,
|
|
3612
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
3613
|
+
unit: Var[str] | str | None = None,
|
|
3614
|
+
footer_left: Var[str] | str | None = None,
|
|
3615
|
+
footer_right: Var[str] | str | None = None,
|
|
3616
|
+
label: Var[str] | str | None = None,
|
|
3617
|
+
description: Var[str] | str | None = None,
|
|
3618
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
3619
|
+
locale: Var[str] | str | None = None,
|
|
3620
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
3621
|
+
tooltip: Any | Var[Any] | None = None,
|
|
3622
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
3623
|
+
key: Any | None = None,
|
|
3624
|
+
id: Any | None = None,
|
|
3625
|
+
ref: Var | None = None,
|
|
3626
|
+
class_name: Any | None = None,
|
|
3627
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
3628
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
3629
|
+
on_blur: Optional[EventType[()]] = None,
|
|
3630
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3631
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3632
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3633
|
+
on_focus: Optional[EventType[()]] = None,
|
|
3634
|
+
on_mount: Optional[EventType[()]] = None,
|
|
3635
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
3636
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
3637
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
3638
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
3639
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
3640
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
3641
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
3642
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
3643
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
3644
|
+
on_select: Optional[EventType[Any]] = None,
|
|
3645
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
3646
|
+
**props,
|
|
3647
|
+
) -> "WindRose":
|
|
3648
|
+
"""Create the component.
|
|
3649
|
+
|
|
3650
|
+
Args:
|
|
3651
|
+
*children: The children of the component.
|
|
3652
|
+
bearing_key: Where the wind blows from, in degrees clockwise from north.
|
|
3653
|
+
value_key: The wind speed; 0 is a calm, which has no direction.
|
|
3654
|
+
sectors: Compass sectors: 4, 8, 16 or 32; 16 by default.
|
|
3655
|
+
bins: Ascending speed thresholds that split each sector; `[5, 10, 15, 20]` by default.
|
|
3656
|
+
data: no description
|
|
3657
|
+
ground: no description
|
|
3658
|
+
substrate: no description
|
|
3659
|
+
mode: no description
|
|
3660
|
+
seed: no description
|
|
3661
|
+
height: no description
|
|
3662
|
+
width: no description
|
|
3663
|
+
chrome: no description
|
|
3664
|
+
hatch_fill: no description
|
|
3665
|
+
title: no description
|
|
3666
|
+
badge: no description
|
|
3667
|
+
value: no description
|
|
3668
|
+
unit: no description
|
|
3669
|
+
footer_left: no description
|
|
3670
|
+
footer_right: no description
|
|
3671
|
+
label: no description
|
|
3672
|
+
description: no description
|
|
3673
|
+
data_table: no description
|
|
3674
|
+
locale: no description
|
|
3675
|
+
number_format: no description
|
|
3676
|
+
tooltip: no description
|
|
3677
|
+
style: The style of the component.
|
|
3678
|
+
key: A unique key for the component.
|
|
3679
|
+
id: The id for the component.
|
|
3680
|
+
ref: The Var to pass as the ref to the component.
|
|
3681
|
+
class_name: The class name for the component.
|
|
3682
|
+
custom_attrs: Attributes passed directly to the component.
|
|
3683
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
3684
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
3685
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
3686
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
3687
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
3688
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
3689
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
3690
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
3691
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
3692
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
3693
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
3694
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
3695
|
+
on_scroll: Fired when the user scrolls the element.
|
|
3696
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
3697
|
+
on_mount: Fired when the component is mounted to the page.
|
|
3698
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
3699
|
+
on_active_change: no description
|
|
3700
|
+
on_select: no description
|
|
3701
|
+
**props: The props of the component.
|
|
3702
|
+
|
|
3703
|
+
Returns:
|
|
3704
|
+
The component.
|
|
3705
|
+
"""
|
|
3706
|
+
...
|
|
3707
|
+
|
|
3708
|
+
wind_rose = WindRose.create
|
|
3709
|
+
|
|
3710
|
+
class VolvelleChart(SilverpointChart):
|
|
3711
|
+
@classmethod
|
|
3712
|
+
def create(
|
|
3713
|
+
cls,
|
|
3714
|
+
*children,
|
|
3715
|
+
rings: Var[int] | int | None = None,
|
|
3716
|
+
index_ring: Var[int] | int | None = None,
|
|
3717
|
+
index_value: Var[str] | str | None = None,
|
|
3718
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
3719
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
3720
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
3721
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
3722
|
+
| None = None,
|
|
3723
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
3724
|
+
seed: Var[int | str] | int | str | None = None,
|
|
3725
|
+
height: Var[float | int] | float | int | None = None,
|
|
3726
|
+
width: Var[float | int] | float | int | None = None,
|
|
3727
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
3728
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
3729
|
+
title: Var[str] | str | None = None,
|
|
3730
|
+
badge: Var[str] | str | None = None,
|
|
3731
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
3732
|
+
unit: Var[str] | str | None = None,
|
|
3733
|
+
footer_left: Var[str] | str | None = None,
|
|
3734
|
+
footer_right: Var[str] | str | None = None,
|
|
3735
|
+
label: Var[str] | str | None = None,
|
|
3736
|
+
description: Var[str] | str | None = None,
|
|
3737
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
3738
|
+
locale: Var[str] | str | None = None,
|
|
3739
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
3740
|
+
tooltip: Any | Var[Any] | None = None,
|
|
3741
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
3742
|
+
key: Any | None = None,
|
|
3743
|
+
id: Any | None = None,
|
|
3744
|
+
ref: Var | None = None,
|
|
3745
|
+
class_name: Any | None = None,
|
|
3746
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
3747
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
3748
|
+
on_blur: Optional[EventType[()]] = None,
|
|
3749
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3750
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3751
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3752
|
+
on_focus: Optional[EventType[()]] = None,
|
|
3753
|
+
on_mount: Optional[EventType[()]] = None,
|
|
3754
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
3755
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
3756
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
3757
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
3758
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
3759
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
3760
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
3761
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
3762
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
3763
|
+
on_select: Optional[EventType[Any]] = None,
|
|
3764
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
3765
|
+
**props,
|
|
3766
|
+
) -> "VolvelleChart":
|
|
3767
|
+
"""Create the component.
|
|
3768
|
+
|
|
3769
|
+
Args:
|
|
3770
|
+
*children: The children of the component.
|
|
3771
|
+
rings: Rings shown, from the inside out; all by default.
|
|
3772
|
+
index_ring: The ring whose segment is brought under the index, 0-based; 0 by default.
|
|
3773
|
+
index_value: The segment of `indexRing` under the index; its first segment by default.
|
|
3774
|
+
data: no description
|
|
3775
|
+
ground: no description
|
|
3776
|
+
substrate: no description
|
|
3777
|
+
mode: no description
|
|
3778
|
+
seed: no description
|
|
3779
|
+
height: no description
|
|
3780
|
+
width: no description
|
|
3781
|
+
chrome: no description
|
|
3782
|
+
hatch_fill: no description
|
|
3783
|
+
title: no description
|
|
3784
|
+
badge: no description
|
|
3785
|
+
value: no description
|
|
3786
|
+
unit: no description
|
|
3787
|
+
footer_left: no description
|
|
3788
|
+
footer_right: no description
|
|
3789
|
+
label: no description
|
|
3790
|
+
description: no description
|
|
3791
|
+
data_table: no description
|
|
3792
|
+
locale: no description
|
|
3793
|
+
number_format: no description
|
|
3794
|
+
tooltip: no description
|
|
3795
|
+
style: The style of the component.
|
|
3796
|
+
key: A unique key for the component.
|
|
3797
|
+
id: The id for the component.
|
|
3798
|
+
ref: The Var to pass as the ref to the component.
|
|
3799
|
+
class_name: The class name for the component.
|
|
3800
|
+
custom_attrs: Attributes passed directly to the component.
|
|
3801
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
3802
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
3803
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
3804
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
3805
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
3806
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
3807
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
3808
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
3809
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
3810
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
3811
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
3812
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
3813
|
+
on_scroll: Fired when the user scrolls the element.
|
|
3814
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
3815
|
+
on_mount: Fired when the component is mounted to the page.
|
|
3816
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
3817
|
+
on_active_change: no description
|
|
3818
|
+
on_select: no description
|
|
3819
|
+
**props: The props of the component.
|
|
3820
|
+
|
|
3821
|
+
Returns:
|
|
3822
|
+
The component.
|
|
3823
|
+
"""
|
|
3824
|
+
...
|
|
3825
|
+
|
|
3826
|
+
volvelle_chart = VolvelleChart.create
|
|
3827
|
+
|
|
3828
|
+
class OrbitChart(SilverpointChart):
|
|
3829
|
+
@classmethod
|
|
3830
|
+
def create(
|
|
3831
|
+
cls,
|
|
3832
|
+
*children,
|
|
3833
|
+
orbits: Var[int] | int | None = None,
|
|
3834
|
+
marker_key: Var[str] | str | None = None,
|
|
3835
|
+
period_key: Var[str] | str | None = None,
|
|
3836
|
+
data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
3837
|
+
ground: Var[dict[str, Any] | str] | dict[str, Any] | str | None = None,
|
|
3838
|
+
substrate: Literal["blue", "cream", "green", "ochre"]
|
|
3839
|
+
| Var[Literal["blue", "cream", "green", "ochre"]]
|
|
3840
|
+
| None = None,
|
|
3841
|
+
mode: Literal["ink", "precision"] | Var[Literal["ink", "precision"]] | None = None,
|
|
3842
|
+
seed: Var[int | str] | int | str | None = None,
|
|
3843
|
+
height: Var[float | int] | float | int | None = None,
|
|
3844
|
+
width: Var[float | int] | float | int | None = None,
|
|
3845
|
+
chrome: Literal["bare", "card"] | Var[Literal["bare", "card"]] | None = None,
|
|
3846
|
+
hatch_fill: Literal["per-shape", "tile"] | Var[Literal["per-shape", "tile"]] | None = None,
|
|
3847
|
+
title: Var[str] | str | None = None,
|
|
3848
|
+
badge: Var[str] | str | None = None,
|
|
3849
|
+
value: Var[float | int | str] | float | int | str | None = None,
|
|
3850
|
+
unit: Var[str] | str | None = None,
|
|
3851
|
+
footer_left: Var[str] | str | None = None,
|
|
3852
|
+
footer_right: Var[str] | str | None = None,
|
|
3853
|
+
label: Var[str] | str | None = None,
|
|
3854
|
+
description: Var[str] | str | None = None,
|
|
3855
|
+
data_table: Literal["hidden", "none", "visible"] | Var[Literal["hidden", "none", "visible"]] | None = None,
|
|
3856
|
+
locale: Var[str] | str | None = None,
|
|
3857
|
+
number_format: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
3858
|
+
tooltip: Any | Var[Any] | None = None,
|
|
3859
|
+
style: Sequence[Mapping[str, Any]] | Mapping[str, Any] | Var[Mapping[str, Any]] | Breakpoints | None = None,
|
|
3860
|
+
key: Any | None = None,
|
|
3861
|
+
id: Any | None = None,
|
|
3862
|
+
ref: Var | None = None,
|
|
3863
|
+
class_name: Any | None = None,
|
|
3864
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
3865
|
+
on_active_change: Optional[EventType[Any]] = None,
|
|
3866
|
+
on_blur: Optional[EventType[()]] = None,
|
|
3867
|
+
on_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3868
|
+
on_context_menu: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3869
|
+
on_double_click: Optional[EventType[()] | EventType[PointerEventInfo]] = None,
|
|
3870
|
+
on_focus: Optional[EventType[()]] = None,
|
|
3871
|
+
on_mount: Optional[EventType[()]] = None,
|
|
3872
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
3873
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
3874
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
3875
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
3876
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
3877
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
3878
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
3879
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
3880
|
+
on_scroll_end: Optional[EventType[()]] = None,
|
|
3881
|
+
on_select: Optional[EventType[Any]] = None,
|
|
3882
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
3883
|
+
**props,
|
|
3884
|
+
) -> "OrbitChart":
|
|
3885
|
+
"""Create the component.
|
|
3886
|
+
|
|
3887
|
+
Args:
|
|
3888
|
+
*children: The children of the component.
|
|
3889
|
+
orbits: Orbits shown, from the inside out; all by default.
|
|
3890
|
+
marker_key: A row's markers; `'markers'` by default.
|
|
3891
|
+
period_key: A marker's period, 0-1 over the cycle; `'period'` by default.
|
|
3892
|
+
data: no description
|
|
3893
|
+
ground: no description
|
|
3894
|
+
substrate: no description
|
|
3895
|
+
mode: no description
|
|
3896
|
+
seed: no description
|
|
3897
|
+
height: no description
|
|
3898
|
+
width: no description
|
|
3899
|
+
chrome: no description
|
|
3900
|
+
hatch_fill: no description
|
|
3901
|
+
title: no description
|
|
3902
|
+
badge: no description
|
|
3903
|
+
value: no description
|
|
3904
|
+
unit: no description
|
|
3905
|
+
footer_left: no description
|
|
3906
|
+
footer_right: no description
|
|
3907
|
+
label: no description
|
|
3908
|
+
description: no description
|
|
3909
|
+
data_table: no description
|
|
3910
|
+
locale: no description
|
|
3911
|
+
number_format: no description
|
|
3912
|
+
tooltip: no description
|
|
3913
|
+
style: The style of the component.
|
|
3914
|
+
key: A unique key for the component.
|
|
3915
|
+
id: The id for the component.
|
|
3916
|
+
ref: The Var to pass as the ref to the component.
|
|
3917
|
+
class_name: The class name for the component.
|
|
3918
|
+
custom_attrs: Attributes passed directly to the component.
|
|
3919
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
3920
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
3921
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
3922
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
3923
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
3924
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
3925
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
3926
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
3927
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
3928
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
3929
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
3930
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
3931
|
+
on_scroll: Fired when the user scrolls the element.
|
|
3932
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
3933
|
+
on_mount: Fired when the component is mounted to the page.
|
|
3934
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
3935
|
+
on_active_change: no description
|
|
3936
|
+
on_select: no description
|
|
3937
|
+
**props: The props of the component.
|
|
3938
|
+
|
|
3939
|
+
Returns:
|
|
3940
|
+
The component.
|
|
3941
|
+
"""
|
|
3942
|
+
...
|
|
3943
|
+
|
|
3944
|
+
orbit_chart = OrbitChart.create
|