Chart.js 2.0减少了图表和y轴之间的差距

时间:2017-01-13 02:28:25

标签: javascript chart.js

标签长时,y轴被推向左侧。它在y轴和条形图之间留下了一个间隙。无论如何要缩小差距吗?

image

var labelList = ["Professional & Disciplinary Knowledge","Curriculum Planning and Instructional Delivery","Learning Environment","Creative Thinking","Problem solving and Critical Thinking","Research Skills"];


    var barDatasource = {
    labels: labelList,
    datasets: [
    ]
};
    var barConfig =  {
        type: 'bar',
        data: barDatasource,
        options: {
            scales: {
                yAxes: [{
                    ticks: {
                        beginAtZero: true,
                        suggestedMax: 4
                    }
                }],
                xAxes: []
            },
            legend: {
                position: 'bottom',
            },
            title: {
                display: true,
                text: 'Radar Chart for WM Component Mean',
                fontSize: 14,
                fontStyle: 'bold'
            }
        }
    };

0 个答案:

没有答案