import { EChartsOption } from 'echarts'; import { ChartMedia, ChartMode } from '../../tokens/chart'; import { ChartConfig, SeriesConfig } from '../types'; /** * Categorical slots are assigned in fixed order and never generated. Past the * last slot we wrap rather than invent a hue: a chart with more series than * slots should fold the tail into "Other" or facet instead. */ export declare function seriesColor(index: number, series: SeriesConfig, mode: ChartMode): string; export declare function resolveLegend(config: ChartConfig, mode: ChartMode): EChartsOption['legend']; /** * Plot insets. * * `containLabel` reserves room for axis labels but knows nothing about the * legend, so without an explicit inset a bottom legend lands on top of the * category labels. Each edge therefore adds room only when the legend actually * sits there. */ export declare function resolveGrid(config: ChartConfig): EChartsOption['grid']; export declare function baseOption(config: ChartConfig, mode: ChartMode, media: ChartMedia): EChartsOption;