jquery.sparkline icon indicating copy to clipboard operation
jquery.sparkline copied to clipboard

Bezier line graph possible?

Open coax opened this issue 9 years ago • 0 comments

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: tooltip2

coax avatar Jul 29 '15 19:07 coax