首页 > 解决方案 > 在 vue-chartJS 中更改图例的位置

问题描述

我是 Vue-ChartJs 的新手,对此非常好奇:

图例位置

如何将图例位置更改为图表底部?

标签: javascriptvue.jsvue-chartjs

解决方案


在您的图表选项对象中使用:

const chartOptions = {
  // other options...
  legend: {
    position: 'bottom'
  }
}

推荐阅读