# 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: 10/28/2024, 1:36:05 PM