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.
|
|
|
import { TimeSerie, Options } from '@chartwerk/core';
|
|
|
|
|
|
|
|
export enum Stat {
|
|
|
|
CURRENT = 'current',
|
|
|
|
MIN = 'min',
|
|
|
|
MAX = 'max',
|
|
|
|
TOTAL = 'total'
|
|
|
|
}
|
|
|
|
|
|
|
|
export type Stop = {
|
|
|
|
color: string,
|
|
|
|
value: number | null
|
|
|
|
};
|
|
|
|
|
|
|
|
export type GaugeTimeSerie = TimeSerie;
|
|
|
|
|
|
|
|
export type GaugeOptionsParams = {
|
|
|
|
innerRadius: number;
|
|
|
|
outerRadius: number;
|
|
|
|
// TODO: minValue
|
|
|
|
maxValue: number;
|
|
|
|
stops: { color: string , value: number }[];
|
|
|
|
defaultColor: string;
|
|
|
|
stat: Stat;
|
|
|
|
}
|
|
|
|
export type GaugeOptions = Options & Partial<GaugeOptionsParams>;
|