UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

19 lines (18 loc) 619 B
import type { ISeries } from '../../../../series/interface'; import type { StringOrNumber } from '../../../../typings'; export interface IDiscreteLegendData { key: string; originalKey: any; style: (attribute: string) => any; } export interface IDiscreteLegendDataMakeOption { series: () => ISeries[]; seriesField: (s: ISeries) => string; } export interface IDiscreteLegendFilterOption { series: ISeries; selected: () => StringOrNumber[]; field: () => string; data: () => StringOrNumber[]; customFilter?: (data: any, selectedRange: StringOrNumber[], datumField: string) => any; }