Formatting Y axis numbers in jqPlot

筅森魡賤 提交于 2019-12-13 06:19:53

问题


I managed to format my y axis text to two decimals, but since I'm using very large numbers, is there a way I can display my numbers like:

NAD 100,000,000.00

rather than

NAD 100000000.00

by using tick options

yaxis: { 
           tickOptions:{formatString:'NAD %.2f'} 
        } 

回答1:


This actually does....

tickOptions:{
               formatString:"NAD %'d "
            } 


来源:https://stackoverflow.com/questions/16436132/formatting-y-axis-numbers-in-jqplot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!