I would like some advice to find a good library to draw line chart. The tool I\'
ID: 652819 • Letter: I
Question
I would like some advice to find a good library to draw line chart. The tool I'm working on was using Chartjs, but I have to add some features, and I'm not sure they are all possible with chartjs...
Here is a list of what I should be able to do :
+ Add/remove datasets
+ Only 1 X-axis and 1 Y-axis covering all values
+ Get points for the data, and get the exact value when mouseover
+ Have datasets which have not the exact same labels (i.e. data 1 have value for [19,20,21,22,23], data 2 have value for [24,25,26,27,28], data 3 have value for [22,23,24]) Lines must stop if there is no value. There won't be any blank on label (no 22,25).
Please ask me if I'm not clear enough.
Explanation / Answer
I think jqPlot, with the right combination of plugins, will do what you want: http://www.jqplot.com/index.php
Their Cumulative Density Function example demonstrates:
1.Adding/removing data sets
2.Only one x & y axis
3.Exact value on mouseover
4.Line stops where there is no value
Their line charts examples show charts where there are points on the line. (I can't post a third URL but their examples list is easy to find.)