recharts.py 2.8 KB

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