dchart-pie-crossover-one-value
v0.4.8
Published
dchart-pie-crossover-one-value
Downloads
18
Readme
dchart-pie-crossover-one-value
符合dchart规范的单值饼图
安装
npm install dchart-pie-crossover-one-value
用法
var Pie = require('dchart-pie-crossover-one-value');
var pie = new Pie(container, {
progressColor: { //进度条颜色,可以为单值"#1616c0", 也可为双值渐变色
style: "double",
from: "#1616C0",
to: "#F80B3E",
angle: 70
},
excessColor: "#ff0000" //越值进度条颜色,超过100%的环的颜色,也可为双值渐变色
bgProgressColor: rgba(1,1,1,0) //背景进度条颜色
});
pie.render(0.76);