建站资源下载详情
为您免费提供多种建站资源下载,包括网站模板下载、前端插件下载和字体下载!您只需注册为会员即可任意下载!

JQuery绘制平滑线图插件curvedLines.js

来源:易助科技网浏览量:5收藏

简介


curvedLines.js是一款JQuery绘制平滑线图插件,它尝试以更平滑的方式显示折线图。


JQuery绘制平滑线图插件curvedLines.js-示例图


参数说明:


parametertypeeffect
activebooltrue => plugin can be used
applybooltrue => series will be drawn as curved line
monotonicFitbooltrue => uses monotone cubic interpolation (preserve monotonicity)
tensiondouble[0,1] defines the tension parameter of the hermite spline interpolation (only if monotonicFit = false)
nrSplinePointsintdefines the number of sample points (of the spline) in between two consecutive points

(下载的附件中带有DEMO)



使用


1. 引入 jquery.js 和 curvedLines.js 文件


2.  简单使用

假设有2个点x1、x2,x1必须小于x2,同时x1、x2的值必须唯一。


...
lines: { show: true},
curvedLines: {apply: true,}
...



相关链接


官网地址 :  http://curvedlines.michaelzinsmaier.de/

GitHub 地址 :https://github.com/MichaelZinsmaier/CurvedLines