High Charts Decimal Point and Group Separator

High Charts Decimal Point and Group Separator

  

Dears,

How can I change the decimal point and group separator in a highcharts scripts? I already tried the following declaration:

"Highcharts.setOptions({
    lang: {
        decimalPoint: '.',
        thousandsSep: ',',
    }
});"

It works running the JSFIDDLE script in the Highcharts site. But I wrote it in my script running with forge components HighCharts Include in my application, and does not work.

Thank you,

Roberto


Hi Roberto,

Are you using the AdvanceFormat parameter? 

You can only use chart options  (Highcharts.chart({...}). in the Advanced Format Parameter

To add Highcharts.setOptions({}} you have to use Javacript:

  1. Add an handler action to the OnRender event for your screen.
  2. In that action add a Javascript statement:

"Highcharts.setOptions({

    lang: {

        decimalPoint: '.',

        thousandsSep: ',',

    }

});"


Did it worked?


Hi Margarida,

I'm not using the AdvanceFormat parameter, because I'm using the forge component HighChartsSimple. It is a component that you pass a HighCharts script and it render the graph. This script can be tested directly in the HC site (highcharts.com), using the option JSFIDDLE. Running in the site, the comands works, but when the same script run in my application through the component, it doesn't work.

Thank You,

Roberto