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
if (this.chartist) {
this.chartist.update(data, options, responsiveOptions);
} else {
this.chartist = new Chartist[type](this.chart, data, options, responsiveOptions);
...
This bit of code doesn't allow the chart type to change if the prop actually changes. I spent awhile trying to figure out why if I change the type the chart doesn't re-render. I removed the this.chartist.update(data, options, responsiveOptions); part along with the logic and it fixed it.