# 对齐和标题位置

¥Alignment and Title Position

此示例展示了如何配置图表图例的对齐方式和标题位置。

¥This sample show how to configure the alignment and title position of the chart legend.

const config = {
  type: 'line',
  data: data,
  options: {
    plugins: {
      legend: {
        title: {
          display: true,
          text: 'Legend Title',
        }
      }
    }
  }
};

# 文档

¥Docs