如何设置最小值和最大值xAxes?它工作正常,yAxes但xAxes它没有表现出任何行为.
我xAxes正在使用type: 'time'.我的标签xAxis也在使用该moment对象.但是当我删除类型时间并使用普通数字时它也不起作用.我使用Chart.js版本2.2.2.
scales: {
yAxes: [{
ticks: {
beginAtZero:false,
}
}],
xAxes: [{
type: 'time',
ticks: {
min: moment(1471174953000),
max: moment(1473853353000)
}
}]
}
Run Code Online (Sandbox Code Playgroud)