单杠上的行内截断标签

时间:2019-04-02 22:46:30

标签: vue.js chart.js vue-chartjs

我在激活vue-chartjs插件的情况下使用datalabels。标签在末尾对齐。

正如您在下面的屏幕截图中所见,顶部标签最终可能被画布剪掉。参数如下。我试图将responsivemaintainAspectRatio设置为false,但是没有成功。

是预期行为还是错误?

responsive: true,
maintainAspectRatio: true,
plugins: {
    datalabels: {
        display: true,
        color: 'black',
        anchor: 'end',
        align: 'end',
        offset: 1
    }
}

Example of an overflow

0 个答案:

没有答案
相关问题