import Chart from '../core/chart'; import { GraphType, GraphOptions, DataItem, VennDataItem } from '../models'; import Canvas from '../renderer/canvas'; import { Renderer } from '../atomComponent'; interface Series { name?: string; data: Array; options: GraphOptions; } export default class Graph implements Renderer { chart: Chart; private canvas; private type; private series; id: string; name: string; graphInstance: any; constructor(chart: Chart, canvas: Canvas, type: GraphType, series: Array); createGraph(): any; render(): any; /** * 绘制折线图 */ private createLine; /** * 绘制条形图(柱状图) */ private createBar; /** * 绘制饼图 */ private createPie; /** * Venn图 */ private createVenn; } export {};