做网站|网站建设,就上易助科技网

前端技术文档及相关资料下载

关于前端html、css、js等技术上的各种疑难棘手问题的解决方案探讨及相关资料下载!

JQuery绘制平滑线图插件curvedLines.js
来源:易助科技网浏览量:3收藏

简介

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

参数说明:

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,
} ...


相关链接

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