react-charts icon indicating copy to clipboard operation
react-charts copied to clipboard

Opt out of cosmetic X-axis modifications (3.0.0-beta.48)

Open doronnac opened this issue 3 years ago • 2 comments

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

Screen Shot 2022-09-01 at 20 54 41

Thanks

doronnac avatar Sep 01 '22 17:09 doronnac

Read more about it here. https://github.com/d3/d3-time-format

tannerlinsley avatar Sep 01 '22 18:09 tannerlinsley

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

doronnac avatar Sep 01 '22 19:09 doronnac