123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- """A component that wraps a recharts lib."""
- from typing import Literal
- from reflex.components.component import Component, MemoizationLeaf, NoSSRComponent
- class Recharts(Component):
- """A component that wraps a recharts lib."""
- library = "recharts@2.15.3"
- def _get_style(self) -> dict:
- return {"wrapperStyle": self.style}
- class RechartsCharts(NoSSRComponent, MemoizationLeaf):
- """A component that wraps a recharts lib."""
- library = "recharts@2.15.3"
- LiteralAnimationEasing = Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]
- LiteralIfOverflow = Literal["discard", "hidden", "visible", "extendDomain"]
- LiteralShape = Literal[
- "square", "circle", "cross", "diamond", "star", "triangle", "wye"
- ]
- LiteralLineType = Literal["joint", "fitting"]
- LiteralOrientation = Literal["top", "bottom", "left", "right", "middle"]
- LiteralOrientationLeftRightMiddle = Literal["left", "right", "middle"]
- LiteralOrientationTopBottom = Literal["top", "bottom"]
- LiteralOrientationLeftRight = Literal["left", "right"]
- LiteralOrientationTopBottomLeftRight = Literal["top", "bottom", "left", "right"]
- LiteralScale = Literal[
- "auto",
- "linear",
- "pow",
- "sqrt",
- "log",
- "identity",
- "time",
- "band",
- "point",
- "ordinal",
- "quantile",
- "quantize",
- "utc",
- "sequential",
- "threshold",
- ]
- LiteralTextAnchor = Literal["start", "middle", "end"]
- LiteralLayout = Literal["horizontal", "vertical"]
- LiteralPolarRadiusType = Literal["number", "category"]
- LiteralGridType = Literal["polygon", "circle"]
- LiteralPosition = Literal[
- "top",
- "left",
- "right",
- "bottom",
- "inside",
- "outside",
- "insideLeft",
- "insideRight",
- "insideTop",
- "insideBottom",
- "insideTopLeft",
- "insideBottomLeft",
- "insideTopRight",
- "insideBottomRight",
- "insideStart",
- "insideEnd",
- "end",
- "center",
- ]
- LiteralIconType = Literal[
- "line",
- "plainline",
- "square",
- "rect",
- "circle",
- "cross",
- "diamond",
- "star",
- "triangle",
- "wye",
- ]
- LiteralLegendType = Literal[
- "line",
- "plainline",
- "square",
- "rect",
- "circle",
- "cross",
- "diamond",
- "star",
- "triangle",
- "wye",
- "none",
- ]
- LiteralLegendAlign = Literal["left", "center", "right"]
- LiteralVerticalAlign = Literal["top", "middle", "bottom"]
- LiteralStackOffset = Literal["expand", "none", "wiggle", "silhouette"]
- LiteralBarChartStackOffset = Literal["expand", "none", "wiggle", "silhouette", "sign"]
- LiteralComposedChartBaseValue = Literal["dataMin", "dataMax", "auto"]
- LiteralAxisType = Literal["number", "category"]
- LiteralAreaType = Literal[
- "basis",
- "basisClosed",
- "basisOpen",
- "bumpX",
- "bumpY",
- "bump",
- "linear",
- "linearClosed",
- "natural",
- "monotoneX",
- "monotoneY",
- "monotone",
- "step",
- "stepBefore",
- "stepAfter",
- ]
- LiteralDirection = Literal["x", "y"]
- LiteralInterval = Literal["preserveStart", "preserveEnd", "preserveStartEnd"]
- LiteralIntervalAxis = Literal[
- "preserveStart", "preserveEnd", "preserveStartEnd", "equidistantPreserveStart"
- ]
- LiteralSyncMethod = Literal["index", "value"]
|