如何将渐变效果添加到checklist.js库

时间:2020-04-16 05:02:27

标签: reactjs chartist.js react-chartist

我当时在看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',
    };

0 个答案:

没有答案