We are making use of Highcharts for our data visualization application which has about 20 or charts. The charts are showing cost information and we are adding the ability for users to change currency. Now because we can change currency we would like to change our prefix to on yaxis. More specifically we change our label formatter option using
HighCharts.setOptions({
yAxis: {
labels: {
formatter: function () {
return `${currency} ${formatCostNumberStr(this.value)}`;
}
}
}
})
currency is passed into the function which gets called everytime currency changes.
The issue is that these new options will not take place until the charts rerender - which is fine as long as the data is different but if the data remains the same (i.e. values remain same) the charts yaxis will not change. Is there a way to rerender all the charts at the same time?