Permalink
Browse files

feat(chart): instance update is called with old and new data

  • Loading branch information...
bas080
bas080 committed Nov 21, 2016
1 parent b5cb1a3 commit c1d8c72d15d21c32ed36c2ab4ed6925c337f8028
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/component/chart-element.js
@@ -37,7 +37,7 @@ export class ChartElement {
dimensionsChanged(dimensions) {
if (this.instance) {
this.instance.dimensions = this.dimensions;
this.instance.update();
this.instance.update(this.data, this.data);
}
}
@@ -58,10 +58,10 @@ export class ChartElement {
this.queue.queueTask(this.instance.create.bind(this.instance));
}
dataChanged(data) {
dataChanged(newData, oldData) {
if (this.instance) {
this.instance.data = this.data;
this.instance.update();
this.instance.update(newData, oldData);
}
}

0 comments on commit c1d8c72

Please sign in to comment.