Some months ago, while I was working on a new version of trackthisfor.me, I tried to find the best library for timeseries line charts, but even if there are dozens of great libraries (c3.js, flot, chartjs just to name a few) none of these was perfect for my needs and I ended up building another one.
The goal was to have a <10kb library (5.6kb as of now), easy to download also on mobile and that works well both with jquery and zepto.
Although the dimension is small, it supports some customizations such as:
– straight/curve lines;
– fillable lines;
– multiple lines in the same chart;
– tooltip callback support;
– custom max/min X Y values;
– goal value;
There is a lot of stuff missing (such as legends, and a non-time x-axis), but i didn’t want to add a lot of bloat. If you want to have a full chart library, you’d rather want to use flot or d3.js. 🙂
The usage is really easy:
var data= [