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
I working on updating all chart properties using amcharts angular 5. I changed successfully properties such as backgroundColor ect.. using amChartsService but on working with balloons the balloon color and background color aren't changing. I used to destroy the chart and re-create it, but it's not the best way to do it. I believe that there is a better way to do it there's my code.
this.amChartsService.updateChart(this.currentChart, () => {
this.currentChart['balloon']['color'] = value;
});
on the console.log(this.currentChart.balloon.color); the value already been changed but not in the chart.
Why i'm getting this ? is it a bugg that should be reported or I'm doing something wrong ??
Thanks.
The text was updated successfully, but these errors were encountered:
This is exactly what i'm doing and the color in the object is changing but not in the chart for other properties the chart is updated but not for the balloon properties that's quite strange
New comment from Zendesk by Anthony Piris on ticket 34046.
(replying here will automatically notify amCharts support agent)
Hi there,
Do you happen to have a chart cursor enabled? This might be due to a bug within the chart library itself. If you have a chart cursor enabled, updating the balloon through the global balloon property (this.chart.balloon.color = ...;) doesn't work, however if you update the balloon object inside the graph object(s), the update will work, i.e.
I working on updating all chart properties using amcharts angular 5. I changed successfully properties such as backgroundColor ect.. using amChartsService but on working with balloons the balloon color and background color aren't changing. I used to destroy the chart and re-create it, but it's not the best way to do it. I believe that there is a better way to do it there's my code.
this.amChartsService.updateChart(this.currentChart, () => {
this.currentChart['balloon']['color'] = value;
});
on the console.log(this.currentChart.balloon.color); the value already been changed but not in the chart.
Why i'm getting this ? is it a bugg that should be reported or I'm doing something wrong ??
Thanks.
The text was updated successfully, but these errors were encountered: