Skip to content

Commit 86c624e

Browse files
authored
Readded victory create methods and imports (#1938)
1 parent 80bf48b commit 86c624e

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

reflex/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from .components.base.script import client_side
1616
from .components.component import custom_component as memo
1717
from .components.graphing import recharts as recharts
18+
from .components.graphing.victory import data as data
1819
from .config import Config as Config
1920
from .config import DBConfig as DBConfig
2021
from .constants import Env as Env

reflex/components/__init__.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,21 @@
140140
switch = Switch.create
141141
text_area = TextArea.create
142142
upload = Upload.create
143-
143+
area = Area.create
144+
bar = Bar.create
145+
box_plot = BoxPlot.create
146+
candlestick = Candlestick.create
147+
chart = Chart.create
148+
chart_group = ChartGroup.create
149+
chart_stack = ChartStack.create
150+
error_bar = ErrorBar.create
151+
histogram = Histogram.create
152+
line = Line.create
153+
pie = Pie.create
154+
plotly = Plotly.create
155+
polar = Polar.create
156+
scatter = Scatter.create
157+
voronoi = Voronoi.create
144158
box = Box.create
145159
center = Center.create
146160
circle = Circle.create
@@ -232,5 +246,3 @@
232246
color_mode_button = ColorModeButton.create
233247
color_mode_icon = ColorModeIcon.create
234248
color_mode_switch = ColorModeSwitch.create
235-
236-
plotly = Plotly.create
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
"""Convenience functions to define layout components."""
22

33
from .plotly import Plotly
4+
from .victory import (
5+
Area,
6+
Bar,
7+
BoxPlot,
8+
Candlestick,
9+
Chart,
10+
ChartGroup,
11+
ChartStack,
12+
ErrorBar,
13+
Histogram,
14+
Line,
15+
Pie,
16+
Polar,
17+
Scatter,
18+
Voronoi,
19+
)
420

521
__all__ = [f for f in dir() if f[0].isupper()] # type: ignore

0 commit comments

Comments
 (0)