You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I noticed that the legend does not update when chart changes. Not sure if this is intended but I solved this with a simple addition to updateChart:
updateChart: function(){
var chart = this.get('chart');
var data = this.get('data');
var redraw = ChartDataUpdater.create({
data: data,
chart: chart
}).updateByType();
if (redraw) {
this.willDestroyElement();
this.didInsertElement();
} else {
chart.update();
}
if (this.get('legend')) {
this.$().parent().children('[class$=legend]').remove();
var legend = chart.generateLegend();
this.$().parent().append(legend);
}
}
If you agree I can make a test and send a pull request.
The text was updated successfully, but these errors were encountered:
Hello. I noticed that the legend does not update when chart changes. Not sure if this is intended but I solved this with a simple addition to updateChart:
If you agree I can make a test and send a pull request.
The text was updated successfully, but these errors were encountered: