recharts.py 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. """A component that wraps a recharts lib."""
  2. from typing import Literal
  3. from reflex.components.component import Component, MemoizationLeaf, NoSSRComponent
  4. class Recharts(Component):
  5. """A component that wraps a recharts lib."""
  6. library = "recharts@2.12.7"
  7. class RechartsCharts(NoSSRComponent, MemoizationLeaf):
  8. """A component that wraps a recharts lib."""
  9. library = "recharts@2.12.7"
  10. LiteralAnimationEasing = Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]
  11. LiteralIfOverflow = Literal["discard", "hidden", "visible", "extendDomain"]
  12. LiteralShape = Literal[
  13. "square", "circle", "cross", "diamond", "star", "triangle", "wye"
  14. ]
  15. LiteralLineType = Literal["joint", "fitting"]
  16. LiteralOrientation = Literal["top", "bottom", "left", "right", "middle"]
  17. LiteralOrientationLeftRightMiddle = Literal["left", "right", "middle"]
  18. LiteralOrientationTopBottom = Literal["top", "bottom"]
  19. LiteralOrientationLeftRight = Literal["left", "right"]
  20. LiteralOrientationTopBottomLeftRight = Literal["top", "bottom", "left", "right"]
  21. LiteralScale = Literal[
  22. "auto",
  23. "linear",
  24. "pow",
  25. "sqrt",
  26. "log",
  27. "identity",
  28. "time",
  29. "band",
  30. "point",
  31. "ordinal",
  32. "quantile",
  33. "quantize",
  34. "utc",
  35. "sequential",
  36. "threshold",
  37. ]
  38. LiteralLayout = Literal["horizontal", "vertical"]
  39. LiteralPolarRadiusType = Literal["number", "category"]
  40. LiteralGridType = Literal["polygon", "circle"]
  41. LiteralPosition = Literal[
  42. "top",
  43. "left",
  44. "right",
  45. "bottom",
  46. "inside",
  47. "outside",
  48. "insideLeft",
  49. "insideRight",
  50. "insideTop",
  51. "insideBottom",
  52. "insideTopLeft",
  53. "insideBottomLeft",
  54. "insideTopRight",
  55. "insideBottomRight",
  56. "insideStart",
  57. "insideEnd",
  58. "end",
  59. "center",
  60. ]
  61. LiteralIconType = Literal[
  62. "line",
  63. "plainline",
  64. "square",
  65. "rect",
  66. "circle",
  67. "cross",
  68. "diamond",
  69. "star",
  70. "triangle",
  71. "wye",
  72. ]
  73. LiteralLegendType = Literal[
  74. "line",
  75. "plainline",
  76. "square",
  77. "rect",
  78. "circle",
  79. "cross",
  80. "diamond",
  81. "star",
  82. "triangle",
  83. "wye",
  84. "none",
  85. ]
  86. LiteralLegendAlign = Literal["left", "center", "right"]
  87. LiteralVerticalAlign = Literal["top", "middle", "bottom"]
  88. LiteralStackOffset = Literal["expand", "none", "wiggle", "silhouette"]
  89. LiteralBarChartStackOffset = Literal["expand", "none", "wiggle", "silhouette", "sign"]
  90. LiteralComposedChartBaseValue = Literal["dataMin", "dataMax", "auto"]
  91. LiteralAxisType = Literal["number", "category"]
  92. LiteralAreaType = Literal[
  93. "basis",
  94. "basisClosed",
  95. "basisOpen",
  96. "bumpX",
  97. "bumpY",
  98. "bump",
  99. "linear",
  100. "linearClosed",
  101. "natural",
  102. "monotoneX",
  103. "monotoneY",
  104. "monotone",
  105. "step",
  106. "stepBefore",
  107. "stepAfter",
  108. ]
  109. LiteralDirection = Literal["x", "y", "both"]
  110. LiteralInterval = Literal["preserveStart", "preserveEnd", "preserveStartEnd"]
  111. LiteralSyncMethod = Literal["index", "value"]