`

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)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics