__init__.py 650 B

1234567891011121314151617181920212223242526272829303132
  1. """Plotly components."""
  2. from reflex.components.component import ComponentNamespace
  3. from .plotly import (
  4. Plotly,
  5. PlotlyBasic,
  6. PlotlyCartesian,
  7. PlotlyFinance,
  8. PlotlyGeo,
  9. PlotlyGl2d,
  10. PlotlyGl3d,
  11. PlotlyMapbox,
  12. PlotlyStrict,
  13. )
  14. class PlotlyNamespace(ComponentNamespace):
  15. """Plotly namespace."""
  16. __call__ = Plotly.create
  17. basic = PlotlyBasic.create
  18. cartesian = PlotlyCartesian.create
  19. geo = PlotlyGeo.create
  20. gl2d = PlotlyGl2d.create
  21. gl3d = PlotlyGl3d.create
  22. finance = PlotlyFinance.create
  23. mapbox = PlotlyMapbox.create
  24. strict = PlotlyStrict.create
  25. plotly = PlotlyNamespace()