xAxis.breaks Gantt hightchart not working

31 Views Asked by At

I'm trying to hide holidays and sundays from a gantt with highcharts js

I have the following code in which I go through an array where the holidays and Sundays are

JS

breaks: diasFestivos.map(function(fecha) {
    return {
    from: new Date(fecha).setUTCHours(0, 0, 0, 0),
    to: new Date(fecha).setUTCHours(23, 59, 59, 999),
    breakSize: 0,
};
})

I also tried this way but the end result is the same

JS

breaks: diasFestivos.map(function(fecha) {
    return {
    from: new Date(fecha).getTime(),
    to: new Date(fecha).getTime(),
    breakSize: 0,
};
})

But more dates are hidden in the gantt than I have in my non-working days arrangement. Why does this happen?.

enter image description here

As I show in the image, more days should appear between those dates

0

There are 0 best solutions below