I have a problem that my decimal delimiter in the primefaces chart component is set to be .
, how do I change to ,
?
I have a problem that my decimal delimiter in the primefaces chart component is set to be .
, how do I change to ,
?
To make the change, you need to create a method in javascript that changes the decimals:
function formatChart() {
$.jqplot.sprintf.thousandsSeparator = '.';
$.jqplot.sprintf.decimalMark = ',';
}
Then associate this extension function with the graph created by java:
chartModel = new BarChartModel();
chartModel.setExtender("formatChart");