Scatter Pod
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
661 B

import { TimeSerie, Options } from '@chartwerk/core';
type ScatterDataParams = {
pointType: PointType;
lineType: LineType;
pointSize: number;
colorFormatter?: ColorFormatter
}
type ScatterOptionsParams = {
voronoiRadius: number;
circleView: boolean;
renderGrid: boolean;
}
export type ScatterData = TimeSerie & Partial<ScatterDataParams>;
export type ScatterOptions = Options & Partial<ScatterOptionsParams>;
export enum PointType {
NONE = 'none',
CIRCLE = 'circle',
RECTANGLE = 'rectangle'
}
export enum LineType {
NONE = 'none',
SOLID = 'solid',
DASHED = 'dashed'
}
export type ColorFormatter = (datapoint: number[]) => string;