Open elsonel opened 1 year ago
Alpha should be set to 0.5 if you want to avoid loops. Tension = 0 gives you rounded curves, while tension = 1 should be close to linear interpolation.
Hi @kjerandp, thanks for all the work you've done on the library.
Seems like I got the domain for tension reversed.
Does Tension = 0.5, and Alpha = 0.5 mean a rounded curve without any loops? Seems like I'm still occasionally getting loops with those parameters.
Alpha @ 0.5 is the important one. Tension may be left at 0, but may be increased if you want tighter curves.
Hello,
I'm still getting loops and rounded curves if I try to draw a graph using the points generated in getPoints() even though tension and alpha are set to 0
This is the code I used to draw the graph using React.