I'm using flotr to graph 90 data sets. On average, only two of the 90 sets of data will actually produce a graphable line. The other 88 or so will have y values so low that they will barely peak above the x axis. Here is an example...
My problem is that I don't know what data set those two lines are. I could make a legend, but that legend would be huge because there are about 90 data sets. So I was wondering if flotr has a function to label these data sets when the mouse hovers over graphed data for that data set. Does such a function exist? Thanks.
Okay, I found my answer. I saw this example...
http://phenxdesign.net/projects/flotr/examples/prototype/mouse-tracking.html
This one uses tracking support but it only shows the x and y values. I saw this line....
and changed it to this...
Then I specified a data label for each data set and passed them to Flotr.draw in an associative array. I did this by changing this...
to this...
Below is an example of the changes I made. Now the mouse hover shows x and y values and whatever data label you enter.
Before:
After: