__init__.py 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. "graphing_tooltip",
  65. "GraphingTooltip",
  66. "label",
  67. "Label",
  68. "label_list",
  69. "LabelList",
  70. "cell",
  71. "Cell",
  72. ],
  73. "polar": [
  74. "pie",
  75. "Pie",
  76. "radar",
  77. "Radar",
  78. "radial_bar",
  79. "RadialBar",
  80. "polar_angle_axis",
  81. "PolarAngleAxis",
  82. "polar_grid",
  83. "PolarGrid",
  84. "polar_radius_axis",
  85. "PolarRadiusAxis",
  86. ],
  87. "recharts": [
  88. "LiteralAnimationEasing",
  89. "LiteralAreaType",
  90. "LiteralAxisType",
  91. "LiteralBarChartStackOffset",
  92. "LiteralComposedChartBaseValue",
  93. "LiteralDirection",
  94. "LiteralGridType",
  95. "LiteralIconType",
  96. "LiteralIfOverflow",
  97. "LiteralInterval",
  98. "LiteralLayout",
  99. "LiteralLegendAlign",
  100. "LiteralLegendType",
  101. "LiteralLineType",
  102. "LiteralOrientation",
  103. "LiteralOrientationLeftRightMiddle",
  104. "LiteralOrientationTopBottom",
  105. "LiteralOrientationTopBottomLeftRight",
  106. "LiteralPolarRadiusType",
  107. "LiteralScale",
  108. "LiteralShape",
  109. "LiteralStackOffset",
  110. "LiteralSyncMethod",
  111. "LiteralVerticalAlign",
  112. ],
  113. }
  114. __getattr__, __dir__, __all__ = lazy_loader.attach(
  115. __name__,
  116. submod_attrs=_SUBMOD_ATTRS,
  117. )