Is there a way to change the text at each point of a jqPlot graph. So instead of each point displaying its normal value, can it be changed to something else. Each point on my graph represents different data. For example I want to display the amount of students that took tests over the year broken down by month. But instead of the tool tip saying the amount I want it to show the average test result.
Is it possible to change the tooltips text?
Thanks
First of all this is not the exact solution for your question, but it can be used as a possible work-around.
I have achieved a similar result on jqplot using the
pointLabelsplugin.Here’s what you can do,
The pointLabels plugin displays the content of the data array which is used to draw the chart. But there is an option to mention which index of the data array should be used to display the point label.
So what you can do is for each point in your data array you can include whatever the detail you want to be displayed in the chart.
But keep in mind that this does not appear as a tooltip, instead as a point label.
I created a small example for you to understand this.
http://jsfiddle.net/GayashanNA/q9mH8/
I had also created a blog post describing what i did on my project, read it here to get some more information if you think this solution can help you.
http://gayashan-a.blogspot.de/2012/10/tracking-mouse-position-on-your_2.html