reflex-components-plotly 0.9.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.
@@ -0,0 +1,1060 @@
1
+ """Stub file for reflex_components_plotly/plotly.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 TYPE_CHECKING, Any, TypedDict, TypeVar
8
+
9
+ from reflex_base.components.component import NoSSRComponent
10
+ from reflex_base.event import EventType, PointerEventInfo
11
+ from reflex_base.utils import console
12
+ from reflex_base.utils.imports import ImportDict
13
+ from reflex_base.vars.base import Var
14
+ from reflex_components_core.core.breakpoints import Breakpoints
15
+
16
+ try:
17
+ from plotly.graph_objs import Figure
18
+ from plotly.graph_objs.layout import Template
19
+ except ImportError:
20
+ console.warn("Plotly is not installed. Please run `pip install plotly`.")
21
+ if not TYPE_CHECKING:
22
+ Figure = Any
23
+ Template = Any
24
+ T = TypeVar("T")
25
+ ItemOrList = T | list[T]
26
+
27
+ class BBox(TypedDict):
28
+ x0: float | int | None
29
+ x1: float | int | None
30
+ y0: float | int | None
31
+ y1: float | int | None
32
+ z0: float | int | None
33
+ z1: float | int | None
34
+
35
+ class Point(TypedDict):
36
+ x: float | int | None
37
+ y: float | int | None
38
+ z: float | int | None
39
+ lat: float | int | None
40
+ lon: float | int | None
41
+ curveNumber: int | None
42
+ pointNumber: int | None
43
+ pointNumbers: list[int] | None
44
+ pointIndex: int | None
45
+ markerColor: ItemOrList[ItemOrList[float | int | str | None]] | None
46
+ markerSize: ItemOrList[ItemOrList[float | int | None,]] | None
47
+ bbox: BBox | None
48
+
49
+ class Plotly(NoSSRComponent):
50
+ def add_imports(self) -> dict[str, str]: ...
51
+ def add_custom_code(self) -> list[str]: ...
52
+ @classmethod
53
+ def create(
54
+ cls,
55
+ *children,
56
+ data: Any | Var[Any] | None = None,
57
+ layout: Var[dict] | dict | None = None,
58
+ template: Any | Var[Any] | None = None,
59
+ config: Var[dict] | dict | None = None,
60
+ use_resize_handler: Var[bool] | bool | None = None,
61
+ style: Sequence[Mapping[str, Any]]
62
+ | Mapping[str, Any]
63
+ | Var[Mapping[str, Any]]
64
+ | Breakpoints
65
+ | None = None,
66
+ key: Any | None = None,
67
+ id: Any | None = None,
68
+ ref: Var | None = None,
69
+ class_name: Any | None = None,
70
+ custom_attrs: dict[str, Any | Var] | None = None,
71
+ on_after_plot: EventType[()] | None = None,
72
+ on_animated: EventType[()] | None = None,
73
+ on_animating_frame: EventType[()] | None = None,
74
+ on_animation_interrupted: EventType[()] | None = None,
75
+ on_autosize: EventType[()] | None = None,
76
+ on_before_hover: EventType[()] | None = None,
77
+ on_blur: EventType[()] | None = None,
78
+ on_button_clicked: EventType[()] | None = None,
79
+ on_click: EventType[()] | EventType[list[Point]] | None = None,
80
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
81
+ on_deselect: EventType[()] | None = None,
82
+ on_double_click: EventType[()] | None = None,
83
+ on_focus: EventType[()] | None = None,
84
+ on_hover: EventType[()] | EventType[list[Point]] | None = None,
85
+ on_mount: EventType[()] | None = None,
86
+ on_mouse_down: EventType[()] | None = None,
87
+ on_mouse_enter: EventType[()] | None = None,
88
+ on_mouse_leave: EventType[()] | None = None,
89
+ on_mouse_move: EventType[()] | None = None,
90
+ on_mouse_out: EventType[()] | None = None,
91
+ on_mouse_over: EventType[()] | None = None,
92
+ on_mouse_up: EventType[()] | None = None,
93
+ on_redraw: EventType[()] | None = None,
94
+ on_relayout: EventType[()] | None = None,
95
+ on_relayouting: EventType[()] | None = None,
96
+ on_restyle: EventType[()] | None = None,
97
+ on_scroll: EventType[()] | None = None,
98
+ on_scroll_end: EventType[()] | None = None,
99
+ on_selected: EventType[()] | EventType[list[Point]] | None = None,
100
+ on_selecting: EventType[()] | EventType[list[Point]] | None = None,
101
+ on_transition_interrupted: EventType[()] | None = None,
102
+ on_transitioning: EventType[()] | None = None,
103
+ on_unhover: EventType[()] | EventType[list[Point]] | None = None,
104
+ on_unmount: EventType[()] | None = None,
105
+ **props,
106
+ ) -> Plotly:
107
+ """Create the Plotly component.
108
+
109
+ Args:
110
+ *children: The children of the component.
111
+ data: The figure to display. This can be a plotly figure or a plotly data json.
112
+ layout: The layout of the graph.
113
+ template: The template for visual appearance of the graph.
114
+ config: The config of the graph.
115
+ use_resize_handler: If true, the graph will resize when the window is resized.
116
+ style: The style of the component.
117
+ key: A unique key for the component.
118
+ id: The id for the component.
119
+ ref: The Var to pass as the ref to the component.
120
+ class_name: The class name for the component.
121
+ custom_attrs: Attributes passed directly to the component.
122
+ 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.
123
+ 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.
124
+ on_click: Fired when the plot is clicked.
125
+ on_context_menu: Fired when the user right-clicks on an element.
126
+ on_double_click: Fired when the plot is double clicked.
127
+ on_mouse_down: Fired when the user presses a mouse button on an element.
128
+ on_mouse_enter: Fired when the mouse pointer enters the element.
129
+ on_mouse_leave: Fired when the mouse pointer leaves the element.
130
+ on_mouse_move: Fired when the mouse pointer moves over the element.
131
+ on_mouse_out: Fired when the mouse pointer moves out of the element.
132
+ on_mouse_over: Fired when the mouse pointer moves onto the element.
133
+ on_mouse_up: Fired when the user releases a mouse button on an element.
134
+ on_scroll: Fired when the user scrolls the element.
135
+ on_scroll_end: Fired when scrolling ends on the element.
136
+ on_mount: Fired when the component is mounted to the page.
137
+ on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
138
+ on_after_plot: Fired after the plot is redrawn.
139
+ on_animated: Fired after the plot was animated.
140
+ on_animating_frame: Fired while animating a single frame (does not currently pass data through).
141
+ on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
142
+ on_autosize: Fired when the plot is responsively sized.
143
+ on_before_hover: Fired whenever mouse moves over a plot.
144
+ on_button_clicked: Fired when a plotly UI button is clicked.
145
+ on_deselect: Fired when a selection is cleared (via double click).
146
+ on_hover: Fired when a plot element is hovered over.
147
+ on_relayout: Fired after the plot is laid out (zoom, pan, etc).
148
+ on_relayouting: Fired while the plot is being laid out.
149
+ on_restyle: Fired after the plot style is changed.
150
+ on_redraw: Fired after the plot is redrawn.
151
+ on_selected: Fired after selecting plot elements.
152
+ on_selecting: Fired while dragging a selection.
153
+ on_transitioning: Fired while an animation is occurring.
154
+ on_transition_interrupted: Fired when a transition is stopped early.
155
+ on_unhover: Fired when a hovered element is no longer hovered.
156
+ **props: The properties of the component.
157
+
158
+ Returns:
159
+ The Plotly component.
160
+ """
161
+
162
+ CREATE_PLOTLY_COMPONENT: ImportDict
163
+
164
+ def dynamic_plotly_import(name: str, package: str) -> str: ...
165
+
166
+ class PlotlyBasic(Plotly):
167
+ def add_imports(self) -> ImportDict | list[ImportDict]: ...
168
+ @classmethod
169
+ def create(
170
+ cls,
171
+ *children,
172
+ data: Any | Var[Any] | None = None,
173
+ layout: Var[dict] | dict | None = None,
174
+ template: Any | Var[Any] | None = None,
175
+ config: Var[dict] | dict | None = None,
176
+ use_resize_handler: Var[bool] | bool | None = None,
177
+ style: Sequence[Mapping[str, Any]]
178
+ | Mapping[str, Any]
179
+ | Var[Mapping[str, Any]]
180
+ | Breakpoints
181
+ | None = None,
182
+ key: Any | None = None,
183
+ id: Any | None = None,
184
+ ref: Var | None = None,
185
+ class_name: Any | None = None,
186
+ custom_attrs: dict[str, Any | Var] | None = None,
187
+ on_after_plot: EventType[()] | None = None,
188
+ on_animated: EventType[()] | None = None,
189
+ on_animating_frame: EventType[()] | None = None,
190
+ on_animation_interrupted: EventType[()] | None = None,
191
+ on_autosize: EventType[()] | None = None,
192
+ on_before_hover: EventType[()] | None = None,
193
+ on_blur: EventType[()] | None = None,
194
+ on_button_clicked: EventType[()] | None = None,
195
+ on_click: EventType[()] | EventType[list[Point]] | None = None,
196
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
197
+ on_deselect: EventType[()] | None = None,
198
+ on_double_click: EventType[()] | None = None,
199
+ on_focus: EventType[()] | None = None,
200
+ on_hover: EventType[()] | EventType[list[Point]] | None = None,
201
+ on_mount: EventType[()] | None = None,
202
+ on_mouse_down: EventType[()] | None = None,
203
+ on_mouse_enter: EventType[()] | None = None,
204
+ on_mouse_leave: EventType[()] | None = None,
205
+ on_mouse_move: EventType[()] | None = None,
206
+ on_mouse_out: EventType[()] | None = None,
207
+ on_mouse_over: EventType[()] | None = None,
208
+ on_mouse_up: EventType[()] | None = None,
209
+ on_redraw: EventType[()] | None = None,
210
+ on_relayout: EventType[()] | None = None,
211
+ on_relayouting: EventType[()] | None = None,
212
+ on_restyle: EventType[()] | None = None,
213
+ on_scroll: EventType[()] | None = None,
214
+ on_scroll_end: EventType[()] | None = None,
215
+ on_selected: EventType[()] | EventType[list[Point]] | None = None,
216
+ on_selecting: EventType[()] | EventType[list[Point]] | None = None,
217
+ on_transition_interrupted: EventType[()] | None = None,
218
+ on_transitioning: EventType[()] | None = None,
219
+ on_unhover: EventType[()] | EventType[list[Point]] | None = None,
220
+ on_unmount: EventType[()] | None = None,
221
+ **props,
222
+ ) -> PlotlyBasic:
223
+ """Create the Plotly component.
224
+
225
+ Args:
226
+ *children: The children of the component.
227
+ data: The figure to display. This can be a plotly figure or a plotly data json.
228
+ layout: The layout of the graph.
229
+ template: The template for visual appearance of the graph.
230
+ config: The config of the graph.
231
+ use_resize_handler: If true, the graph will resize when the window is resized.
232
+ style: The style of the component.
233
+ key: A unique key for the component.
234
+ id: The id for the component.
235
+ ref: The Var to pass as the ref to the component.
236
+ class_name: The class name for the component.
237
+ custom_attrs: Attributes passed directly to the component.
238
+ 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.
239
+ 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.
240
+ on_click: Fired when the plot is clicked.
241
+ on_context_menu: Fired when the user right-clicks on an element.
242
+ on_double_click: Fired when the plot is double clicked.
243
+ on_mouse_down: Fired when the user presses a mouse button on an element.
244
+ on_mouse_enter: Fired when the mouse pointer enters the element.
245
+ on_mouse_leave: Fired when the mouse pointer leaves the element.
246
+ on_mouse_move: Fired when the mouse pointer moves over the element.
247
+ on_mouse_out: Fired when the mouse pointer moves out of the element.
248
+ on_mouse_over: Fired when the mouse pointer moves onto the element.
249
+ on_mouse_up: Fired when the user releases a mouse button on an element.
250
+ on_scroll: Fired when the user scrolls the element.
251
+ on_scroll_end: Fired when scrolling ends on the element.
252
+ on_mount: Fired when the component is mounted to the page.
253
+ on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
254
+ on_after_plot: Fired after the plot is redrawn.
255
+ on_animated: Fired after the plot was animated.
256
+ on_animating_frame: Fired while animating a single frame (does not currently pass data through).
257
+ on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
258
+ on_autosize: Fired when the plot is responsively sized.
259
+ on_before_hover: Fired whenever mouse moves over a plot.
260
+ on_button_clicked: Fired when a plotly UI button is clicked.
261
+ on_deselect: Fired when a selection is cleared (via double click).
262
+ on_hover: Fired when a plot element is hovered over.
263
+ on_relayout: Fired after the plot is laid out (zoom, pan, etc).
264
+ on_relayouting: Fired while the plot is being laid out.
265
+ on_restyle: Fired after the plot style is changed.
266
+ on_redraw: Fired after the plot is redrawn.
267
+ on_selected: Fired after selecting plot elements.
268
+ on_selecting: Fired while dragging a selection.
269
+ on_transitioning: Fired while an animation is occurring.
270
+ on_transition_interrupted: Fired when a transition is stopped early.
271
+ on_unhover: Fired when a hovered element is no longer hovered.
272
+ **props: The properties of the component.
273
+
274
+ Returns:
275
+ The Plotly component.
276
+ """
277
+
278
+ class PlotlyCartesian(Plotly):
279
+ def add_imports(self) -> ImportDict | list[ImportDict]: ...
280
+ @classmethod
281
+ def create(
282
+ cls,
283
+ *children,
284
+ data: Any | Var[Any] | None = None,
285
+ layout: Var[dict] | dict | None = None,
286
+ template: Any | Var[Any] | None = None,
287
+ config: Var[dict] | dict | None = None,
288
+ use_resize_handler: Var[bool] | bool | None = None,
289
+ style: Sequence[Mapping[str, Any]]
290
+ | Mapping[str, Any]
291
+ | Var[Mapping[str, Any]]
292
+ | Breakpoints
293
+ | 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_after_plot: EventType[()] | None = None,
300
+ on_animated: EventType[()] | None = None,
301
+ on_animating_frame: EventType[()] | None = None,
302
+ on_animation_interrupted: EventType[()] | None = None,
303
+ on_autosize: EventType[()] | None = None,
304
+ on_before_hover: EventType[()] | None = None,
305
+ on_blur: EventType[()] | None = None,
306
+ on_button_clicked: EventType[()] | None = None,
307
+ on_click: EventType[()] | EventType[list[Point]] | None = None,
308
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
309
+ on_deselect: EventType[()] | None = None,
310
+ on_double_click: EventType[()] | None = None,
311
+ on_focus: EventType[()] | None = None,
312
+ on_hover: EventType[()] | EventType[list[Point]] | None = None,
313
+ on_mount: EventType[()] | None = None,
314
+ on_mouse_down: EventType[()] | None = None,
315
+ on_mouse_enter: EventType[()] | None = None,
316
+ on_mouse_leave: EventType[()] | None = None,
317
+ on_mouse_move: EventType[()] | None = None,
318
+ on_mouse_out: EventType[()] | None = None,
319
+ on_mouse_over: EventType[()] | None = None,
320
+ on_mouse_up: EventType[()] | None = None,
321
+ on_redraw: EventType[()] | None = None,
322
+ on_relayout: EventType[()] | None = None,
323
+ on_relayouting: EventType[()] | None = None,
324
+ on_restyle: EventType[()] | None = None,
325
+ on_scroll: EventType[()] | None = None,
326
+ on_scroll_end: EventType[()] | None = None,
327
+ on_selected: EventType[()] | EventType[list[Point]] | None = None,
328
+ on_selecting: EventType[()] | EventType[list[Point]] | None = None,
329
+ on_transition_interrupted: EventType[()] | None = None,
330
+ on_transitioning: EventType[()] | None = None,
331
+ on_unhover: EventType[()] | EventType[list[Point]] | None = None,
332
+ on_unmount: EventType[()] | None = None,
333
+ **props,
334
+ ) -> PlotlyCartesian:
335
+ """Create the Plotly component.
336
+
337
+ Args:
338
+ *children: The children of the component.
339
+ data: The figure to display. This can be a plotly figure or a plotly data json.
340
+ layout: The layout of the graph.
341
+ template: The template for visual appearance of the graph.
342
+ config: The config of the graph.
343
+ use_resize_handler: If true, the graph will resize when the window is resized.
344
+ style: The style of the component.
345
+ key: A unique key for the component.
346
+ id: The id for the component.
347
+ ref: The Var to pass as the ref to the component.
348
+ class_name: The class name for the component.
349
+ custom_attrs: Attributes passed directly to the component.
350
+ 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.
351
+ 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.
352
+ on_click: Fired when the plot is clicked.
353
+ on_context_menu: Fired when the user right-clicks on an element.
354
+ on_double_click: Fired when the plot is double clicked.
355
+ on_mouse_down: Fired when the user presses a mouse button on an element.
356
+ on_mouse_enter: Fired when the mouse pointer enters the element.
357
+ on_mouse_leave: Fired when the mouse pointer leaves the element.
358
+ on_mouse_move: Fired when the mouse pointer moves over the element.
359
+ on_mouse_out: Fired when the mouse pointer moves out of the element.
360
+ on_mouse_over: Fired when the mouse pointer moves onto the element.
361
+ on_mouse_up: Fired when the user releases a mouse button on an element.
362
+ on_scroll: Fired when the user scrolls the element.
363
+ on_scroll_end: Fired when scrolling ends on the element.
364
+ on_mount: Fired when the component is mounted to the page.
365
+ on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
366
+ on_after_plot: Fired after the plot is redrawn.
367
+ on_animated: Fired after the plot was animated.
368
+ on_animating_frame: Fired while animating a single frame (does not currently pass data through).
369
+ on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
370
+ on_autosize: Fired when the plot is responsively sized.
371
+ on_before_hover: Fired whenever mouse moves over a plot.
372
+ on_button_clicked: Fired when a plotly UI button is clicked.
373
+ on_deselect: Fired when a selection is cleared (via double click).
374
+ on_hover: Fired when a plot element is hovered over.
375
+ on_relayout: Fired after the plot is laid out (zoom, pan, etc).
376
+ on_relayouting: Fired while the plot is being laid out.
377
+ on_restyle: Fired after the plot style is changed.
378
+ on_redraw: Fired after the plot is redrawn.
379
+ on_selected: Fired after selecting plot elements.
380
+ on_selecting: Fired while dragging a selection.
381
+ on_transitioning: Fired while an animation is occurring.
382
+ on_transition_interrupted: Fired when a transition is stopped early.
383
+ on_unhover: Fired when a hovered element is no longer hovered.
384
+ **props: The properties of the component.
385
+
386
+ Returns:
387
+ The Plotly component.
388
+ """
389
+
390
+ class PlotlyGeo(Plotly):
391
+ def add_imports(self) -> ImportDict | list[ImportDict]: ...
392
+ @classmethod
393
+ def create(
394
+ cls,
395
+ *children,
396
+ data: Any | Var[Any] | None = None,
397
+ layout: Var[dict] | dict | None = None,
398
+ template: Any | Var[Any] | None = None,
399
+ config: Var[dict] | dict | None = None,
400
+ use_resize_handler: Var[bool] | bool | None = None,
401
+ style: Sequence[Mapping[str, Any]]
402
+ | Mapping[str, Any]
403
+ | Var[Mapping[str, Any]]
404
+ | Breakpoints
405
+ | None = None,
406
+ key: Any | None = None,
407
+ id: Any | None = None,
408
+ ref: Var | None = None,
409
+ class_name: Any | None = None,
410
+ custom_attrs: dict[str, Any | Var] | None = None,
411
+ on_after_plot: EventType[()] | None = None,
412
+ on_animated: EventType[()] | None = None,
413
+ on_animating_frame: EventType[()] | None = None,
414
+ on_animation_interrupted: EventType[()] | None = None,
415
+ on_autosize: EventType[()] | None = None,
416
+ on_before_hover: EventType[()] | None = None,
417
+ on_blur: EventType[()] | None = None,
418
+ on_button_clicked: EventType[()] | None = None,
419
+ on_click: EventType[()] | EventType[list[Point]] | None = None,
420
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
421
+ on_deselect: EventType[()] | None = None,
422
+ on_double_click: EventType[()] | None = None,
423
+ on_focus: EventType[()] | None = None,
424
+ on_hover: EventType[()] | EventType[list[Point]] | None = None,
425
+ on_mount: EventType[()] | None = None,
426
+ on_mouse_down: EventType[()] | None = None,
427
+ on_mouse_enter: EventType[()] | None = None,
428
+ on_mouse_leave: EventType[()] | None = None,
429
+ on_mouse_move: EventType[()] | None = None,
430
+ on_mouse_out: EventType[()] | None = None,
431
+ on_mouse_over: EventType[()] | None = None,
432
+ on_mouse_up: EventType[()] | None = None,
433
+ on_redraw: EventType[()] | None = None,
434
+ on_relayout: EventType[()] | None = None,
435
+ on_relayouting: EventType[()] | None = None,
436
+ on_restyle: EventType[()] | None = None,
437
+ on_scroll: EventType[()] | None = None,
438
+ on_scroll_end: EventType[()] | None = None,
439
+ on_selected: EventType[()] | EventType[list[Point]] | None = None,
440
+ on_selecting: EventType[()] | EventType[list[Point]] | None = None,
441
+ on_transition_interrupted: EventType[()] | None = None,
442
+ on_transitioning: EventType[()] | None = None,
443
+ on_unhover: EventType[()] | EventType[list[Point]] | None = None,
444
+ on_unmount: EventType[()] | None = None,
445
+ **props,
446
+ ) -> PlotlyGeo:
447
+ """Create the Plotly component.
448
+
449
+ Args:
450
+ *children: The children of the component.
451
+ data: The figure to display. This can be a plotly figure or a plotly data json.
452
+ layout: The layout of the graph.
453
+ template: The template for visual appearance of the graph.
454
+ config: The config of the graph.
455
+ use_resize_handler: If true, the graph will resize when the window is resized.
456
+ style: The style of the component.
457
+ key: A unique key for the component.
458
+ id: The id for the component.
459
+ ref: The Var to pass as the ref to the component.
460
+ class_name: The class name for the component.
461
+ custom_attrs: Attributes passed directly to the component.
462
+ 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.
463
+ 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.
464
+ on_click: Fired when the plot is clicked.
465
+ on_context_menu: Fired when the user right-clicks on an element.
466
+ on_double_click: Fired when the plot is double clicked.
467
+ on_mouse_down: Fired when the user presses a mouse button on an element.
468
+ on_mouse_enter: Fired when the mouse pointer enters the element.
469
+ on_mouse_leave: Fired when the mouse pointer leaves the element.
470
+ on_mouse_move: Fired when the mouse pointer moves over the element.
471
+ on_mouse_out: Fired when the mouse pointer moves out of the element.
472
+ on_mouse_over: Fired when the mouse pointer moves onto the element.
473
+ on_mouse_up: Fired when the user releases a mouse button on an element.
474
+ on_scroll: Fired when the user scrolls the element.
475
+ on_scroll_end: Fired when scrolling ends on the element.
476
+ on_mount: Fired when the component is mounted to the page.
477
+ on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
478
+ on_after_plot: Fired after the plot is redrawn.
479
+ on_animated: Fired after the plot was animated.
480
+ on_animating_frame: Fired while animating a single frame (does not currently pass data through).
481
+ on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
482
+ on_autosize: Fired when the plot is responsively sized.
483
+ on_before_hover: Fired whenever mouse moves over a plot.
484
+ on_button_clicked: Fired when a plotly UI button is clicked.
485
+ on_deselect: Fired when a selection is cleared (via double click).
486
+ on_hover: Fired when a plot element is hovered over.
487
+ on_relayout: Fired after the plot is laid out (zoom, pan, etc).
488
+ on_relayouting: Fired while the plot is being laid out.
489
+ on_restyle: Fired after the plot style is changed.
490
+ on_redraw: Fired after the plot is redrawn.
491
+ on_selected: Fired after selecting plot elements.
492
+ on_selecting: Fired while dragging a selection.
493
+ on_transitioning: Fired while an animation is occurring.
494
+ on_transition_interrupted: Fired when a transition is stopped early.
495
+ on_unhover: Fired when a hovered element is no longer hovered.
496
+ **props: The properties of the component.
497
+
498
+ Returns:
499
+ The Plotly component.
500
+ """
501
+
502
+ class PlotlyGl3d(Plotly):
503
+ def add_imports(self) -> ImportDict | list[ImportDict]: ...
504
+ @classmethod
505
+ def create(
506
+ cls,
507
+ *children,
508
+ data: Any | Var[Any] | None = None,
509
+ layout: Var[dict] | dict | None = None,
510
+ template: Any | Var[Any] | None = None,
511
+ config: Var[dict] | dict | None = None,
512
+ use_resize_handler: Var[bool] | bool | None = None,
513
+ style: Sequence[Mapping[str, Any]]
514
+ | Mapping[str, Any]
515
+ | Var[Mapping[str, Any]]
516
+ | Breakpoints
517
+ | None = None,
518
+ key: Any | None = None,
519
+ id: Any | None = None,
520
+ ref: Var | None = None,
521
+ class_name: Any | None = None,
522
+ custom_attrs: dict[str, Any | Var] | None = None,
523
+ on_after_plot: EventType[()] | None = None,
524
+ on_animated: EventType[()] | None = None,
525
+ on_animating_frame: EventType[()] | None = None,
526
+ on_animation_interrupted: EventType[()] | None = None,
527
+ on_autosize: EventType[()] | None = None,
528
+ on_before_hover: EventType[()] | None = None,
529
+ on_blur: EventType[()] | None = None,
530
+ on_button_clicked: EventType[()] | None = None,
531
+ on_click: EventType[()] | EventType[list[Point]] | None = None,
532
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
533
+ on_deselect: EventType[()] | None = None,
534
+ on_double_click: EventType[()] | None = None,
535
+ on_focus: EventType[()] | None = None,
536
+ on_hover: EventType[()] | EventType[list[Point]] | None = None,
537
+ on_mount: EventType[()] | None = None,
538
+ on_mouse_down: EventType[()] | None = None,
539
+ on_mouse_enter: EventType[()] | None = None,
540
+ on_mouse_leave: EventType[()] | None = None,
541
+ on_mouse_move: EventType[()] | None = None,
542
+ on_mouse_out: EventType[()] | None = None,
543
+ on_mouse_over: EventType[()] | None = None,
544
+ on_mouse_up: EventType[()] | None = None,
545
+ on_redraw: EventType[()] | None = None,
546
+ on_relayout: EventType[()] | None = None,
547
+ on_relayouting: EventType[()] | None = None,
548
+ on_restyle: EventType[()] | None = None,
549
+ on_scroll: EventType[()] | None = None,
550
+ on_scroll_end: EventType[()] | None = None,
551
+ on_selected: EventType[()] | EventType[list[Point]] | None = None,
552
+ on_selecting: EventType[()] | EventType[list[Point]] | None = None,
553
+ on_transition_interrupted: EventType[()] | None = None,
554
+ on_transitioning: EventType[()] | None = None,
555
+ on_unhover: EventType[()] | EventType[list[Point]] | None = None,
556
+ on_unmount: EventType[()] | None = None,
557
+ **props,
558
+ ) -> PlotlyGl3d:
559
+ """Create the Plotly component.
560
+
561
+ Args:
562
+ *children: The children of the component.
563
+ data: The figure to display. This can be a plotly figure or a plotly data json.
564
+ layout: The layout of the graph.
565
+ template: The template for visual appearance of the graph.
566
+ config: The config of the graph.
567
+ use_resize_handler: If true, the graph will resize when the window is resized.
568
+ style: The style of the component.
569
+ key: A unique key for the component.
570
+ id: The id for the component.
571
+ ref: The Var to pass as the ref to the component.
572
+ class_name: The class name for the component.
573
+ custom_attrs: Attributes passed directly to the component.
574
+ 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.
575
+ 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.
576
+ on_click: Fired when the plot is clicked.
577
+ on_context_menu: Fired when the user right-clicks on an element.
578
+ on_double_click: Fired when the plot is double clicked.
579
+ on_mouse_down: Fired when the user presses a mouse button on an element.
580
+ on_mouse_enter: Fired when the mouse pointer enters the element.
581
+ on_mouse_leave: Fired when the mouse pointer leaves the element.
582
+ on_mouse_move: Fired when the mouse pointer moves over the element.
583
+ on_mouse_out: Fired when the mouse pointer moves out of the element.
584
+ on_mouse_over: Fired when the mouse pointer moves onto the element.
585
+ on_mouse_up: Fired when the user releases a mouse button on an element.
586
+ on_scroll: Fired when the user scrolls the element.
587
+ on_scroll_end: Fired when scrolling ends on the element.
588
+ on_mount: Fired when the component is mounted to the page.
589
+ on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
590
+ on_after_plot: Fired after the plot is redrawn.
591
+ on_animated: Fired after the plot was animated.
592
+ on_animating_frame: Fired while animating a single frame (does not currently pass data through).
593
+ on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
594
+ on_autosize: Fired when the plot is responsively sized.
595
+ on_before_hover: Fired whenever mouse moves over a plot.
596
+ on_button_clicked: Fired when a plotly UI button is clicked.
597
+ on_deselect: Fired when a selection is cleared (via double click).
598
+ on_hover: Fired when a plot element is hovered over.
599
+ on_relayout: Fired after the plot is laid out (zoom, pan, etc).
600
+ on_relayouting: Fired while the plot is being laid out.
601
+ on_restyle: Fired after the plot style is changed.
602
+ on_redraw: Fired after the plot is redrawn.
603
+ on_selected: Fired after selecting plot elements.
604
+ on_selecting: Fired while dragging a selection.
605
+ on_transitioning: Fired while an animation is occurring.
606
+ on_transition_interrupted: Fired when a transition is stopped early.
607
+ on_unhover: Fired when a hovered element is no longer hovered.
608
+ **props: The properties of the component.
609
+
610
+ Returns:
611
+ The Plotly component.
612
+ """
613
+
614
+ class PlotlyGl2d(Plotly):
615
+ def add_imports(self) -> ImportDict | list[ImportDict]: ...
616
+ @classmethod
617
+ def create(
618
+ cls,
619
+ *children,
620
+ data: Any | Var[Any] | None = None,
621
+ layout: Var[dict] | dict | None = None,
622
+ template: Any | Var[Any] | None = None,
623
+ config: Var[dict] | dict | None = None,
624
+ use_resize_handler: Var[bool] | bool | None = None,
625
+ style: Sequence[Mapping[str, Any]]
626
+ | Mapping[str, Any]
627
+ | Var[Mapping[str, Any]]
628
+ | Breakpoints
629
+ | None = None,
630
+ key: Any | None = None,
631
+ id: Any | None = None,
632
+ ref: Var | None = None,
633
+ class_name: Any | None = None,
634
+ custom_attrs: dict[str, Any | Var] | None = None,
635
+ on_after_plot: EventType[()] | None = None,
636
+ on_animated: EventType[()] | None = None,
637
+ on_animating_frame: EventType[()] | None = None,
638
+ on_animation_interrupted: EventType[()] | None = None,
639
+ on_autosize: EventType[()] | None = None,
640
+ on_before_hover: EventType[()] | None = None,
641
+ on_blur: EventType[()] | None = None,
642
+ on_button_clicked: EventType[()] | None = None,
643
+ on_click: EventType[()] | EventType[list[Point]] | None = None,
644
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
645
+ on_deselect: EventType[()] | None = None,
646
+ on_double_click: EventType[()] | None = None,
647
+ on_focus: EventType[()] | None = None,
648
+ on_hover: EventType[()] | EventType[list[Point]] | None = None,
649
+ on_mount: EventType[()] | None = None,
650
+ on_mouse_down: EventType[()] | None = None,
651
+ on_mouse_enter: EventType[()] | None = None,
652
+ on_mouse_leave: EventType[()] | None = None,
653
+ on_mouse_move: EventType[()] | None = None,
654
+ on_mouse_out: EventType[()] | None = None,
655
+ on_mouse_over: EventType[()] | None = None,
656
+ on_mouse_up: EventType[()] | None = None,
657
+ on_redraw: EventType[()] | None = None,
658
+ on_relayout: EventType[()] | None = None,
659
+ on_relayouting: EventType[()] | None = None,
660
+ on_restyle: EventType[()] | None = None,
661
+ on_scroll: EventType[()] | None = None,
662
+ on_scroll_end: EventType[()] | None = None,
663
+ on_selected: EventType[()] | EventType[list[Point]] | None = None,
664
+ on_selecting: EventType[()] | EventType[list[Point]] | None = None,
665
+ on_transition_interrupted: EventType[()] | None = None,
666
+ on_transitioning: EventType[()] | None = None,
667
+ on_unhover: EventType[()] | EventType[list[Point]] | None = None,
668
+ on_unmount: EventType[()] | None = None,
669
+ **props,
670
+ ) -> PlotlyGl2d:
671
+ """Create the Plotly component.
672
+
673
+ Args:
674
+ *children: The children of the component.
675
+ data: The figure to display. This can be a plotly figure or a plotly data json.
676
+ layout: The layout of the graph.
677
+ template: The template for visual appearance of the graph.
678
+ config: The config of the graph.
679
+ use_resize_handler: If true, the graph will resize when the window is resized.
680
+ style: The style of the component.
681
+ key: A unique key for the component.
682
+ id: The id for the component.
683
+ ref: The Var to pass as the ref to the component.
684
+ class_name: The class name for the component.
685
+ custom_attrs: Attributes passed directly to the component.
686
+ 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.
687
+ 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.
688
+ on_click: Fired when the plot is clicked.
689
+ on_context_menu: Fired when the user right-clicks on an element.
690
+ on_double_click: Fired when the plot is double clicked.
691
+ on_mouse_down: Fired when the user presses a mouse button on an element.
692
+ on_mouse_enter: Fired when the mouse pointer enters the element.
693
+ on_mouse_leave: Fired when the mouse pointer leaves the element.
694
+ on_mouse_move: Fired when the mouse pointer moves over the element.
695
+ on_mouse_out: Fired when the mouse pointer moves out of the element.
696
+ on_mouse_over: Fired when the mouse pointer moves onto the element.
697
+ on_mouse_up: Fired when the user releases a mouse button on an element.
698
+ on_scroll: Fired when the user scrolls the element.
699
+ on_scroll_end: Fired when scrolling ends on the element.
700
+ on_mount: Fired when the component is mounted to the page.
701
+ on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
702
+ on_after_plot: Fired after the plot is redrawn.
703
+ on_animated: Fired after the plot was animated.
704
+ on_animating_frame: Fired while animating a single frame (does not currently pass data through).
705
+ on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
706
+ on_autosize: Fired when the plot is responsively sized.
707
+ on_before_hover: Fired whenever mouse moves over a plot.
708
+ on_button_clicked: Fired when a plotly UI button is clicked.
709
+ on_deselect: Fired when a selection is cleared (via double click).
710
+ on_hover: Fired when a plot element is hovered over.
711
+ on_relayout: Fired after the plot is laid out (zoom, pan, etc).
712
+ on_relayouting: Fired while the plot is being laid out.
713
+ on_restyle: Fired after the plot style is changed.
714
+ on_redraw: Fired after the plot is redrawn.
715
+ on_selected: Fired after selecting plot elements.
716
+ on_selecting: Fired while dragging a selection.
717
+ on_transitioning: Fired while an animation is occurring.
718
+ on_transition_interrupted: Fired when a transition is stopped early.
719
+ on_unhover: Fired when a hovered element is no longer hovered.
720
+ **props: The properties of the component.
721
+
722
+ Returns:
723
+ The Plotly component.
724
+ """
725
+
726
+ class PlotlyMapbox(Plotly):
727
+ def add_imports(self) -> ImportDict | list[ImportDict]: ...
728
+ @classmethod
729
+ def create(
730
+ cls,
731
+ *children,
732
+ data: Any | Var[Any] | None = None,
733
+ layout: Var[dict] | dict | None = None,
734
+ template: Any | Var[Any] | None = None,
735
+ config: Var[dict] | dict | None = None,
736
+ use_resize_handler: Var[bool] | bool | None = None,
737
+ style: Sequence[Mapping[str, Any]]
738
+ | Mapping[str, Any]
739
+ | Var[Mapping[str, Any]]
740
+ | Breakpoints
741
+ | None = None,
742
+ key: Any | None = None,
743
+ id: Any | None = None,
744
+ ref: Var | None = None,
745
+ class_name: Any | None = None,
746
+ custom_attrs: dict[str, Any | Var] | None = None,
747
+ on_after_plot: EventType[()] | None = None,
748
+ on_animated: EventType[()] | None = None,
749
+ on_animating_frame: EventType[()] | None = None,
750
+ on_animation_interrupted: EventType[()] | None = None,
751
+ on_autosize: EventType[()] | None = None,
752
+ on_before_hover: EventType[()] | None = None,
753
+ on_blur: EventType[()] | None = None,
754
+ on_button_clicked: EventType[()] | None = None,
755
+ on_click: EventType[()] | EventType[list[Point]] | None = None,
756
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
757
+ on_deselect: EventType[()] | None = None,
758
+ on_double_click: EventType[()] | None = None,
759
+ on_focus: EventType[()] | None = None,
760
+ on_hover: EventType[()] | EventType[list[Point]] | None = None,
761
+ on_mount: EventType[()] | None = None,
762
+ on_mouse_down: EventType[()] | None = None,
763
+ on_mouse_enter: EventType[()] | None = None,
764
+ on_mouse_leave: EventType[()] | None = None,
765
+ on_mouse_move: EventType[()] | None = None,
766
+ on_mouse_out: EventType[()] | None = None,
767
+ on_mouse_over: EventType[()] | None = None,
768
+ on_mouse_up: EventType[()] | None = None,
769
+ on_redraw: EventType[()] | None = None,
770
+ on_relayout: EventType[()] | None = None,
771
+ on_relayouting: EventType[()] | None = None,
772
+ on_restyle: EventType[()] | None = None,
773
+ on_scroll: EventType[()] | None = None,
774
+ on_scroll_end: EventType[()] | None = None,
775
+ on_selected: EventType[()] | EventType[list[Point]] | None = None,
776
+ on_selecting: EventType[()] | EventType[list[Point]] | None = None,
777
+ on_transition_interrupted: EventType[()] | None = None,
778
+ on_transitioning: EventType[()] | None = None,
779
+ on_unhover: EventType[()] | EventType[list[Point]] | None = None,
780
+ on_unmount: EventType[()] | None = None,
781
+ **props,
782
+ ) -> PlotlyMapbox:
783
+ """Create the Plotly component.
784
+
785
+ Args:
786
+ *children: The children of the component.
787
+ data: The figure to display. This can be a plotly figure or a plotly data json.
788
+ layout: The layout of the graph.
789
+ template: The template for visual appearance of the graph.
790
+ config: The config of the graph.
791
+ use_resize_handler: If true, the graph will resize when the window is resized.
792
+ style: The style of the component.
793
+ key: A unique key for the component.
794
+ id: The id for the component.
795
+ ref: The Var to pass as the ref to the component.
796
+ class_name: The class name for the component.
797
+ custom_attrs: Attributes passed directly to the component.
798
+ 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.
799
+ 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.
800
+ on_click: Fired when the plot is clicked.
801
+ on_context_menu: Fired when the user right-clicks on an element.
802
+ on_double_click: Fired when the plot is double clicked.
803
+ on_mouse_down: Fired when the user presses a mouse button on an element.
804
+ on_mouse_enter: Fired when the mouse pointer enters the element.
805
+ on_mouse_leave: Fired when the mouse pointer leaves the element.
806
+ on_mouse_move: Fired when the mouse pointer moves over the element.
807
+ on_mouse_out: Fired when the mouse pointer moves out of the element.
808
+ on_mouse_over: Fired when the mouse pointer moves onto the element.
809
+ on_mouse_up: Fired when the user releases a mouse button on an element.
810
+ on_scroll: Fired when the user scrolls the element.
811
+ on_scroll_end: Fired when scrolling ends on the element.
812
+ on_mount: Fired when the component is mounted to the page.
813
+ on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
814
+ on_after_plot: Fired after the plot is redrawn.
815
+ on_animated: Fired after the plot was animated.
816
+ on_animating_frame: Fired while animating a single frame (does not currently pass data through).
817
+ on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
818
+ on_autosize: Fired when the plot is responsively sized.
819
+ on_before_hover: Fired whenever mouse moves over a plot.
820
+ on_button_clicked: Fired when a plotly UI button is clicked.
821
+ on_deselect: Fired when a selection is cleared (via double click).
822
+ on_hover: Fired when a plot element is hovered over.
823
+ on_relayout: Fired after the plot is laid out (zoom, pan, etc).
824
+ on_relayouting: Fired while the plot is being laid out.
825
+ on_restyle: Fired after the plot style is changed.
826
+ on_redraw: Fired after the plot is redrawn.
827
+ on_selected: Fired after selecting plot elements.
828
+ on_selecting: Fired while dragging a selection.
829
+ on_transitioning: Fired while an animation is occurring.
830
+ on_transition_interrupted: Fired when a transition is stopped early.
831
+ on_unhover: Fired when a hovered element is no longer hovered.
832
+ **props: The properties of the component.
833
+
834
+ Returns:
835
+ The Plotly component.
836
+ """
837
+
838
+ class PlotlyFinance(Plotly):
839
+ def add_imports(self) -> ImportDict | list[ImportDict]: ...
840
+ @classmethod
841
+ def create(
842
+ cls,
843
+ *children,
844
+ data: Any | Var[Any] | None = None,
845
+ layout: Var[dict] | dict | None = None,
846
+ template: Any | Var[Any] | None = None,
847
+ config: Var[dict] | dict | None = None,
848
+ use_resize_handler: Var[bool] | bool | None = None,
849
+ style: Sequence[Mapping[str, Any]]
850
+ | Mapping[str, Any]
851
+ | Var[Mapping[str, Any]]
852
+ | Breakpoints
853
+ | None = None,
854
+ key: Any | None = None,
855
+ id: Any | None = None,
856
+ ref: Var | None = None,
857
+ class_name: Any | None = None,
858
+ custom_attrs: dict[str, Any | Var] | None = None,
859
+ on_after_plot: EventType[()] | None = None,
860
+ on_animated: EventType[()] | None = None,
861
+ on_animating_frame: EventType[()] | None = None,
862
+ on_animation_interrupted: EventType[()] | None = None,
863
+ on_autosize: EventType[()] | None = None,
864
+ on_before_hover: EventType[()] | None = None,
865
+ on_blur: EventType[()] | None = None,
866
+ on_button_clicked: EventType[()] | None = None,
867
+ on_click: EventType[()] | EventType[list[Point]] | None = None,
868
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
869
+ on_deselect: EventType[()] | None = None,
870
+ on_double_click: EventType[()] | None = None,
871
+ on_focus: EventType[()] | None = None,
872
+ on_hover: EventType[()] | EventType[list[Point]] | None = None,
873
+ on_mount: EventType[()] | None = None,
874
+ on_mouse_down: EventType[()] | None = None,
875
+ on_mouse_enter: EventType[()] | None = None,
876
+ on_mouse_leave: EventType[()] | None = None,
877
+ on_mouse_move: EventType[()] | None = None,
878
+ on_mouse_out: EventType[()] | None = None,
879
+ on_mouse_over: EventType[()] | None = None,
880
+ on_mouse_up: EventType[()] | None = None,
881
+ on_redraw: EventType[()] | None = None,
882
+ on_relayout: EventType[()] | None = None,
883
+ on_relayouting: EventType[()] | None = None,
884
+ on_restyle: EventType[()] | None = None,
885
+ on_scroll: EventType[()] | None = None,
886
+ on_scroll_end: EventType[()] | None = None,
887
+ on_selected: EventType[()] | EventType[list[Point]] | None = None,
888
+ on_selecting: EventType[()] | EventType[list[Point]] | None = None,
889
+ on_transition_interrupted: EventType[()] | None = None,
890
+ on_transitioning: EventType[()] | None = None,
891
+ on_unhover: EventType[()] | EventType[list[Point]] | None = None,
892
+ on_unmount: EventType[()] | None = None,
893
+ **props,
894
+ ) -> PlotlyFinance:
895
+ """Create the Plotly component.
896
+
897
+ Args:
898
+ *children: The children of the component.
899
+ data: The figure to display. This can be a plotly figure or a plotly data json.
900
+ layout: The layout of the graph.
901
+ template: The template for visual appearance of the graph.
902
+ config: The config of the graph.
903
+ use_resize_handler: If true, the graph will resize when the window is resized.
904
+ style: The style of the component.
905
+ key: A unique key for the component.
906
+ id: The id for the component.
907
+ ref: The Var to pass as the ref to the component.
908
+ class_name: The class name for the component.
909
+ custom_attrs: Attributes passed directly to the component.
910
+ 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.
911
+ 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.
912
+ on_click: Fired when the plot is clicked.
913
+ on_context_menu: Fired when the user right-clicks on an element.
914
+ on_double_click: Fired when the plot is double clicked.
915
+ on_mouse_down: Fired when the user presses a mouse button on an element.
916
+ on_mouse_enter: Fired when the mouse pointer enters the element.
917
+ on_mouse_leave: Fired when the mouse pointer leaves the element.
918
+ on_mouse_move: Fired when the mouse pointer moves over the element.
919
+ on_mouse_out: Fired when the mouse pointer moves out of the element.
920
+ on_mouse_over: Fired when the mouse pointer moves onto the element.
921
+ on_mouse_up: Fired when the user releases a mouse button on an element.
922
+ on_scroll: Fired when the user scrolls the element.
923
+ on_scroll_end: Fired when scrolling ends on the element.
924
+ on_mount: Fired when the component is mounted to the page.
925
+ on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
926
+ on_after_plot: Fired after the plot is redrawn.
927
+ on_animated: Fired after the plot was animated.
928
+ on_animating_frame: Fired while animating a single frame (does not currently pass data through).
929
+ on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
930
+ on_autosize: Fired when the plot is responsively sized.
931
+ on_before_hover: Fired whenever mouse moves over a plot.
932
+ on_button_clicked: Fired when a plotly UI button is clicked.
933
+ on_deselect: Fired when a selection is cleared (via double click).
934
+ on_hover: Fired when a plot element is hovered over.
935
+ on_relayout: Fired after the plot is laid out (zoom, pan, etc).
936
+ on_relayouting: Fired while the plot is being laid out.
937
+ on_restyle: Fired after the plot style is changed.
938
+ on_redraw: Fired after the plot is redrawn.
939
+ on_selected: Fired after selecting plot elements.
940
+ on_selecting: Fired while dragging a selection.
941
+ on_transitioning: Fired while an animation is occurring.
942
+ on_transition_interrupted: Fired when a transition is stopped early.
943
+ on_unhover: Fired when a hovered element is no longer hovered.
944
+ **props: The properties of the component.
945
+
946
+ Returns:
947
+ The Plotly component.
948
+ """
949
+
950
+ class PlotlyStrict(Plotly):
951
+ def add_imports(self) -> ImportDict | list[ImportDict]: ...
952
+ @classmethod
953
+ def create(
954
+ cls,
955
+ *children,
956
+ data: Any | Var[Any] | None = None,
957
+ layout: Var[dict] | dict | None = None,
958
+ template: Any | Var[Any] | None = None,
959
+ config: Var[dict] | dict | None = None,
960
+ use_resize_handler: Var[bool] | bool | None = None,
961
+ style: Sequence[Mapping[str, Any]]
962
+ | Mapping[str, Any]
963
+ | Var[Mapping[str, Any]]
964
+ | Breakpoints
965
+ | None = None,
966
+ key: Any | None = None,
967
+ id: Any | None = None,
968
+ ref: Var | None = None,
969
+ class_name: Any | None = None,
970
+ custom_attrs: dict[str, Any | Var] | None = None,
971
+ on_after_plot: EventType[()] | None = None,
972
+ on_animated: EventType[()] | None = None,
973
+ on_animating_frame: EventType[()] | None = None,
974
+ on_animation_interrupted: EventType[()] | None = None,
975
+ on_autosize: EventType[()] | None = None,
976
+ on_before_hover: EventType[()] | None = None,
977
+ on_blur: EventType[()] | None = None,
978
+ on_button_clicked: EventType[()] | None = None,
979
+ on_click: EventType[()] | EventType[list[Point]] | None = None,
980
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
981
+ on_deselect: EventType[()] | None = None,
982
+ on_double_click: EventType[()] | None = None,
983
+ on_focus: EventType[()] | None = None,
984
+ on_hover: EventType[()] | EventType[list[Point]] | None = None,
985
+ on_mount: EventType[()] | None = None,
986
+ on_mouse_down: EventType[()] | None = None,
987
+ on_mouse_enter: EventType[()] | None = None,
988
+ on_mouse_leave: EventType[()] | None = None,
989
+ on_mouse_move: EventType[()] | None = None,
990
+ on_mouse_out: EventType[()] | None = None,
991
+ on_mouse_over: EventType[()] | None = None,
992
+ on_mouse_up: EventType[()] | None = None,
993
+ on_redraw: EventType[()] | None = None,
994
+ on_relayout: EventType[()] | None = None,
995
+ on_relayouting: EventType[()] | None = None,
996
+ on_restyle: EventType[()] | None = None,
997
+ on_scroll: EventType[()] | None = None,
998
+ on_scroll_end: EventType[()] | None = None,
999
+ on_selected: EventType[()] | EventType[list[Point]] | None = None,
1000
+ on_selecting: EventType[()] | EventType[list[Point]] | None = None,
1001
+ on_transition_interrupted: EventType[()] | None = None,
1002
+ on_transitioning: EventType[()] | None = None,
1003
+ on_unhover: EventType[()] | EventType[list[Point]] | None = None,
1004
+ on_unmount: EventType[()] | None = None,
1005
+ **props,
1006
+ ) -> PlotlyStrict:
1007
+ """Create the Plotly component.
1008
+
1009
+ Args:
1010
+ *children: The children of the component.
1011
+ data: The figure to display. This can be a plotly figure or a plotly data json.
1012
+ layout: The layout of the graph.
1013
+ template: The template for visual appearance of the graph.
1014
+ config: The config of the graph.
1015
+ use_resize_handler: If true, the graph will resize when the window is resized.
1016
+ style: The style of the component.
1017
+ key: A unique key for the component.
1018
+ id: The id for the component.
1019
+ ref: The Var to pass as the ref to the component.
1020
+ class_name: The class name for the component.
1021
+ custom_attrs: Attributes passed directly to the component.
1022
+ 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.
1023
+ 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.
1024
+ on_click: Fired when the plot is clicked.
1025
+ on_context_menu: Fired when the user right-clicks on an element.
1026
+ on_double_click: Fired when the plot is double clicked.
1027
+ on_mouse_down: Fired when the user presses a mouse button on an element.
1028
+ on_mouse_enter: Fired when the mouse pointer enters the element.
1029
+ on_mouse_leave: Fired when the mouse pointer leaves the element.
1030
+ on_mouse_move: Fired when the mouse pointer moves over the element.
1031
+ on_mouse_out: Fired when the mouse pointer moves out of the element.
1032
+ on_mouse_over: Fired when the mouse pointer moves onto the element.
1033
+ on_mouse_up: Fired when the user releases a mouse button on an element.
1034
+ on_scroll: Fired when the user scrolls the element.
1035
+ on_scroll_end: Fired when scrolling ends on the element.
1036
+ on_mount: Fired when the component is mounted to the page.
1037
+ on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
1038
+ on_after_plot: Fired after the plot is redrawn.
1039
+ on_animated: Fired after the plot was animated.
1040
+ on_animating_frame: Fired while animating a single frame (does not currently pass data through).
1041
+ on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
1042
+ on_autosize: Fired when the plot is responsively sized.
1043
+ on_before_hover: Fired whenever mouse moves over a plot.
1044
+ on_button_clicked: Fired when a plotly UI button is clicked.
1045
+ on_deselect: Fired when a selection is cleared (via double click).
1046
+ on_hover: Fired when a plot element is hovered over.
1047
+ on_relayout: Fired after the plot is laid out (zoom, pan, etc).
1048
+ on_relayouting: Fired while the plot is being laid out.
1049
+ on_restyle: Fired after the plot style is changed.
1050
+ on_redraw: Fired after the plot is redrawn.
1051
+ on_selected: Fired after selecting plot elements.
1052
+ on_selecting: Fired while dragging a selection.
1053
+ on_transitioning: Fired while an animation is occurring.
1054
+ on_transition_interrupted: Fired when a transition is stopped early.
1055
+ on_unhover: Fired when a hovered element is no longer hovered.
1056
+ **props: The properties of the component.
1057
+
1058
+ Returns:
1059
+ The Plotly component.
1060
+ """