import { TimeSerie, Options } from '@chartwerk/core'; export type BarSerieParams = { matchedKey: string; colorFormatter: (serie: BarTimeSerie) => string; } export type BarTimeSerie = TimeSerie & Partial; 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; } export type BarOptions = Options & Partial; export type RowValues = { key: number, values: number[], additionalValues: (null | number)[], // values in datapoints third column colors: string[] }