react-charts
react-charts copied to clipboard
Opt out of cosmetic X-axis modifications (3.0.0-beta.48)
I'm feeding the chart with 2 dates - 31.8, 1.9. I'm noticing cosmetic ticks are added - which are not based on underlying data and seem to be there because of sufficiently wide container. Also, Sep instead of Sep 1? Why is that
Thanks
Read more about it here. https://github.com/d3/d3-time-format
Passing a formatted date solves this issue but causes #309
Scale is supported only on the Y axis, X axis supports pre-defined scaleTypes which are not helpful. I'm basing my answer on looking at your source code since there's no documentation so I may be wrong.
Thanks