Closed wkungu closed 4 years ago
Hi @wkungu
Setting the dataLabel.formatter
such a way won't work. Instead, you can either:
change the format of data labels through the format
property: format: symbol + '{y}'
use the customCode
argument to modify the chart options just before the chart creation:
customCode: function (options) {
const symbol = '¥';
options.series[0].dataLabels.formatter = function() {
return symbol + '' + this.y;
}
}
use the callback
along with the allowFileResources
in the exportOptions
.
{
...
allowFileResources: true,
callback: '<path_to_callback>',
...
}
Thank you. Worked like a charm!
Expected behaviour
Actual behaviour
Reproduction steps
I have web app producing the expected behaviour on the currency symbols. However this doesn't seem to work on the export-server. I have installed the fonts on my server (Im using Open sans) which I thought would solve this issue. The font seems to apply on the labels so Im curious why it wont work on the currency symbols.
Here is what i'm using to get chart;