Readded victory create methods and imports (#1938)

This commit is contained in:
Alek Petuskey 2023-10-09 11:53:41 -07:00 committed by GitHub
parent 80bf48b872
commit 86c624e939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 3 deletions

View File

@ -15,6 +15,7 @@ from .components import *
from .components.base.script import client_side
from .components.component import custom_component as memo
from .components.graphing import recharts as recharts
from .components.graphing.victory import data as data
from .config import Config as Config
from .config import DBConfig as DBConfig
from .constants import Env as Env

View File

@ -140,7 +140,21 @@ slider_track = SliderTrack.create
switch = Switch.create
text_area = TextArea.create
upload = Upload.create
area = Area.create
bar = Bar.create
box_plot = BoxPlot.create
candlestick = Candlestick.create
chart = Chart.create
chart_group = ChartGroup.create
chart_stack = ChartStack.create
error_bar = ErrorBar.create
histogram = Histogram.create
line = Line.create
pie = Pie.create
plotly = Plotly.create
polar = Polar.create
scatter = Scatter.create
voronoi = Voronoi.create
box = Box.create
center = Center.create
circle = Circle.create
@ -232,5 +246,3 @@ kbd = KeyboardKey.create
color_mode_button = ColorModeButton.create
color_mode_icon = ColorModeIcon.create
color_mode_switch = ColorModeSwitch.create
plotly = Plotly.create

View File

@ -1,5 +1,21 @@
"""Convenience functions to define layout components."""
from .plotly import Plotly
from .victory import (
Area,
Bar,
BoxPlot,
Candlestick,
Chart,
ChartGroup,
ChartStack,
ErrorBar,
Histogram,
Line,
Pie,
Polar,
Scatter,
Voronoi,
)
__all__ = [f for f in dir() if f[0].isupper()] # type: ignore