# 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/3/2022, 12:46:38 PM