Nivo bar chart axis labels overlapping

One workaround would be to create a function and return an empty string if the date is not a Monday:

const isMonday = value => moment(value).day() === 1;

    format: function (value) {
        return isMonday(value) ? moment(value).format('DD') : "";
    tickSize: function (value) {
        return isMonday(value) ? 5 : 0;

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top