Open coax opened 9 years ago
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:
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](https://cloud.githubusercontent.com/assets/189817/8847108/1102fa76-312c-11e5-84ef-039653e5fe34.gif)