Is there a way to have Flot make axis numbers be comma-separated?
So for example, instead of 1000000 have 1,000,000
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do that by using the tickFormatter property of the axis.
Source: http://people.iola.dk/olau/flot/API.txt (under “Customizing the axes”)
This page has a function to format numbers with commas: http://www.mredkj.com/javascript/nfbasic.html
For Example on the yaxis: