buster/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/interfaces.ts

24 lines
898 B
TypeScript

import type { BusterChartProps, ChartEncodes } from '@/api/asset_interfaces/metric/charts';
import type { DatasetOptionsWithTicks } from '../../../chartHooks';
export interface SeriesBuilderProps {
datasetOptions: DatasetOptionsWithTicks;
columnSettings: NonNullable<BusterChartProps['columnSettings']>;
colors: string[];
columnLabelFormats: NonNullable<BusterChartProps['columnLabelFormats']>;
xAxisKeys: ChartEncodes['x'];
sizeOptions: {
key: string;
minValue: number;
maxValue: number;
} | null;
scatterDotSize: BusterChartProps['scatterDotSize'];
lineGroupType: BusterChartProps['lineGroupType'];
barShowTotalAtTop: BusterChartProps['barShowTotalAtTop'];
barGroupType: BusterChartProps['barGroupType'];
yAxisKeys: string[];
y2AxisKeys: string[];
// selectedChartType: BusterChartProps['selectedChartType'];
// categoryKeys: ScatterAxis['category'];
}