axis ticks with thousands separators in jqplot

jqPlot http://www.jqplot.com/

 

Display large numbers with thousands separators, e.g. (1234567 => "1,234,567").  

Use the "'" (that's a single quote , ') format specifier to have thousands separation:

    yaxis : {
        tickOptions: {formatString: "%'d"}
    }
you can control the separator character like so:
$.jqplot.sprintf.thousandsSeparator = ',';

Java:
String.format("%,d", 1234567)

你可能感兴趣的:(jqplot,formatString)