标签: chart.js
我在图表中添加了两个Y轴,但由于某些原因它们未正确对齐。左侧的标签比右侧的标签略高。
这里可能是什么问题?我尝试过弄乱一些选项,但到目前为止还没有运气。
感谢您的帮助,谢谢。
答案 0 :(得分:0)
假设图表为type 'horizontalBar',则可以如下定义第二个y轴:
type
'horizontalBar'
{ type: 'category', position: 'right', // depends on your choice offset: true, gridLines: { display: false } }