如何仅在小分辨率的chart.js下从下方删除标签?

时间:2018-08-01 10:19:28

标签: javascript chart.js

https://codepen.io/malinosky/pen/bjvVyr

var ctx = document.getElementById('myChart').getContext('2d');
var chart = new Chart(ctx, {
    type: 'bar',
data: {
  labels: ['January 01', 'February', 'March 02', 'April', 'May 03'],
  datasets: [{ 
      data: [2,5,3,12,17],
      label: "2017",
      backgroundColor: "blue",
      borderColor: "blue",
      fill: false
    }, { 
      data: [10,12,21,22,34],
      label: "2018",
      backgroundColor: "red",
      borderColor: "red",
      fill: false
    }
  ]
},
  options: {}
});

是否可以在设备的amalenkie权限上使用mounth删除标签?在chart.js中可以吗?

0 个答案:

没有答案