Type aliases
AnimateProps
Animate
Props: { children: ReactNode; className?: string; duration?: number; ease?: ((num: number) => number) | keyof typeof eases; interpolateProps?: keyof CommonProps[]; logFPS?: boolean; tag?: string; onCancel?: any; onEnd?: any; onStart?: any } & CommonProps
BarParams
Bar
Params: { point: Point; pointIndex: number; props: BarsProps; series: Series; seriesIndex: number }
Type declaration
-
-
pointIndex: number
-
-
-
seriesIndex: number
ChartProps
Chart
Props: CommonProps & { children: ReactNode; height?: Size; layerHeight?: number; layerWidth?: number; tag?: string; viewBox?: string; width?: Size } & Record<string, any>
CloudLabel
Cloud
Label: Point & { pointIndex: number; seriesIndex: number; size: number; text: string }
CloudLabelParams
Type declaration
-
-
-
pointIndex: number
-
-
-
seriesIndex: number
CloudProps
Cloud
Props: { font?: string | ((params: CloudLabel, index: number) => string); fontStyle?: FontStyle | ((params: CloudLabel, index: number) => FontStyle); fontWeight?: FontWeight | ((params: CloudLabel, index: number) => FontWeight); labelAttributes?: Record<string, unknown> | ((params: CloudLabelParams) => Record<string, unknown>); labelStyle?: Style | ((params: CloudLabelParams) => Style); labelVisible?: boolean | ((params: CloudLabelParams) => boolean); maxFontSize?: number; minFontSize?: number; padding?: number | ((params: CloudLabel, index: number) => number); rotate?: number | ((params: CloudLabel, index: number) => number); seriesAttributes?: Record<string, unknown> | ((params: CloudSeriesParams) => Record<string, unknown>); seriesStyle?: Style | ((params: CloudSeriesParams) => Style); seriesVisible?: boolean | ((params: CloudSeriesParams) => boolean); spiral?: "archimedean" | "rectangular" | ((size: [number, number]) => (t: number) => [number, number]); timeInterval?: number; random?: any } & GraphicProps
ColorScale
ColorScale: (param: any) => string
Type declaration
-
-
Parameters
Returns string
Colors
Colors
: keyof typeof schemeMap | string[] | string[][] | ColorScale
CommonProps
Common
Props: SeriesProps & { layerHeight?: number; layerWidth?: number; scaleX?: ScaleX; scaleY?: ScaleY; seriesIndex?: number | number[] | ((series: Series, index: number) => boolean) }
Coords
Coords: { x: number; y: number }
DotParams
Dot
Params: { point: Point; pointIndex: number; props: DotsProps; series: Series; seriesIndex: number }
Type declaration
-
-
pointIndex: number
-
-
-
seriesIndex: number
DotRenderProps
Dot
RenderProps: { color: ColorScale; dotAttributes: Record<string, any>; dotStyle: Style; key?: string | number; point: Point; pointIndex: number; props: DotsProps; seriesIndex: number }
Type declaration
-
-
dotAttributes: Record<string, any>
-
-
Optional key?: string | number
-
-
pointIndex: number
-
-
seriesIndex: number
DotTypeParams
Dot
TypeParams: DotParams & { dotType: DotType | DotType[] }
DotsProps
Dots
Props: { circleAttributes?: Record<string, any> | ((params: DotParams) => Record<string, any>); circleRadius?: number | string | ((params: DotParams) => number | string); dotAttributes?: Record<string, any> | ((params: DotTypeParams) => Record<string, any>); dotStyle?: Style | ((params: DotTypeParams) => Style); dotType?: DotType | DotType[] | ((params: DotParams) => DotType | DotType[]); dotVisible?: boolean | ((params: DotParams) => boolean); ellipseAttributes?: Record<string, any> | ((params: DotParams) => Record<string, any>); ellipseRadiusX?: number | string | ((params: DotParams) => number | string); ellipseRadiusY?: number | string | ((params: DotParams) => number | string); groupStyle?: Style | ((params: DotParams) => Style); label?: ReactNode | ((params: DotParams) => ReactNode); labelAttributes?: Record<string, any> | ((params: DotParams) => Record<string, any>); path?: string | ((params: DotParams) => string); pathAttributes?: Record<string, any> | ((params: DotParams) => Record<string, any>); seriesAttributes?: Record<string, any> | ((params: DotSeriesParams) => Record<string, any>); seriesStyle?: Style | ((params: DotSeriesParams) => Style); seriesVisible?: boolean | ((params: DotSeriesParams) => boolean); symbolAttributes?: Record<string, any> | ((params: DotParams) => Record<string, any>); symbolType?: DotSymbolType | ((params: DotParams) => DotSymbolType); dotRender?: any } & GraphicProps
DropShadowProps
DropShadowProps: { blurDeviation?: number; blurIn?: "SourceAlpha" | "SourceGraphic" | "BackgroundImage" | "BackgroundAlpha" | "FillPaint" | "StrokePaint"; dx?: number; dy?: number; id: string }
Type declaration
-
Optional blurDeviation?: number
-
Optional blurIn?: "SourceAlpha" | "SourceGraphic" | "BackgroundImage" | "BackgroundAlpha" | "FillPaint" | "StrokePaint"
-
Optional dx?: number
-
Optional dy?: number
-
id: string
FontStyle
FontStyle: "normal" | "italic" | "oblique" | "inherit"
FontWeight
FontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"
GradientProps
Gradient
Props: { center?: [Size, Size]; children?: ReactNode; cx?: Size; cy?: Size; focalPoint?: [Size, Size]; from?: [Size, Size]; fx?: Size; fy?: Size; gradientTransform?: string; gradientUnits?: "userSpaceOnUse" | "objectBoundingBox"; id?: string; idPrefix?: string; r?: Size; radius?: Size; spreadMethod?: "pad" | "repeat" | "reflect"; to?: [Size, Size]; type?: "linear" | "radial"; x1?: Size; x2?: Size; y1?: Size; y2?: Size }
Type declaration
-
Optional center?: [Size, Size]
-
Optional children?: ReactNode
-
Optional cx?: Size
-
Optional cy?: Size
-
Optional focalPoint?: [Size, Size]
-
Optional from?: [Size, Size]
-
Optional fx?: Size
-
Optional fy?: Size
-
Optional gradientTransform?: string
-
Optional gradientUnits?: "userSpaceOnUse" | "objectBoundingBox"
-
Optional id?: string
-
Optional idPrefix?: string
-
Optional r?: Size
-
Optional radius?: Size
-
Optional spreadMethod?: "pad" | "repeat" | "reflect"
-
Optional to?: [Size, Size]
-
Optional type?: "linear" | "radial"
-
Optional x1?: Size
-
Optional x2?: Size
-
Optional y1?: Size
-
Optional y2?: Size
HandlersProps
Handlers
Props: CommonProps & { children: ReactNode; className?: string; distance?: "x" | "y"; onMouseLeave?: React.MouseEventHandler; optimized?: boolean; sensitivity?: number; onClick?: any; onMouseMove?: any }
MouseEvent
Mouse
Event: { clientX: number; clientY: number; closestPoints: Point[]; originalEvent: React.MouseEvent; scaleX: ScaleContinuousNumeric<any, any>; scaleY: ScaleContinuousNumeric<any, any>; x: number; y: number }
Type declaration
-
clientX: number
-
clientY: number
-
closestPoints: Point[]
-
originalEvent: React.MouseEvent
-
scaleX: ScaleContinuousNumeric<any, any>
-
scaleY: ScaleContinuousNumeric<any, any>
-
x: number
-
y: number
NormalizedSeries
Normalized
Series: Omit<Series, "data"> & { data: Point[] }
PieParams
Pie
Params: { point: Point; pointIndex: number; props: PiesProps; series: Series; seriesIndex: number }
Type declaration
-
-
pointIndex: number
-
-
-
seriesIndex: number
Point
Point
: { color
?: string; opacity
?: number; style
?: Style; x
?: number; y
: number } & Record<string, any>
RadialLinesProps
Radial
LinesProps: { asAreas?: boolean; endAngle?: number; innerRadius?: Size; interpolation?: keyof typeof curves | CurveFactory; lineAttributes?: Record<string, any> | ((params: RadialLineParams) => Record<string, any>); lineStyle?: Style | ((params: RadialLineParams) => Style); lineVisible?: boolean | ((params: RadialLineParams) => boolean); lineWidth?: Size | ((params: RadialLineParams) => Size); position?: Position; seriesAttributes?: Record<string, any> | ((params: RadialLineParams) => Record<string, any>); seriesStyle?: Style | ((params: RadialLineParams) => Style); seriesVisible?: boolean | ((params: RadialLineParams) => boolean); startAngle?: number } & GraphicProps
ScaleX
ScaleX: { direction?: number; paddingEnd?: number; paddingLeft?: number; paddingRight?: number; paddingStart?: number; swap?: boolean; factory?: any }
Type declaration
-
Optional direction?: number
-
Optional paddingEnd?: number
-
Optional paddingLeft?: number
-
Optional paddingRight?: number
-
Optional paddingStart?: number
-
Optional swap?: boolean
-
factory: function
- factory(props: CommonProps): ScaleContinuousNumeric<any, any, never>
-
Parameters
Returns ScaleContinuousNumeric<any, any, never>
ScaleY
ScaleY: { direction?: number; paddingBottom?: number; paddingEnd?: number; paddingStart?: number; paddingTop?: number; swap?: boolean; factory?: any }
Type declaration
-
Optional direction?: number
-
Optional paddingBottom?: number
-
Optional paddingEnd?: number
-
Optional paddingStart?: number
-
Optional paddingTop?: number
-
Optional swap?: boolean
-
factory: function
- factory(props: CommonProps): ScaleContinuousNumeric<any, any, never>
-
Parameters
Returns ScaleContinuousNumeric<any, any, never>
Series
Series
: { color
?: string; data
: (number | [number, number] | Point)[]; name
?: string; opacity
?: number; style
?: Style }
Type declaration
-
Optional color?: string
-
data: (number | [number, number] | Point)[]
-
Optional name?: string
-
Optional opacity?: number
-
Optional style?: Style
SeriesProps
Series
Props: { maxX?: number; maxY?: number; minX?: number; minY?: number; series?: Series[]; seriesNormalized?: boolean } & Record<string, any>
Size
Size: number | string
Style
Style: Record<string, any>
Tick
Tick
: Partial<{ label
: ReactNode | (() => ReactNode); labelAttributes
: Record<string, any>; labelStyle
: Style; lineAttributes
: Record<string, any>; lineLength
: Size; lineOffset
: Size; lineStyle
: Style; x
: number; y
: number }>
TickParams
Tick
Params: { index: number; props: TicksProps; tick: Tick; ticksLength: number }
Type declaration
-
index: number
-
-
-
ticksLength: number
TicksDefinition
TicksDefinition: { distance?: number; maxTicks?: number; minDistance?: number }
Type declaration
-
Optional distance?: number
-
Optional maxTicks?: number
-
Optional minDistance?: number
TitleProps
Title
Props: { children: ReactNode | ((props: TitleProps) => ReactNode); className?: string; height?: number; layerHeight?: number; layerWidth?: number; position?: Position; series?: Series[]; style?: Style; textAnchor?: "start" | "middle" | "end"; width?: number }
Type declaration
-
children: ReactNode | ((props: TitleProps) => ReactNode)
-
Optional className?: string
-
Optional height?: number
-
Optional layerHeight?: number
-
Optional layerWidth?: number
-
Optional position?: Position
-
Optional series?: Series[]
-
Optional style?: Style
-
Optional textAnchor?: "start" | "middle" | "end"
-
Optional width?: number
TransformMethod
TransformMethod: BaseMethod | { method: BaseMethod; options: any }
For type=radial