curvedLines.js是一款JQuery绘制平滑线图插件,它尝试以更平滑的方式显示折线图。
![]() |
---|
参数说明:
parameter | type | effect |
---|---|---|
active | bool | true => plugin can be used |
apply | bool | true => series will be drawn as curved line |
monotonicFit | bool | true => uses monotone cubic interpolation (preserve monotonicity) |
tension | double | [0,1] defines the tension parameter of the hermite spline interpolation (only if monotonicFit = false) |
nrSplinePoints | int | defines the number of sample points (of the spline) in between two consecutive points |
假设有2个点x1、x2,x1必须小于x2,同时x1、x2的值必须唯一。
...
lines: { show: true},
curvedLines: {apply: true,}
...
官网地址 : http://curvedlines.michaelzinsmaier.de/
GitHub 地址 :https://github.com/MichaelZinsmaier/CurvedLines