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.
28 lines
617 B
28 lines
617 B
import { Serie, Options } from '@chartwerk/core'; |
|
|
|
|
|
type ScatterDataParams = { |
|
pointType: PointType; |
|
lineType: LineType; |
|
pointSize: number; |
|
colorFormatter?: ColorFormatter |
|
} |
|
type ScatterOptionsParams = { |
|
voronoiRadius: number; |
|
} |
|
export type ScatterData = Serie & 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[], pointIdx) => string;
|
|
|