【发布时间】:2020-04-25 10:05:40
【问题描述】:
我正在努力使用 ChartJs 和 VueChartJs 来自定义我的图表选项。
我希望我的 xAxis 样式为“正常”,并且我希望我的刻度步数为 5,所以这是我的不工作代码:
scales:{
xAxes: [{
ticks: {
stepSize: 5,
fontStyle: 'normal'
},
scaleLabel: {
display: true,
labelString: 'min'
} }],
yAxes: [{
display: true,
ticks: {
beginAtZero: true,
maxTicksLimit: 5,
stepSize: 5000,
mirror: true }
}]
},
看起来 yAxis 运行良好,而 xAxis 不想遵循所有规则。
你们知道我做错了什么吗?
提前感谢您的帮助!
【问题讨论】:
标签: vue.js vue-chartjs