Skip to content

Commit

Permalink
fix: 临时解决 changeData 无效问题 (#1504)
Browse files Browse the repository at this point in the history
Co-authored-by: liufu.lf <liufu.lf@antfin.com>
Co-authored-by: hustcc <i@hust.cc>
  • Loading branch information
3 people authored Aug 31, 2020
1 parent 047dbcb commit 58032dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/plot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,12 @@ export abstract class Plot<O extends PickOptions> extends EE {
* @param options
*/
public changeData(data: any) {
this.chart.changeData(data);
// 临时方案,会在 G2 做处理
this.update({
...this.options,
data,
});
// this.chart.changeData(data);
}

/**
Expand Down

0 comments on commit 58032dd

Please sign in to comment.