I want to generate a coordinate grid that looks like this (except it doesn’t need the points joining):

However, my output is this. Although it goes from -6 to 6, it doesn’t put the axes in the plus shape, which I’m aiming for.

How can I correct it? I’m using react-chartjs-2 (Chart.js) but I am open to any library.
Code:
import React from "react";
import { Scatter } from "react-chartjs-2";
import {
Chart as ChartJS,
LinearScale,
PointElement,
Tooltip,
Legend
} from "chart.js";
ChartJS.register(LinearScale, PointElement, Tooltip, Legend);
const data1 = {
datasets: [
{
label: "Sample Data",
data: [
{ x: -5, y: -5 },
{ x: -3, y: -2 },
{ x: -1, y: -1 },
{ x: 0, y: 0 },
{ x: 2, y: 3 },
{ x: 4, y: 5 }
],
backgroundColor: "red",
pointRadius: 5
}
]
};
const options = {
responsive: true,
maintainAspectRatio: false,
scales: {
x: {
type: "linear",
position: "bottom",
min: -6,
max: 6,
grid: {
color: "gray",
drawTicks: false,
drawBorder: true,
lineWidth: 2
},
ticks: {
stepSize: 1,
color: "black"
},
border: {
display: true,
color: "black"
}
},
y: {
min: -6,
max: 6,
grid: {
color: "gray",
drawTicks: false,
drawBorder: true,
lineWidth: 2
},
ticks: {
stepSize: 1,
color: "black"
},
border: {
display: true,
color: "black"
}
}
},
plugins: {
legend: {
display: false
}
}
};
Render the element:
<div style={{ width: "500px", height: "500px" }}><Scatter data={data1} options={options} /></div>;