Browse Source

remove some unused types

pull/1/head
vargburz 2 years ago
parent
commit
fa17465b97
  1. 19
      src/types.ts

19
src/types.ts

@ -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;
}

Loading…
Cancel
Save