If you want blank arbitrary number of Array data.
[...Array(n)] gives us undefined value of array with (n),
while [...Array(n).keys()], 1...(n) of array.
const [data, setData] = React.useState(
[...Array(167)].map((_, index) => ({
x: index,
y: Math.floor(Math.random() * 100) + 40,
date: new Date(),
})),
)