1 Star 0 Fork 0

soulCoke / CurvedLines

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
exampleFillMultiAxis.txt 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
### html ###
<h4>CurvedLines with multi axis and fill</h4>
<div id="flotContainer" class="chart-style"></div>
### css ###
.chart-style {
width: 500px;
height: 300px;
}
### javascript ###
//data
var d1 = [[20,20], [42,60], [54, 20], [80,80]];
var d2 = [[20,700], [80,300]];
//flot options
var options = {
series: {
curvedLines: {active: true}
},
yaxes: [{ min:10, max: 90}, {position: 'right'}]
};
//plotting
$.plot($("#flotContainer"),[
{
data: d1,
lines: { show: true, fill: true, fillColor: "#C3C3C3", lineWidth: 3},
//curve the line (old pre 1.0.0 plotting function)
curvedLines: {
apply: true,
legacyOverride: true // <- use legacy plotting function
}
}, {
data: d1,
points: { show: true }
}, {
data: d2,
yaxis: 2,
lines: { show: true, lineWidth: 3},
}, {
data: d2,
yaxis: 2,
points: { show: true }
}
], options);
1
https://gitee.com/yuanliyang/CurvedLines.git
git@gitee.com:yuanliyang/CurvedLines.git
yuanliyang
CurvedLines
CurvedLines
master

搜索帮助