reflex 0.7.13a2__py3-none-any.whl → 0.7.14a2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/apps/blank/code/blank.py +0 -2
- reflex/app.py +64 -69
- reflex/app_mixins/lifespan.py +2 -3
- reflex/app_mixins/middleware.py +1 -0
- reflex/app_mixins/mixin.py +0 -1
- reflex/assets.py +6 -3
- reflex/base.py +3 -2
- reflex/compiler/compiler.py +77 -64
- reflex/compiler/utils.py +8 -6
- reflex/components/base/app_wrap.pyi +0 -1
- reflex/components/base/bare.py +5 -7
- reflex/components/base/body.pyi +0 -1
- reflex/components/base/document.pyi +0 -5
- reflex/components/base/error_boundary.pyi +0 -1
- reflex/components/base/fragment.pyi +0 -1
- reflex/components/base/head.pyi +0 -2
- reflex/components/base/link.pyi +0 -2
- reflex/components/base/meta.py +2 -1
- reflex/components/base/meta.pyi +0 -4
- reflex/components/base/script.py +2 -1
- reflex/components/base/script.pyi +0 -1
- reflex/components/base/strict_mode.pyi +0 -1
- reflex/components/component.py +49 -41
- reflex/components/core/auto_scroll.pyi +0 -1
- reflex/components/core/banner.pyi +0 -6
- reflex/components/core/breakpoints.py +9 -11
- reflex/components/core/client_side_routing.pyi +0 -2
- reflex/components/core/clipboard.pyi +0 -1
- reflex/components/core/colors.py +10 -7
- reflex/components/core/cond.py +4 -2
- reflex/components/core/debounce.py +5 -3
- reflex/components/core/debounce.pyi +0 -1
- reflex/components/core/foreach.py +8 -6
- reflex/components/core/html.py +3 -3
- reflex/components/core/html.pyi +0 -1
- reflex/components/core/match.py +19 -17
- reflex/components/core/sticky.pyi +0 -4
- reflex/components/core/upload.pyi +0 -5
- reflex/components/datadisplay/code.py +1 -2
- reflex/components/datadisplay/code.pyi +0 -2
- reflex/components/datadisplay/dataeditor.py +7 -10
- reflex/components/datadisplay/dataeditor.pyi +0 -1
- reflex/components/datadisplay/logo.py +3 -4
- reflex/components/datadisplay/shiki_code_block.py +8 -11
- reflex/components/datadisplay/shiki_code_block.pyi +0 -3
- reflex/components/dynamic.py +2 -3
- reflex/components/el/__init__.pyi +2 -0
- reflex/components/el/element.pyi +0 -1
- reflex/components/el/elements/__init__.py +1 -0
- reflex/components/el/elements/__init__.pyi +3 -0
- reflex/components/el/elements/base.pyi +0 -1
- reflex/components/el/elements/forms.py +14 -15
- reflex/components/el/elements/forms.pyi +15 -32
- reflex/components/el/elements/inline.pyi +0 -28
- reflex/components/el/elements/media.py +26 -0
- reflex/components/el/elements/media.pyi +259 -25
- reflex/components/el/elements/metadata.py +0 -1
- reflex/components/el/elements/metadata.pyi +0 -6
- reflex/components/el/elements/other.pyi +0 -7
- reflex/components/el/elements/scripts.pyi +0 -3
- reflex/components/el/elements/sectioning.pyi +0 -15
- reflex/components/el/elements/tables.pyi +0 -10
- reflex/components/el/elements/typography.pyi +0 -15
- reflex/components/gridjs/datatable.py +10 -13
- reflex/components/gridjs/datatable.pyi +0 -2
- reflex/components/lucide/icon.py +10 -9
- reflex/components/lucide/icon.pyi +0 -3
- reflex/components/markdown/markdown.py +6 -8
- reflex/components/markdown/markdown.pyi +0 -1
- reflex/components/moment/moment.pyi +0 -1
- reflex/components/next/base.py +0 -2
- reflex/components/next/base.pyi +0 -3
- reflex/components/next/image.pyi +0 -1
- reflex/components/next/link.pyi +0 -1
- reflex/components/next/video.pyi +0 -1
- reflex/components/plotly/plotly.pyi +0 -9
- reflex/components/props.py +4 -3
- reflex/components/radix/primitives/accordion.pyi +0 -7
- reflex/components/radix/primitives/base.py +1 -3
- reflex/components/radix/primitives/base.pyi +0 -2
- reflex/components/radix/primitives/drawer.pyi +0 -11
- reflex/components/radix/primitives/form.py +4 -8
- reflex/components/radix/primitives/form.pyi +0 -12
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +0 -5
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +0 -5
- reflex/components/radix/themes/base.pyi +0 -8
- reflex/components/radix/themes/color_mode.pyi +0 -3
- reflex/components/radix/themes/components/alert_dialog.py +4 -2
- reflex/components/radix/themes/components/alert_dialog.pyi +4 -9
- reflex/components/radix/themes/components/aspect_ratio.py +1 -2
- reflex/components/radix/themes/components/aspect_ratio.pyi +1 -3
- reflex/components/radix/themes/components/avatar.py +5 -2
- reflex/components/radix/themes/components/avatar.pyi +1 -3
- reflex/components/radix/themes/components/badge.py +5 -2
- reflex/components/radix/themes/components/badge.pyi +1 -3
- reflex/components/radix/themes/components/button.py +2 -3
- reflex/components/radix/themes/components/button.pyi +1 -3
- reflex/components/radix/themes/components/callout.py +1 -2
- reflex/components/radix/themes/components/callout.pyi +1 -7
- reflex/components/radix/themes/components/card.py +1 -2
- reflex/components/radix/themes/components/card.pyi +1 -3
- reflex/components/radix/themes/components/checkbox.py +7 -4
- reflex/components/radix/themes/components/checkbox.pyi +1 -5
- reflex/components/radix/themes/components/checkbox_cards.py +1 -2
- reflex/components/radix/themes/components/checkbox_cards.pyi +1 -4
- reflex/components/radix/themes/components/checkbox_group.py +1 -2
- reflex/components/radix/themes/components/checkbox_group.pyi +1 -4
- reflex/components/radix/themes/components/context_menu.py +1 -1
- reflex/components/radix/themes/components/context_menu.pyi +1 -14
- reflex/components/radix/themes/components/data_list.py +1 -2
- reflex/components/radix/themes/components/data_list.pyi +1 -6
- reflex/components/radix/themes/components/dialog.py +4 -2
- reflex/components/radix/themes/components/dialog.pyi +4 -9
- reflex/components/radix/themes/components/dropdown_menu.py +5 -2
- reflex/components/radix/themes/components/dropdown_menu.pyi +4 -10
- reflex/components/radix/themes/components/hover_card.py +4 -2
- reflex/components/radix/themes/components/hover_card.pyi +4 -6
- reflex/components/radix/themes/components/icon_button.py +7 -8
- reflex/components/radix/themes/components/icon_button.pyi +1 -3
- reflex/components/radix/themes/components/inset.py +1 -2
- reflex/components/radix/themes/components/inset.pyi +1 -3
- reflex/components/radix/themes/components/popover.py +4 -2
- reflex/components/radix/themes/components/popover.pyi +4 -6
- reflex/components/radix/themes/components/progress.py +1 -2
- reflex/components/radix/themes/components/progress.pyi +1 -3
- reflex/components/radix/themes/components/radio.py +1 -2
- reflex/components/radix/themes/components/radio.pyi +1 -3
- reflex/components/radix/themes/components/radio_cards.py +1 -2
- reflex/components/radix/themes/components/radio_cards.pyi +1 -4
- reflex/components/radix/themes/components/radio_group.py +7 -5
- reflex/components/radix/themes/components/radio_group.pyi +1 -6
- reflex/components/radix/themes/components/scroll_area.py +1 -2
- reflex/components/radix/themes/components/scroll_area.pyi +1 -3
- reflex/components/radix/themes/components/segmented_control.py +1 -2
- reflex/components/radix/themes/components/segmented_control.pyi +1 -4
- reflex/components/radix/themes/components/select.py +5 -2
- reflex/components/radix/themes/components/select.pyi +1 -11
- reflex/components/radix/themes/components/separator.py +1 -2
- reflex/components/radix/themes/components/separator.pyi +1 -3
- reflex/components/radix/themes/components/skeleton.py +1 -2
- reflex/components/radix/themes/components/skeleton.pyi +1 -3
- reflex/components/radix/themes/components/slider.py +1 -2
- reflex/components/radix/themes/components/slider.pyi +1 -3
- reflex/components/radix/themes/components/spinner.py +1 -2
- reflex/components/radix/themes/components/spinner.pyi +1 -3
- reflex/components/radix/themes/components/switch.py +1 -2
- reflex/components/radix/themes/components/switch.pyi +1 -3
- reflex/components/radix/themes/components/table.py +1 -2
- reflex/components/radix/themes/components/table.pyi +1 -9
- reflex/components/radix/themes/components/tabs.py +1 -2
- reflex/components/radix/themes/components/tabs.pyi +1 -7
- reflex/components/radix/themes/components/text_area.py +5 -2
- reflex/components/radix/themes/components/text_area.pyi +2 -4
- reflex/components/radix/themes/components/text_field.py +5 -2
- reflex/components/radix/themes/components/text_field.pyi +1 -5
- reflex/components/radix/themes/components/tooltip.py +1 -2
- reflex/components/radix/themes/components/tooltip.pyi +1 -3
- reflex/components/radix/themes/layout/base.py +5 -2
- reflex/components/radix/themes/layout/base.pyi +5 -3
- reflex/components/radix/themes/layout/box.py +1 -2
- reflex/components/radix/themes/layout/box.pyi +1 -3
- reflex/components/radix/themes/layout/center.pyi +0 -1
- reflex/components/radix/themes/layout/container.py +1 -2
- reflex/components/radix/themes/layout/container.pyi +1 -3
- reflex/components/radix/themes/layout/flex.py +6 -2
- reflex/components/radix/themes/layout/flex.pyi +1 -3
- reflex/components/radix/themes/layout/grid.py +6 -2
- reflex/components/radix/themes/layout/grid.pyi +1 -3
- reflex/components/radix/themes/layout/list.py +2 -1
- reflex/components/radix/themes/layout/list.pyi +0 -5
- reflex/components/radix/themes/layout/section.py +1 -2
- reflex/components/radix/themes/layout/section.pyi +1 -3
- reflex/components/radix/themes/layout/spacer.pyi +0 -1
- reflex/components/radix/themes/layout/stack.py +1 -1
- reflex/components/radix/themes/layout/stack.pyi +0 -3
- reflex/components/radix/themes/typography/blockquote.py +1 -1
- reflex/components/radix/themes/typography/blockquote.pyi +1 -3
- reflex/components/radix/themes/typography/code.py +5 -1
- reflex/components/radix/themes/typography/code.pyi +1 -3
- reflex/components/radix/themes/typography/heading.py +1 -1
- reflex/components/radix/themes/typography/heading.pyi +1 -3
- reflex/components/radix/themes/typography/link.py +3 -2
- reflex/components/radix/themes/typography/link.pyi +1 -3
- reflex/components/radix/themes/typography/text.py +1 -1
- reflex/components/radix/themes/typography/text.pyi +1 -9
- reflex/components/react_player/audio.py +0 -2
- reflex/components/react_player/audio.pyi +0 -3
- reflex/components/react_player/react_player.pyi +0 -1
- reflex/components/react_player/video.py +0 -2
- reflex/components/react_player/video.pyi +0 -3
- reflex/components/recharts/__init__.py +1 -1
- reflex/components/recharts/__init__.pyi +1 -1
- reflex/components/recharts/cartesian.py +20 -25
- reflex/components/recharts/cartesian.pyi +20 -37
- reflex/components/recharts/charts.py +2 -1
- reflex/components/recharts/charts.pyi +0 -12
- reflex/components/recharts/general.pyi +0 -6
- reflex/components/recharts/polar.py +5 -4
- reflex/components/recharts/polar.pyi +4 -10
- reflex/components/recharts/recharts.py +12 -10
- reflex/components/recharts/recharts.pyi +10 -11
- reflex/components/sonner/toast.py +2 -2
- reflex/components/sonner/toast.pyi +0 -2
- reflex/components/suneditor/editor.py +2 -1
- reflex/components/suneditor/editor.pyi +0 -1
- reflex/components/tags/iter_tag.py +4 -2
- reflex/config.py +47 -35
- reflex/constants/base.py +3 -3
- reflex/constants/compiler.py +8 -6
- reflex/constants/installer.py +24 -15
- reflex/custom_components/custom_components.py +1 -2
- reflex/event.py +58 -60
- reflex/experimental/__init__.py +2 -2
- reflex/experimental/client_state.py +9 -4
- reflex/experimental/layout.pyi +0 -5
- reflex/istate/manager.py +15 -19
- reflex/istate/proxy.py +19 -12
- reflex/model.py +6 -4
- reflex/plugins/base.py +8 -0
- reflex/plugins/tailwind_v3.py +8 -0
- reflex/plugins/tailwind_v4.py +8 -0
- reflex/reflex.py +9 -11
- reflex/route.py +7 -9
- reflex/state.py +66 -70
- reflex/style.py +3 -1
- reflex/testing.py +46 -29
- reflex/utils/build.py +2 -1
- reflex/utils/console.py +9 -17
- reflex/utils/exec.py +9 -11
- reflex/utils/format.py +21 -24
- reflex/utils/imports.py +4 -3
- reflex/utils/lazy_loader.py +3 -3
- reflex/utils/misc.py +2 -1
- reflex/utils/net.py +2 -2
- reflex/utils/path_ops.py +2 -1
- reflex/utils/prerequisites.py +67 -38
- reflex/utils/processes.py +4 -6
- reflex/utils/pyi_generator.py +46 -41
- reflex/utils/redir.py +1 -1
- reflex/utils/serializers.py +4 -4
- reflex/utils/telemetry.py +20 -2
- reflex/utils/types.py +16 -13
- reflex/vars/base.py +96 -109
- reflex/vars/datetime.py +2 -1
- reflex/vars/dep_tracking.py +19 -28
- reflex/vars/number.py +6 -7
- reflex/vars/object.py +5 -6
- reflex/vars/sequence.py +11 -11
- {reflex-0.7.13a2.dist-info → reflex-0.7.14a2.dist-info}/METADATA +1 -1
- reflex-0.7.14a2.dist-info/RECORD +407 -0
- reflex-0.7.13a2.dist-info/RECORD +0 -407
- {reflex-0.7.13a2.dist-info → reflex-0.7.14a2.dist-info}/WHEEL +0 -0
- {reflex-0.7.13a2.dist-info → reflex-0.7.14a2.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.13a2.dist-info → reflex-0.7.14a2.dist-info}/licenses/LICENSE +0 -0
|
@@ -10,11 +10,10 @@ from reflex.components.component import ComponentNamespace
|
|
|
10
10
|
from reflex.components.core.breakpoints import Breakpoints
|
|
11
11
|
from reflex.components.el import elements
|
|
12
12
|
from reflex.components.markdown.markdown import MarkdownComponentMap
|
|
13
|
+
from reflex.components.radix.themes.base import RadixThemesComponent
|
|
13
14
|
from reflex.event import EventType
|
|
14
15
|
from reflex.vars.base import Var
|
|
15
16
|
|
|
16
|
-
from ..base import RadixThemesComponent
|
|
17
|
-
|
|
18
17
|
LiteralType = Literal[
|
|
19
18
|
"p",
|
|
20
19
|
"label",
|
|
@@ -423,7 +422,6 @@ class Text(elements.Span, RadixThemesComponent, MarkdownComponentMap):
|
|
|
423
422
|
Returns:
|
|
424
423
|
A new component instance.
|
|
425
424
|
"""
|
|
426
|
-
...
|
|
427
425
|
|
|
428
426
|
class Span(Text):
|
|
429
427
|
@overload
|
|
@@ -812,7 +810,6 @@ class Span(Text):
|
|
|
812
810
|
Returns:
|
|
813
811
|
A new component instance.
|
|
814
812
|
"""
|
|
815
|
-
...
|
|
816
813
|
|
|
817
814
|
class Em(elements.Em, RadixThemesComponent):
|
|
818
815
|
@overload
|
|
@@ -1061,7 +1058,6 @@ class Em(elements.Em, RadixThemesComponent):
|
|
|
1061
1058
|
Returns:
|
|
1062
1059
|
A new component instance.
|
|
1063
1060
|
"""
|
|
1064
|
-
...
|
|
1065
1061
|
|
|
1066
1062
|
class Kbd(elements.Kbd, RadixThemesComponent):
|
|
1067
1063
|
@overload
|
|
@@ -1314,7 +1310,6 @@ class Kbd(elements.Kbd, RadixThemesComponent):
|
|
|
1314
1310
|
Returns:
|
|
1315
1311
|
A new component instance.
|
|
1316
1312
|
"""
|
|
1317
|
-
...
|
|
1318
1313
|
|
|
1319
1314
|
class Quote(elements.Q, RadixThemesComponent):
|
|
1320
1315
|
@overload
|
|
@@ -1565,7 +1560,6 @@ class Quote(elements.Q, RadixThemesComponent):
|
|
|
1565
1560
|
Returns:
|
|
1566
1561
|
A new component instance.
|
|
1567
1562
|
"""
|
|
1568
|
-
...
|
|
1569
1563
|
|
|
1570
1564
|
class Strong(elements.Strong, RadixThemesComponent):
|
|
1571
1565
|
@overload
|
|
@@ -1814,7 +1808,6 @@ class Strong(elements.Strong, RadixThemesComponent):
|
|
|
1814
1808
|
Returns:
|
|
1815
1809
|
A new component instance.
|
|
1816
1810
|
"""
|
|
1817
|
-
...
|
|
1818
1811
|
|
|
1819
1812
|
class TextNamespace(ComponentNamespace):
|
|
1820
1813
|
em = staticmethod(Em.create)
|
|
@@ -2207,6 +2200,5 @@ class TextNamespace(ComponentNamespace):
|
|
|
2207
2200
|
Returns:
|
|
2208
2201
|
A new component instance.
|
|
2209
2202
|
"""
|
|
2210
|
-
...
|
|
2211
2203
|
|
|
2212
2204
|
text = TextNamespace()
|
|
@@ -13,8 +13,6 @@ from reflex.event import EventType
|
|
|
13
13
|
from reflex.vars.base import Var
|
|
14
14
|
|
|
15
15
|
class Audio(ReactPlayer):
|
|
16
|
-
pass
|
|
17
|
-
|
|
18
16
|
@overload
|
|
19
17
|
@classmethod
|
|
20
18
|
def create( # type: ignore
|
|
@@ -110,4 +108,3 @@ class Audio(ReactPlayer):
|
|
|
110
108
|
Returns:
|
|
111
109
|
The component.
|
|
112
110
|
"""
|
|
113
|
-
...
|
|
@@ -13,8 +13,6 @@ from reflex.event import EventType
|
|
|
13
13
|
from reflex.vars.base import Var
|
|
14
14
|
|
|
15
15
|
class Video(ReactPlayer):
|
|
16
|
-
pass
|
|
17
|
-
|
|
18
16
|
@overload
|
|
19
17
|
@classmethod
|
|
20
18
|
def create( # type: ignore
|
|
@@ -110,4 +108,3 @@ class Video(ReactPlayer):
|
|
|
110
108
|
Returns:
|
|
111
109
|
The component.
|
|
112
110
|
"""
|
|
113
|
-
...
|
|
@@ -90,10 +90,10 @@ _SUBMOD_ATTRS: dict = {
|
|
|
90
90
|
],
|
|
91
91
|
"recharts": [
|
|
92
92
|
"LiteralAnimationEasing",
|
|
93
|
-
"LiteralAreaType",
|
|
94
93
|
"LiteralAxisType",
|
|
95
94
|
"LiteralBarChartStackOffset",
|
|
96
95
|
"LiteralComposedChartBaseValue",
|
|
96
|
+
"LiteralCurveType",
|
|
97
97
|
"LiteralDirection",
|
|
98
98
|
"LiteralGridType",
|
|
99
99
|
"LiteralIconType",
|
|
@@ -79,10 +79,10 @@ from .polar import polar_radius_axis as polar_radius_axis
|
|
|
79
79
|
from .polar import radar as radar
|
|
80
80
|
from .polar import radial_bar as radial_bar
|
|
81
81
|
from .recharts import LiteralAnimationEasing as LiteralAnimationEasing
|
|
82
|
-
from .recharts import LiteralAreaType as LiteralAreaType
|
|
83
82
|
from .recharts import LiteralAxisType as LiteralAxisType
|
|
84
83
|
from .recharts import LiteralBarChartStackOffset as LiteralBarChartStackOffset
|
|
85
84
|
from .recharts import LiteralComposedChartBaseValue as LiteralComposedChartBaseValue
|
|
85
|
+
from .recharts import LiteralCurveType as LiteralCurveType
|
|
86
86
|
from .recharts import LiteralDirection as LiteralDirection
|
|
87
87
|
from .recharts import LiteralGridType as LiteralGridType
|
|
88
88
|
from .recharts import LiteralIconType as LiteralIconType
|
|
@@ -11,8 +11,9 @@ from reflex.event import EventHandler, no_args_event_spec
|
|
|
11
11
|
from reflex.vars.base import LiteralVar, Var
|
|
12
12
|
|
|
13
13
|
from .recharts import (
|
|
14
|
+
ACTIVE_DOT_TYPE,
|
|
14
15
|
LiteralAnimationEasing,
|
|
15
|
-
|
|
16
|
+
LiteralCurveType,
|
|
16
17
|
LiteralDirection,
|
|
17
18
|
LiteralIfOverflow,
|
|
18
19
|
LiteralInterval,
|
|
@@ -89,7 +90,7 @@ class Axis(Recharts):
|
|
|
89
90
|
ticks: Var[Sequence[str | int]]
|
|
90
91
|
|
|
91
92
|
# If set false, no ticks will be drawn.
|
|
92
|
-
tick: Var[bool]
|
|
93
|
+
tick: Var[bool | dict]
|
|
93
94
|
|
|
94
95
|
# The count of axis ticks. Not used if 'type' is 'category'. Default: 5
|
|
95
96
|
tick_count: Var[int]
|
|
@@ -275,6 +276,9 @@ class Cartesian(Recharts):
|
|
|
275
276
|
# The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
|
|
276
277
|
legend_type: Var[LiteralLegendType]
|
|
277
278
|
|
|
279
|
+
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
280
|
+
label: Var[bool | dict[str, Any]]
|
|
281
|
+
|
|
278
282
|
# If set false, animation of bar will be disabled. Default: True
|
|
279
283
|
is_animation_active: Var[bool]
|
|
280
284
|
|
|
@@ -335,30 +339,27 @@ class Area(Cartesian):
|
|
|
335
339
|
stroke: Var[str | Color] = LiteralVar.create(Color("accent", 9))
|
|
336
340
|
|
|
337
341
|
# The width of the line stroke. Default: 1
|
|
338
|
-
stroke_width: Var[int]
|
|
342
|
+
stroke_width: Var[str | int | float]
|
|
339
343
|
|
|
340
344
|
# The color of the area fill. Default: rx.color("accent", 5)
|
|
341
345
|
fill: Var[str | Color] = LiteralVar.create(Color("accent", 5))
|
|
342
346
|
|
|
343
347
|
# The interpolation type of area. And customized interpolation function can be set to type. 'basis' | 'basisClosed' | 'basisOpen' | 'bumpX' | 'bumpY' | 'bump' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter'. Default: "monotone"
|
|
344
|
-
type_: Var[
|
|
348
|
+
type_: Var[LiteralCurveType] = LiteralVar.create("monotone")
|
|
345
349
|
|
|
346
350
|
# If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally. Default: False
|
|
347
|
-
dot: Var[
|
|
351
|
+
dot: Var[ACTIVE_DOT_TYPE]
|
|
348
352
|
|
|
349
353
|
# The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {stroke: rx.color("accent", 2), fill: rx.color("accent", 10)}
|
|
350
|
-
active_dot: Var[
|
|
354
|
+
active_dot: Var[ACTIVE_DOT_TYPE] = LiteralVar.create(
|
|
351
355
|
{
|
|
352
356
|
"stroke": Color("accent", 2),
|
|
353
357
|
"fill": Color("accent", 10),
|
|
354
358
|
}
|
|
355
359
|
)
|
|
356
360
|
|
|
357
|
-
# If set false, labels will not be drawn. If set true, labels will be drawn which have the props calculated internally. Default: False
|
|
358
|
-
label: Var[bool]
|
|
359
|
-
|
|
360
361
|
# The value which can describle the line, usually calculated internally.
|
|
361
|
-
base_line: Var[
|
|
362
|
+
base_line: Var[int | Sequence[dict[str, Any]]]
|
|
362
363
|
|
|
363
364
|
# The coordinates of all the points in the area, usually calculated internally.
|
|
364
365
|
points: Var[Sequence[dict[str, Any]]]
|
|
@@ -384,7 +385,7 @@ class Bar(Cartesian):
|
|
|
384
385
|
stroke: Var[str | Color]
|
|
385
386
|
|
|
386
387
|
# The width of the line stroke.
|
|
387
|
-
stroke_width: Var[int]
|
|
388
|
+
stroke_width: Var[str | int | float]
|
|
388
389
|
|
|
389
390
|
# The width of the line stroke. Default: Color("accent", 9)
|
|
390
391
|
fill: Var[str | Color] = LiteralVar.create(Color("accent", 9))
|
|
@@ -392,9 +393,6 @@ class Bar(Cartesian):
|
|
|
392
393
|
# If false set, background of bars will not be drawn. If true set, background of bars will be drawn which have the props calculated internally. Default: False
|
|
393
394
|
background: Var[bool]
|
|
394
395
|
|
|
395
|
-
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
396
|
-
label: Var[bool]
|
|
397
|
-
|
|
398
396
|
# The stack id of bar, when two bars have the same value axis and same stack_id, then the two bars are stacked in order.
|
|
399
397
|
stack_id: Var[str]
|
|
400
398
|
|
|
@@ -431,16 +429,16 @@ class Line(Cartesian):
|
|
|
431
429
|
alias = "RechartsLine"
|
|
432
430
|
|
|
433
431
|
# The interpolation type of line. And customized interpolation function can be set to type. It's the same as type in Area.
|
|
434
|
-
type_: Var[
|
|
432
|
+
type_: Var[LiteralCurveType]
|
|
435
433
|
|
|
436
434
|
# The color of the line stroke. Default: rx.color("accent", 9)
|
|
437
435
|
stroke: Var[str | Color] = LiteralVar.create(Color("accent", 9))
|
|
438
436
|
|
|
439
437
|
# The width of the line stroke. Default: 1
|
|
440
|
-
stroke_width: Var[int]
|
|
438
|
+
stroke_width: Var[str | int | float]
|
|
441
439
|
|
|
442
440
|
# The dot is shown when mouse enter a line chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {"stroke": rx.color("accent", 10), "fill": rx.color("accent", 4)}
|
|
443
|
-
dot: Var[
|
|
441
|
+
dot: Var[ACTIVE_DOT_TYPE] = LiteralVar.create(
|
|
444
442
|
{
|
|
445
443
|
"stroke": Color("accent", 10),
|
|
446
444
|
"fill": Color("accent", 4),
|
|
@@ -448,16 +446,13 @@ class Line(Cartesian):
|
|
|
448
446
|
)
|
|
449
447
|
|
|
450
448
|
# The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {"stroke": rx.color("accent", 2), "fill": rx.color("accent", 10)}
|
|
451
|
-
active_dot: Var[
|
|
449
|
+
active_dot: Var[ACTIVE_DOT_TYPE] = LiteralVar.create(
|
|
452
450
|
{
|
|
453
451
|
"stroke": Color("accent", 2),
|
|
454
452
|
"fill": Color("accent", 10),
|
|
455
453
|
}
|
|
456
454
|
)
|
|
457
455
|
|
|
458
|
-
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
459
|
-
label: Var[bool]
|
|
460
|
-
|
|
461
456
|
# Hides the line when true, useful when toggling visibility state via legend. Default: False
|
|
462
457
|
hide: Var[bool]
|
|
463
458
|
|
|
@@ -645,7 +640,7 @@ class ErrorBar(Recharts):
|
|
|
645
640
|
stroke: Var[str | Color] = LiteralVar.create(Color("gray", 8))
|
|
646
641
|
|
|
647
642
|
# The stroke width of error bar. Default: 1.5
|
|
648
|
-
stroke_width: Var[int | float]
|
|
643
|
+
stroke_width: Var[str | int | float]
|
|
649
644
|
|
|
650
645
|
|
|
651
646
|
class Reference(Recharts):
|
|
@@ -684,7 +679,7 @@ class ReferenceLine(Reference):
|
|
|
684
679
|
stroke: Var[str | Color]
|
|
685
680
|
|
|
686
681
|
# The width of the stroke. Default: 1
|
|
687
|
-
stroke_width: Var[str | int]
|
|
682
|
+
stroke_width: Var[str | int | float]
|
|
688
683
|
|
|
689
684
|
# Valid children components
|
|
690
685
|
_valid_children: ClassVar[list[str]] = ["Label"]
|
|
@@ -849,10 +844,10 @@ class CartesianAxis(Grid):
|
|
|
849
844
|
view_box: Var[dict[str, Any]]
|
|
850
845
|
|
|
851
846
|
# If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line. Default: True
|
|
852
|
-
axis_line: Var[bool]
|
|
847
|
+
axis_line: Var[bool | dict]
|
|
853
848
|
|
|
854
849
|
# If set false, no ticks will be drawn.
|
|
855
|
-
tick: Var[bool]
|
|
850
|
+
tick: Var[bool | dict]
|
|
856
851
|
|
|
857
852
|
# If set false, no axis tick lines will be drawn. If set a object, the option is the configuration of tick lines. Default: True
|
|
858
853
|
tick_line: Var[bool]
|
|
@@ -95,7 +95,7 @@ class Axis(Recharts):
|
|
|
95
95
|
unit: Var[int | str] | int | str | None = None,
|
|
96
96
|
name: Var[int | str] | int | str | None = None,
|
|
97
97
|
ticks: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
98
|
-
tick: Var[bool] | bool | None = None,
|
|
98
|
+
tick: Var[bool | dict] | bool | dict | None = None,
|
|
99
99
|
tick_count: Var[int] | int | None = None,
|
|
100
100
|
tick_line: Var[bool] | bool | None = None,
|
|
101
101
|
tick_size: Var[int] | int | None = None,
|
|
@@ -180,7 +180,6 @@ class Axis(Recharts):
|
|
|
180
180
|
Returns:
|
|
181
181
|
The component.
|
|
182
182
|
"""
|
|
183
|
-
...
|
|
184
183
|
|
|
185
184
|
class XAxis(Axis):
|
|
186
185
|
@overload
|
|
@@ -271,7 +270,7 @@ class XAxis(Axis):
|
|
|
271
270
|
unit: Var[int | str] | int | str | None = None,
|
|
272
271
|
name: Var[int | str] | int | str | None = None,
|
|
273
272
|
ticks: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
274
|
-
tick: Var[bool] | bool | None = None,
|
|
273
|
+
tick: Var[bool | dict] | bool | dict | None = None,
|
|
275
274
|
tick_count: Var[int] | int | None = None,
|
|
276
275
|
tick_line: Var[bool] | bool | None = None,
|
|
277
276
|
tick_size: Var[int] | int | None = None,
|
|
@@ -361,7 +360,6 @@ class XAxis(Axis):
|
|
|
361
360
|
Returns:
|
|
362
361
|
The component.
|
|
363
362
|
"""
|
|
364
|
-
...
|
|
365
363
|
|
|
366
364
|
class YAxis(Axis):
|
|
367
365
|
@overload
|
|
@@ -450,7 +448,7 @@ class YAxis(Axis):
|
|
|
450
448
|
unit: Var[int | str] | int | str | None = None,
|
|
451
449
|
name: Var[int | str] | int | str | None = None,
|
|
452
450
|
ticks: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
453
|
-
tick: Var[bool] | bool | None = None,
|
|
451
|
+
tick: Var[bool | dict] | bool | dict | None = None,
|
|
454
452
|
tick_count: Var[int] | int | None = None,
|
|
455
453
|
tick_line: Var[bool] | bool | None = None,
|
|
456
454
|
tick_size: Var[int] | int | None = None,
|
|
@@ -538,7 +536,6 @@ class YAxis(Axis):
|
|
|
538
536
|
Returns:
|
|
539
537
|
The component.
|
|
540
538
|
"""
|
|
541
|
-
...
|
|
542
539
|
|
|
543
540
|
class ZAxis(Recharts):
|
|
544
541
|
@overload
|
|
@@ -638,7 +635,6 @@ class ZAxis(Recharts):
|
|
|
638
635
|
Returns:
|
|
639
636
|
The component.
|
|
640
637
|
"""
|
|
641
|
-
...
|
|
642
638
|
|
|
643
639
|
class Brush(Recharts):
|
|
644
640
|
def get_event_triggers(self) -> dict[str, Var | Any]: ...
|
|
@@ -701,7 +697,6 @@ class Brush(Recharts):
|
|
|
701
697
|
Returns:
|
|
702
698
|
The component.
|
|
703
699
|
"""
|
|
704
|
-
...
|
|
705
700
|
|
|
706
701
|
class Cartesian(Recharts):
|
|
707
702
|
@overload
|
|
@@ -744,6 +739,7 @@ class Cartesian(Recharts):
|
|
|
744
739
|
]
|
|
745
740
|
]
|
|
746
741
|
| None = None,
|
|
742
|
+
label: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
747
743
|
is_animation_active: Var[bool] | bool | None = None,
|
|
748
744
|
animation_begin: Var[int] | int | None = None,
|
|
749
745
|
animation_duration: Var[int] | int | None = None,
|
|
@@ -793,6 +789,7 @@ class Cartesian(Recharts):
|
|
|
793
789
|
x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
|
|
794
790
|
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
|
|
795
791
|
legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
|
|
792
|
+
label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
796
793
|
is_animation_active: If set false, animation of bar will be disabled. Default: True
|
|
797
794
|
animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
798
795
|
animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
@@ -821,7 +818,6 @@ class Cartesian(Recharts):
|
|
|
821
818
|
Returns:
|
|
822
819
|
The component.
|
|
823
820
|
"""
|
|
824
|
-
...
|
|
825
821
|
|
|
826
822
|
class Area(Cartesian):
|
|
827
823
|
@overload
|
|
@@ -830,7 +826,7 @@ class Area(Cartesian):
|
|
|
830
826
|
cls,
|
|
831
827
|
*children,
|
|
832
828
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
833
|
-
stroke_width: Var[int] | int | None = None,
|
|
829
|
+
stroke_width: Var[float | int | str] | float | int | str | None = None,
|
|
834
830
|
fill: Color | Var[Color | str] | str | None = None,
|
|
835
831
|
type_: Literal[
|
|
836
832
|
"basis",
|
|
@@ -871,10 +867,9 @@ class Area(Cartesian):
|
|
|
871
867
|
| None = None,
|
|
872
868
|
dot: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
873
869
|
active_dot: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
874
|
-
label: Var[bool] | bool | None = None,
|
|
875
870
|
base_line: Sequence[dict[str, Any]]
|
|
876
|
-
| Var[Sequence[dict[str, Any]] |
|
|
877
|
-
|
|
|
871
|
+
| Var[Sequence[dict[str, Any]] | int]
|
|
872
|
+
| int
|
|
878
873
|
| None = None,
|
|
879
874
|
points: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
880
875
|
stack_id: Var[int | str] | int | str | None = None,
|
|
@@ -914,6 +909,7 @@ class Area(Cartesian):
|
|
|
914
909
|
]
|
|
915
910
|
]
|
|
916
911
|
| None = None,
|
|
912
|
+
label: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
917
913
|
is_animation_active: Var[bool] | bool | None = None,
|
|
918
914
|
animation_begin: Var[int] | int | None = None,
|
|
919
915
|
animation_duration: Var[int] | int | None = None,
|
|
@@ -964,7 +960,6 @@ class Area(Cartesian):
|
|
|
964
960
|
type_: The interpolation type of area. And customized interpolation function can be set to type. 'basis' | 'basisClosed' | 'basisOpen' | 'bumpX' | 'bumpY' | 'bump' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter'. Default: "monotone"
|
|
965
961
|
dot: If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally. Default: False
|
|
966
962
|
active_dot: The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {stroke: rx.color("accent", 2), fill: rx.color("accent", 10)}
|
|
967
|
-
label: If set false, labels will not be drawn. If set true, labels will be drawn which have the props calculated internally. Default: False
|
|
968
963
|
base_line: The value which can describle the line, usually calculated internally.
|
|
969
964
|
points: The coordinates of all the points in the area, usually calculated internally.
|
|
970
965
|
stack_id: The stack id of area, when two areas have the same value axis and same stack_id, then the two areas are stacked in order.
|
|
@@ -974,6 +969,7 @@ class Area(Cartesian):
|
|
|
974
969
|
x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
|
|
975
970
|
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
|
|
976
971
|
legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
|
|
972
|
+
label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
977
973
|
is_animation_active: If set false, animation of bar will be disabled. Default: True
|
|
978
974
|
animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
979
975
|
animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
@@ -1002,7 +998,6 @@ class Area(Cartesian):
|
|
|
1002
998
|
Returns:
|
|
1003
999
|
The component.
|
|
1004
1000
|
"""
|
|
1005
|
-
...
|
|
1006
1001
|
|
|
1007
1002
|
class Bar(Cartesian):
|
|
1008
1003
|
@overload
|
|
@@ -1011,10 +1006,9 @@ class Bar(Cartesian):
|
|
|
1011
1006
|
cls,
|
|
1012
1007
|
*children,
|
|
1013
1008
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
1014
|
-
stroke_width: Var[int] | int | None = None,
|
|
1009
|
+
stroke_width: Var[float | int | str] | float | int | str | None = None,
|
|
1015
1010
|
fill: Color | Var[Color | str] | str | None = None,
|
|
1016
1011
|
background: Var[bool] | bool | None = None,
|
|
1017
|
-
label: Var[bool] | bool | None = None,
|
|
1018
1012
|
stack_id: Var[str] | str | None = None,
|
|
1019
1013
|
unit: Var[int | str] | int | str | None = None,
|
|
1020
1014
|
min_point_size: Var[int] | int | None = None,
|
|
@@ -1057,6 +1051,7 @@ class Bar(Cartesian):
|
|
|
1057
1051
|
]
|
|
1058
1052
|
]
|
|
1059
1053
|
| None = None,
|
|
1054
|
+
label: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
1060
1055
|
is_animation_active: Var[bool] | bool | None = None,
|
|
1061
1056
|
animation_begin: Var[int] | int | None = None,
|
|
1062
1057
|
animation_duration: Var[int] | int | None = None,
|
|
@@ -1103,7 +1098,6 @@ class Bar(Cartesian):
|
|
|
1103
1098
|
stroke_width: The width of the line stroke.
|
|
1104
1099
|
fill: The width of the line stroke. Default: Color("accent", 9)
|
|
1105
1100
|
background: If false set, background of bars will not be drawn. If true set, background of bars will be drawn which have the props calculated internally. Default: False
|
|
1106
|
-
label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
1107
1101
|
stack_id: The stack id of bar, when two bars have the same value axis and same stack_id, then the two bars are stacked in order.
|
|
1108
1102
|
unit: The unit of data. This option will be used in tooltip.
|
|
1109
1103
|
min_point_size: The minimal height of a bar in a horizontal BarChart, or the minimal width of a bar in a vertical BarChart. By default, 0 values are not shown. To visualize a 0 (or close to zero) point, set the minimal point size to a pixel value like 3. In stacked bar charts, minPointSize might not be respected for tightly packed values. So we strongly recommend not using this prop in stacked BarCharts.
|
|
@@ -1116,6 +1110,7 @@ class Bar(Cartesian):
|
|
|
1116
1110
|
x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
|
|
1117
1111
|
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
|
|
1118
1112
|
legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
|
|
1113
|
+
label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
1119
1114
|
is_animation_active: If set false, animation of bar will be disabled. Default: True
|
|
1120
1115
|
animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
1121
1116
|
animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
@@ -1142,7 +1137,6 @@ class Bar(Cartesian):
|
|
|
1142
1137
|
Returns:
|
|
1143
1138
|
The component.
|
|
1144
1139
|
"""
|
|
1145
|
-
...
|
|
1146
1140
|
|
|
1147
1141
|
class Line(Cartesian):
|
|
1148
1142
|
@overload
|
|
@@ -1188,10 +1182,9 @@ class Line(Cartesian):
|
|
|
1188
1182
|
]
|
|
1189
1183
|
| None = None,
|
|
1190
1184
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
1191
|
-
stroke_width: Var[int] | int | None = None,
|
|
1185
|
+
stroke_width: Var[float | int | str] | float | int | str | None = None,
|
|
1192
1186
|
dot: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
1193
1187
|
active_dot: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
1194
|
-
label: Var[bool] | bool | None = None,
|
|
1195
1188
|
hide: Var[bool] | bool | None = None,
|
|
1196
1189
|
connect_nulls: Var[bool] | bool | None = None,
|
|
1197
1190
|
unit: Var[int | str] | int | str | None = None,
|
|
@@ -1232,6 +1225,7 @@ class Line(Cartesian):
|
|
|
1232
1225
|
]
|
|
1233
1226
|
]
|
|
1234
1227
|
| None = None,
|
|
1228
|
+
label: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
1235
1229
|
is_animation_active: Var[bool] | bool | None = None,
|
|
1236
1230
|
animation_begin: Var[int] | int | None = None,
|
|
1237
1231
|
animation_duration: Var[int] | int | None = None,
|
|
@@ -1280,7 +1274,6 @@ class Line(Cartesian):
|
|
|
1280
1274
|
stroke_width: The width of the line stroke. Default: 1
|
|
1281
1275
|
dot: The dot is shown when mouse enter a line chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {"stroke": rx.color("accent", 10), "fill": rx.color("accent", 4)}
|
|
1282
1276
|
active_dot: The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {"stroke": rx.color("accent", 2), "fill": rx.color("accent", 10)}
|
|
1283
|
-
label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
1284
1277
|
hide: Hides the line when true, useful when toggling visibility state via legend. Default: False
|
|
1285
1278
|
connect_nulls: Whether to connect a graph line across null points.
|
|
1286
1279
|
unit: The unit of data. This option will be used in tooltip.
|
|
@@ -1291,6 +1284,7 @@ class Line(Cartesian):
|
|
|
1291
1284
|
x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
|
|
1292
1285
|
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
|
|
1293
1286
|
legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
|
|
1287
|
+
label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
1294
1288
|
is_animation_active: If set false, animation of bar will be disabled. Default: True
|
|
1295
1289
|
animation_begin: Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
1296
1290
|
animation_duration: Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
@@ -1318,7 +1312,6 @@ class Line(Cartesian):
|
|
|
1318
1312
|
Returns:
|
|
1319
1313
|
The component.
|
|
1320
1314
|
"""
|
|
1321
|
-
...
|
|
1322
1315
|
|
|
1323
1316
|
class Scatter(Recharts):
|
|
1324
1317
|
@overload
|
|
@@ -1446,7 +1439,6 @@ class Scatter(Recharts):
|
|
|
1446
1439
|
Returns:
|
|
1447
1440
|
The component.
|
|
1448
1441
|
"""
|
|
1449
|
-
...
|
|
1450
1442
|
|
|
1451
1443
|
class Funnel(Recharts):
|
|
1452
1444
|
@overload
|
|
@@ -1564,7 +1556,6 @@ class Funnel(Recharts):
|
|
|
1564
1556
|
Returns:
|
|
1565
1557
|
The component.
|
|
1566
1558
|
"""
|
|
1567
|
-
...
|
|
1568
1559
|
|
|
1569
1560
|
class ErrorBar(Recharts):
|
|
1570
1561
|
@overload
|
|
@@ -1576,7 +1567,7 @@ class ErrorBar(Recharts):
|
|
|
1576
1567
|
data_key: Var[int | str] | int | str | None = None,
|
|
1577
1568
|
width: Var[int] | int | None = None,
|
|
1578
1569
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
1579
|
-
stroke_width: Var[float | int] | float | int | None = None,
|
|
1570
|
+
stroke_width: Var[float | int | str] | float | int | str | None = None,
|
|
1580
1571
|
style: Sequence[Mapping[str, Any]]
|
|
1581
1572
|
| Mapping[str, Any]
|
|
1582
1573
|
| Var[Mapping[str, Any]]
|
|
@@ -1626,7 +1617,6 @@ class ErrorBar(Recharts):
|
|
|
1626
1617
|
Returns:
|
|
1627
1618
|
The component.
|
|
1628
1619
|
"""
|
|
1629
|
-
...
|
|
1630
1620
|
|
|
1631
1621
|
class Reference(Recharts):
|
|
1632
1622
|
@overload
|
|
@@ -1690,7 +1680,6 @@ class Reference(Recharts):
|
|
|
1690
1680
|
Returns:
|
|
1691
1681
|
The component.
|
|
1692
1682
|
"""
|
|
1693
|
-
...
|
|
1694
1683
|
|
|
1695
1684
|
class ReferenceLine(Reference):
|
|
1696
1685
|
@overload
|
|
@@ -1701,7 +1690,7 @@ class ReferenceLine(Reference):
|
|
|
1701
1690
|
x: Var[int | str] | int | str | None = None,
|
|
1702
1691
|
y: Var[int | str] | int | str | None = None,
|
|
1703
1692
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
1704
|
-
stroke_width: Var[int | str] | int | str | None = None,
|
|
1693
|
+
stroke_width: Var[float | int | str] | float | int | str | None = None,
|
|
1705
1694
|
segment: Sequence[Any] | None = None,
|
|
1706
1695
|
x_axis_id: Var[int | str] | int | str | None = None,
|
|
1707
1696
|
y_axis_id: Var[int | str] | int | str | None = None,
|
|
@@ -1764,7 +1753,6 @@ class ReferenceLine(Reference):
|
|
|
1764
1753
|
Returns:
|
|
1765
1754
|
The component.
|
|
1766
1755
|
"""
|
|
1767
|
-
...
|
|
1768
1756
|
|
|
1769
1757
|
class ReferenceDot(Reference):
|
|
1770
1758
|
@overload
|
|
@@ -1846,7 +1834,6 @@ class ReferenceDot(Reference):
|
|
|
1846
1834
|
Returns:
|
|
1847
1835
|
The component.
|
|
1848
1836
|
"""
|
|
1849
|
-
...
|
|
1850
1837
|
|
|
1851
1838
|
class ReferenceArea(Recharts):
|
|
1852
1839
|
@overload
|
|
@@ -1922,7 +1909,6 @@ class ReferenceArea(Recharts):
|
|
|
1922
1909
|
Returns:
|
|
1923
1910
|
The component.
|
|
1924
1911
|
"""
|
|
1925
|
-
...
|
|
1926
1912
|
|
|
1927
1913
|
class Grid(Recharts):
|
|
1928
1914
|
@overload
|
|
@@ -1982,7 +1968,6 @@ class Grid(Recharts):
|
|
|
1982
1968
|
Returns:
|
|
1983
1969
|
The component.
|
|
1984
1970
|
"""
|
|
1985
|
-
...
|
|
1986
1971
|
|
|
1987
1972
|
class CartesianGrid(Grid):
|
|
1988
1973
|
@overload
|
|
@@ -2058,7 +2043,6 @@ class CartesianGrid(Grid):
|
|
|
2058
2043
|
Returns:
|
|
2059
2044
|
The component.
|
|
2060
2045
|
"""
|
|
2061
|
-
...
|
|
2062
2046
|
|
|
2063
2047
|
class CartesianAxis(Grid):
|
|
2064
2048
|
@overload
|
|
@@ -2070,8 +2054,8 @@ class CartesianAxis(Grid):
|
|
|
2070
2054
|
| Var[Literal["bottom", "left", "right", "top"]]
|
|
2071
2055
|
| None = None,
|
|
2072
2056
|
view_box: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
2073
|
-
axis_line: Var[bool] | bool | None = None,
|
|
2074
|
-
tick: Var[bool] | bool | None = None,
|
|
2057
|
+
axis_line: Var[bool | dict] | bool | dict | None = None,
|
|
2058
|
+
tick: Var[bool | dict] | bool | dict | None = None,
|
|
2075
2059
|
tick_line: Var[bool] | bool | None = None,
|
|
2076
2060
|
tick_size: Var[int] | int | None = None,
|
|
2077
2061
|
interval: Literal["preserveEnd", "preserveStart", "preserveStartEnd"]
|
|
@@ -2142,7 +2126,6 @@ class CartesianAxis(Grid):
|
|
|
2142
2126
|
Returns:
|
|
2143
2127
|
The component.
|
|
2144
2128
|
"""
|
|
2145
|
-
...
|
|
2146
2129
|
|
|
2147
2130
|
area = Area.create
|
|
2148
2131
|
bar = Bar.create
|
|
@@ -64,10 +64,11 @@ class ChartBase(RechartsCharts):
|
|
|
64
64
|
return
|
|
65
65
|
if isinstance(value, Var) and issubclass(value._var_type, int):
|
|
66
66
|
return
|
|
67
|
-
|
|
67
|
+
msg = (
|
|
68
68
|
f"Chart {name} must be specified as int pixels or percentage, not {value!r}. "
|
|
69
69
|
"CSS unit dimensions are allowed on parent container."
|
|
70
70
|
)
|
|
71
|
+
raise ValueError(msg)
|
|
71
72
|
|
|
72
73
|
@classmethod
|
|
73
74
|
def create(cls, *children: Any, **props: Any) -> Component:
|