@toast-ui/chart
Version:
TOAST UI Application: Chart
26 lines (22 loc) • 608 B
TypeScript
import { Align, Point } from '../options';
import { ChartType, LegendIconType } from '../store/store';
import { FontTheme } from '../theme';
export type CheckedLegendType = Pick<LegendData, 'chartType' | 'label' | 'checked'>[];
type LegendData = {
color: string;
label: string;
viewLabel: string;
checked: boolean;
active: boolean;
chartType: ChartType;
iconType: LegendIconType;
useScatterChartIcon?: boolean;
rowIndex: number;
columnIndex: number;
} & Point;
export type LegendModel = {
type: 'legend';
align: Align;
showCheckbox: boolean;
data: LegendData[];
} & FontTheme;