jquery.sparkline
jquery.sparkline copied to clipboard
Bezier line graph possible?
Hey all,
did anyone try to draw Bézier curves in line chart? It would look great with smoothened edges like chart.js (I don't want to use that plugin due to bad tooltip support)
I guess this line:
context.moveTo(path[0][0] + 0.5, path[0][1] + 0.5);
should be replaced with something like this:
context.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
and it should look like this: