We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68783b7 commit 223cdf9Copy full SHA for 223cdf9
src/core/plot.ts
@@ -1,7 +1,7 @@
1
import { Chart } from '@antv/g2';
2
import { bind } from 'size-sensor';
3
import { Adaptor } from './adaptor';
4
-import { Options } from '../types';
+import { Options, Data } from '../types';
5
6
/**
7
* 所有 plot 的基类
@@ -81,7 +81,7 @@ export abstract class Plot<O extends Options> {
81
* 更新数据
82
* @param options
83
*/
84
- public changeData(data: any) {
+ public changeData(data: Data) {
85
this.chart.changeData(data);
86
this.chart.render();
87
}
0 commit comments