Skip to content
Source
Sign inSign up
TanStack/react-charts

Support tickCount for X axis #330

OpenZandor300(GitHub profile, opens in a new tab) opened this issue 1 comment

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

Sign in to join this conversation.