42
Views
3
Comments
[Gantt Highcharts] Is it possible to remove the week and day rows from the graph?
gantt-highcharts
Reactive icon
Forge asset by Paulo Torres
Application Type
Reactive

Is it possible to remove the Week and day title rows from the graph as shown below? also the left side titles?

2023-08-28 07-00-10
Paulo Torres
Champion

Hello,

For the weeks and days it's possible (Anyway right now the component doesn't have this feature), for the left column I don't know if it's possible (Requires exploration).

Thanks, Paulo Torres


UserImage.jpg
Swathi P

Thank you for your quick response. 

UserImage.jpg
Binod Comini


Hi Swathi,

Per la tua richiesta, anche se non ho ancora avuto modo di provarla personalmente, una possibile soluzione potrebbe essere quella di modificare direttamente il JSON del componente Gantt, poiché al momento non esiste un'opzione per rimuovere le righe della settimana e del giorno tramite l'interfaccia. Potresti apportare questa modifica nella configurazione `xAxis` in questo modo:

BEFORE:
"xAxis: [{ 

    currentDateIndicator: $parameters.IsCurrDateIndicator,

    min: $parameters.StartDate.getTime(),

    max: $parameters.EndDate.getTime() + ($parameters.EndDateMarginDays * day),

    tickInterval: 1000 * 60 * 60 * 24 // 1 day

}, { 

    tickInterval: 1000 * 60 * 60 * 24 * 7 // 1 week

}, { 

    tickInterval: 1000 * 60 * 60 * 24 * 30, // 1 month

}],"

AFTER:

"xAxis: [{ 

    currentDateIndicator: $parameters.IsCurrDateIndicator,

    min: $parameters.StartDate.getTime(),

    max: $parameters.EndDate.getTime() + ($parameters.EndDateMarginDays * day),

    tickInterval: 1000 * 60 * 60 * 24 * 30 // 1 month

}],"

In theory, this change should remove the week and day rows from the graph, leaving only the monthly interval.

I hope this solution can be helpful!

Binod

Screenshot 2024-09-03 101428.png
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.