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.
29 lines
895 B
29 lines
895 B
import { TimeSerie, Options } from '@chartwerk/core'; |
|
|
|
export type BarSerieParams = { |
|
matchedKey: string; |
|
colorFormatter: (serie: BarTimeSerie) => string; |
|
} |
|
export type BarTimeSerie = TimeSerie & Partial<BarSerieParams>; |
|
export type BarOptionsParams = { |
|
renderBarLabels: boolean; |
|
stacked: boolean; |
|
barWidth: number; // width in x axis unit |
|
maxBarWidth: number; // in px |
|
minBarWidth: number; // in px |
|
matching: boolean; |
|
opacityFormatter: (data: RowValues) => number; |
|
annotations: { |
|
key: string, // matchedKey from series |
|
// TODO: add enum with "triangle" option |
|
color: string, |
|
}[]; |
|
} |
|
export type BarOptions = Options & Partial<BarOptionsParams>; |
|
export type RowValues = { |
|
key: number, |
|
values: number[], |
|
additionalValues: (null | number)[], // values in datapoints third column |
|
colors: string[], |
|
serieTarget: string[], |
|
}
|
|
|