|
|
|
@ -3,7 +3,6 @@ import { Serie, Options } from '@chartwerk/core';
|
|
|
|
|
export type BarSerieParams = { |
|
|
|
|
matchedKey: string; |
|
|
|
|
colorFormatter: (serie: BarSerie) => string; |
|
|
|
|
label: BarLabel; |
|
|
|
|
} |
|
|
|
|
export type BarSerie = Serie & Partial<BarSerieParams>; |
|
|
|
|
export type BarAdditionalOptions = { |
|
|
|
@ -33,21 +32,3 @@ export type RowValues = {
|
|
|
|
|
colors: (string | ((data: any) => string))[], |
|
|
|
|
serieTarget: string[], |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export enum BarLabelPosition { |
|
|
|
|
TOP = 'top', |
|
|
|
|
CENTER = 'center', |
|
|
|
|
BOTTOM = 'bottom', |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export enum BarLabelPlaceholder { |
|
|
|
|
TRIANGLE = 'triangle', |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export type BarLabel = { |
|
|
|
|
position: BarLabelPosition; |
|
|
|
|
offset: number; |
|
|
|
|
value: string; |
|
|
|
|
valueFormatter: (data: any) => string; |
|
|
|
|
placeholder: BarLabelPlaceholder; |
|
|
|
|
} |
|
|
|
|