I'm having trouble understanding how the CartesianAxis interval property works.
My main goal is to make sure that every number on the scale must be an integer (no decimal places allowed).
Unfortunately, when I set:
I get this:

But when I set:
I get:

And when I set:
I get:

I find this to be very strange, because I was expecting the interval prop to mean the base number for ticks to be generated.
For example:
- For
interval={1}, I would expect: 0, 1, 2, 3, 4, 5, 6, 7, 8
- For
interval={2}, I would expect: 0, 2, 4, 6, 8, 10, 12, 14
Can I get some explanation for how the interval prop actually works. I tried to read through the source code, but it was a little confusing. I'll try again tomorrow, but if you have a better explanation, I could rephrase it for you and submit a PR to the docs.
I'm having trouble understanding how the CartesianAxis interval property works.
My main goal is to make sure that every number on the scale must be an integer (no decimal places allowed).
Unfortunately, when I set:
I get this:
But when I set:
I get:
And when I set:
I get:
I find this to be very strange, because I was expecting the interval prop to mean the base number for ticks to be generated.
For example:
interval={1}, I would expect:0, 1, 2, 3, 4, 5, 6, 7, 8interval={2}, I would expect:0, 2, 4, 6, 8, 10, 12, 14Can I get some explanation for how the
intervalprop actually works. I tried to read through the source code, but it was a little confusing. I'll try again tomorrow, but if you have a better explanation, I could rephrase it for you and submit a PR to the docs.