I've created a chart in Recharts. I have a series of dates, each of which has an associated value in the range 0-10 (whole numbers only).
I plot it in a LineChart like this:
<LineChart data={mydata}>
<XAxis dataKey="date" interval={"preserveStartEnd"} height={60} tick={<CustomizedXAxisTick />} />
<YAxis domain={[0,10]} interval={"preserveStartEnd"} />
<Line type="monotone" dataKey="mykey" strokeWidth={2}/>
</LineChart>
The x-axis looks fine, but on the y-axis the tick marks shown are 0, 3, 6 and 10. I'd rather show 0, 2, 4, 6, 8, 10, but I can't figure out how to change it. I tried changing the value of 'Interval', but I couldn't figure out what the numbers in there do.