Skip to Content
0

​ Gantt chart for SAPUI5

Aug 16, 2017 at 11:16 AM

67

avatar image
Former Member

Is it possible to mark weekends or holidays in gantt chart time axis? and if yes? how to do this?

Thanks.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ivan Mirisola
Dec 20, 2017 at 08:43 PM
0

Hi Yakov,

Yes you can! However, there is no automatic feature to toggle on/off for weekends and load a table of holidays per year.
By using adhocLines, you can make the Gantt graph display information based a timestamp in different color and description.

Here is a sample, considering your model data has the color, date and description to be displayed:

<gantt:GanttChartContainer id="chart1">
  <gantt:ganttCharts>
      <gantt:GanttChartWithTable
        id="idGanttChart" 
        rows=.....
        adhocLines=.....
        shapes=.....
        chartClick=.....
        selectionMode=.....
        selectionPanelSize=.....
      >
        <gantt:columns>....</gantt:columns>
        <gantt:adhocLines>          
          <gantt:AdhocLine            
            stroke="{Chart>color}"            
            timeStamp="{Chart>date}"            
            description="{Chart>description}"/>        
        </gantt:adhocLines>
.....
    </gantt:GanttChartWithTable>
  </gantt:ganttCharts>
</gantt:GanttChartContainer>

Regards,
Ivan

Share
10 |10000 characters needed characters left characters exceeded