Skip to content

Commit 223cdf9

Browse files
author
liufu.lf
committed
fix: conversation
1 parent 68783b7 commit 223cdf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/plot.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Chart } from '@antv/g2';
22
import { bind } from 'size-sensor';
33
import { Adaptor } from './adaptor';
4-
import { Options } from '../types';
4+
import { Options, Data } from '../types';
55

66
/**
77
* 所有 plot 的基类
@@ -81,7 +81,7 @@ export abstract class Plot<O extends Options> {
8181
* 更新数据
8282
* @param options
8383
*/
84-
public changeData(data: any) {
84+
public changeData(data: Data) {
8585
this.chart.changeData(data);
8686
this.chart.render();
8787
}

0 commit comments

Comments
 (0)