__init__.py 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. """Recharts components."""
  2. from __future__ import annotations
  3. from reflex.utils import lazy_loader
  4. _SUBMOD_ATTRS: dict = {
  5. "cartesian": [
  6. "area",
  7. "Area",
  8. "bar",
  9. "Bar",
  10. "line",
  11. "Line",
  12. "scatter",
  13. "Scatter",
  14. "x_axis",
  15. "XAxis",
  16. "y_axis",
  17. "YAxis",
  18. "z_axis",
  19. "ZAxis",
  20. "brush",
  21. "Brush",
  22. "cartesian_axis",
  23. "CartesianAxis",
  24. "cartesian_grid",
  25. "CartesianGrid",
  26. "reference_line",
  27. "ReferenceLine",
  28. "reference_dot",
  29. "ReferenceDot",
  30. "reference_area",
  31. "ReferenceArea",
  32. "error_bar",
  33. "ErrorBar",
  34. "funnel",
  35. "Funnel",
  36. ],
  37. "charts": [
  38. "area_chart",
  39. "AreaChart",
  40. "bar_chart",
  41. "BarChart",
  42. "line_chart",
  43. "LineChart",
  44. "composed_chart",
  45. "ComposedChart",
  46. "pie_chart",
  47. "PieChart",
  48. "radar_chart",
  49. "RadarChart",
  50. "radial_bar_chart",
  51. "RadialBarChart",
  52. "scatter_chart",
  53. "ScatterChart",
  54. "funnel_chart",
  55. "FunnelChart",
  56. "treemap",
  57. "Treemap",
  58. ],
  59. "general": [
  60. "responsive_container",
  61. "ResponsiveContainer",
  62. "legend",
  63. "Legend",
  64. "tooltip",
  65. "graphing_tooltip",
  66. "GraphingTooltip",
  67. "label",
  68. "Label",
  69. "label_list",
  70. "LabelList",
  71. "cell",
  72. "Cell",
  73. ],
  74. "polar": [
  75. "pie",
  76. "Pie",
  77. "radar",
  78. "Radar",
  79. "radial_bar",
  80. "RadialBar",
  81. "polar_angle_axis",
  82. "PolarAngleAxis",
  83. "polar_grid",
  84. "PolarGrid",
  85. "polar_radius_axis",
  86. "PolarRadiusAxis",
  87. ],
  88. "recharts": [
  89. "LiteralAnimationEasing",
  90. "LiteralAreaType",
  91. "LiteralAxisType",
  92. "LiteralBarChartStackOffset",
  93. "LiteralComposedChartBaseValue",
  94. "LiteralDirection",
  95. "LiteralGridType",
  96. "LiteralIconType",
  97. "LiteralIfOverflow",
  98. "LiteralInterval",
  99. "LiteralLayout",
  100. "LiteralLegendAlign",
  101. "LiteralLegendType",
  102. "LiteralLineType",
  103. "LiteralOrientation",
  104. "LiteralOrientationLeftRightMiddle",
  105. "LiteralOrientationTopBottom",
  106. "LiteralOrientationTopBottomLeftRight",
  107. "LiteralPolarRadiusType",
  108. "LiteralScale",
  109. "LiteralShape",
  110. "LiteralStackOffset",
  111. "LiteralSyncMethod",
  112. "LiteralVerticalAlign",
  113. ],
  114. }
  115. __getattr__, __dir__, __all__ = lazy_loader.attach(
  116. __name__,
  117. submod_attrs=_SUBMOD_ATTRS,
  118. )