# Navigation

This sample shows how to use legend navigation to handle overflow.

const config = {
  type: 'pie',
  data: data,
  options: {
    plugins: {
      legend: {
        position: 'right',
        align: 'start',
        title: {
          display: true,
          text: 'Chart.js Legend Navigation Example',
          position: 'start',
        },
        navigation: {
          display: 'auto',
          maxCols: 1,
          maxRows: 3,
          arrowSize: 12,
          align: 'start',
          grid: true
        }
      },
    }
  }
};

# Docs

Last Updated: 7/1/2024, 9:57:55 AM