render legend after updating data

This commit is contained in:
Frank Felgner 2021-03-08 14:08:14 +01:00
parent 4a9048f59f
commit 7f26c18ce7

View File

@ -233,6 +233,7 @@ export default class BaseChart {
this.data = this.prepareData(data); this.data = this.prepareData(data);
this.calc(); // builds state this.calc(); // builds state
this.render(this.components, this.config.animate); this.render(this.components, this.config.animate);
this.renderLegend();
} }
render(components=this.components, animate=true) { render(components=this.components, animate=true) {