我在激活vue-chartjs
插件的情况下使用datalabels
。标签在末尾对齐。
正如您在下面的屏幕截图中所见,顶部标签最终可能被画布剪掉。参数如下。我试图将responsive
和maintainAspectRatio
设置为false,但是没有成功。
是预期行为还是错误?
responsive: true,
maintainAspectRatio: true,
plugins: {
datalabels: {
display: true,
color: 'black',
anchor: 'end',
align: 'end',
offset: 1
}
}