UNPKG

@formant/ava

Version:

A framework for automated visual analytics.

15 lines (14 loc) 667 B
import type { Data } from '../../common/types'; import type { ChartKnowledge } from '../../ckb'; import type { BasicDataPropertyForAdvice } from '../ruler'; /** * Convert chartType + data to antv-spec * recommend chart with specific data mapping * * @param chartType chart type * @param data input data [ { col1: ..., col2: ... } ] * @param dataProps data property for advisor derived by data * @param chartKnowledge chart knowledge of a singble chart * @returns spec or null */ export declare function getChartTypeSpec(chartType: string, data: Data, dataProps: BasicDataPropertyForAdvice[], chartKnowledge?: ChartKnowledge): import("../types").G2ChartSpec;