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

Support tickCount for X axis

Open Zandor300 opened this issue 3 years ago • 1 comments

tickCount can be set on a Y axis to reduce the amount of ticks that are shown.

I would like to be able to do the same for the X axis.

    const primaryAxis = React.useMemo(
        () => ({
            // ...
            tickCount: 5
            // ...
        }), []
    );

Currently, since I am showing every day for the next year, the X axis labels become unreadable. I am doing this to get a chart that is as detailed as possible.

chrome_pJd9pGa2uK

Zandor300 avatar Nov 24 '22 11:11 Zandor300

Same here!

EmBeee27 avatar Nov 28 '24 12:11 EmBeee27