0👍
This will be very hard to achieve with Bezier curves (lineTension !== 0
). You will need to invest some time to learn the math for that.
Luckily if you don’t need Bezier curves, so only staight lines between your data points, there already is an answer on StackOverflow, right here!
Source:stackexchange.com