我当时在看API文档,但是我无法找到一种向图表条添加渐变效果的方法。 API文档Link:
我的选项设置是:
var options = {
axisX: {
// On the x-axis start means top and end means bottom
position: 'end',
showGrid: false,
labelInterpolationFnc: function(value) {
return (value) + "%";
},
},
axisY: {
// On the y-axis start means left and end means right
position: 'start',
// offset: 0,
scaleMinSpace: 40,
},
// reverseData: true,
horizontalBars: true,
fullWidth: true,
low: 0,
stackBars: true ,
height:'300px',
};