@visactor/vchart
Version:
charts lib based @visactor/VGrammar
18 lines (17 loc) • 914 B
TypeScript
import type { Functional } from '@visactor/vrender-components';
import type { ILabelSpec, IMultiLabelSpec } from '../../component/label/interface';
import type { IBarSeriesSpec, IBarSeriesTheme } from '../bar/interface';
import type { SeriesMarkNameEnum } from '../interface/type';
export interface IMosaicSeriesSpec extends Omit<IBarSeriesSpec, 'type' | 'label'> {
type: 'mosaic';
[SeriesMarkNameEnum.label]?: IMultiLabelSpec<Omit<ILabelSpec, 'position'> & {
filterByGroup?: {
field: string;
type?: 'min' | 'max';
filter?: (d: any) => boolean;
};
position?: Functional<'outside' | 'top' | 'bottom' | 'left' | 'right' | 'inside' | 'inside-top' | 'inside-bottom' | 'inside-right' | 'inside-left' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'>;
}>;
bandWidthField?: string;
}
export type IMosaicSeriesTheme = IBarSeriesTheme;