CurvedLines is a plugin for flot, which displays lines in a smooth curved way. This is achieved by adding additional points in between the "real" data points. See the test files for examples.
Feel free to add additional features and correct errors.
...
...
@@ -6,7 +6,7 @@ Feel free to add additional features and correct errors.
Regards Michael
## Hermite Splines v1.x.y ##
### Hermite Splines v1.x.y ###
With the new version 1.x.y the original curve computation (nergal.dev's code) has been replaced by a new algorithm which computes hermite splines.
In general the result should be closer to the data however the old implementation is still accessible through the legacyOverride option.
...
...
@@ -16,10 +16,11 @@ and I hope that the new nrSplinePoints needs less manual adjustment (basically o
The old fit option has been replaced with monotonicFit, which if set, enforces the use of the Fritsch-Carlson method (anti wiggle no overshooting / undershooting).
| fit | bool | true => forces the max,mins of the curve to be on the datapoints |
| curvePointFactor | int | defines how many "virtual" points are used per "real" data point to emulate the curvedLines (points total = real points * curvePointFactor) |
| fitPointDist | int | defines the x axis distance of the additional two points that are used to enforce the min max condition. |