# Center Positioning

This sample show how to place the axis in the center of the chart area, instead of at the edges.

const config = {
  type: 'scatter',
  data: data,
  options: {
    responsive: true,
    plugins: {
      title: {
        display: true,
        text: 'Axis Center Positioning'
      }
    },
    scales: {
      x: {
        min: -100,
        max: 100,
      },
      y: {
        min: -100,
        max: 100,
      }
    }
  },
};

# Docs

Last Updated: 2/28/2024, 4:43:58 PM