我有以下图表:
但是,我想将 y 轴标签移动如下:
是否可以使用 ChartJS 在刻度线之间移动 y 轴标签,如上面的示例图像所示?
功能类似于options.scales.yAxes[].ticks.position选项,除了当前它被定义为in the x direction for the y axis,因为我在 y 轴的 y 方向需要它。更好的是,自动居中。
options.scales.yAxes[].ticks.position
in the x direction for the y axis
javascript charts canvas graph chart.js
canvas ×1
chart.js ×1
charts ×1
graph ×1
javascript ×1