Does anyone know how one can set the label or title of an axis in Flot?
I’ve read the API but it doesn’t seem to have that feature…
Thanks 🙂
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.
There are none built-in to flot.
Your best bet is to do it yourself via positioned divs, but if you are adventurous, you can look at the issue (Or the original issue) and see how other people have dealt with it.
Specifically, there are two people who have recently made label-related revisions to flot:
https://github.com/RuiPereira/flot/raw/axislabels/jquery.flot.axislabels.js
http://github.com/xuanluo/flot-axislabels