# 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: 8/20/2024, 8:25:36 PM