We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Gantt histogram view: custom day work time or work label

Hi

We are trying to use the histogram view to display the workload for multiple employees in a single row.
We want to be able to have the combined workload of for example 12 employees displayed in a single row, so the max workload needs to be able to be set to 102 hours.


1 Reply

GA Gurunathan A Syncfusion Team October 3, 2019 11:11 AM UTC

Hi Martin, 
  
Greeting from Syncfusion. 
  
We have analyzed your query, In Gantt, resource histogram view, work calculation and rendering of work are based on number working hours per day. We can’t change this value greater than 24, this is calculated based on dayWorkingTime property, we can define working time range only for one day alone, so it can’t be greater than 24 hours. We have tried any possibilities to achieve your requirement in workaround, but can’t make it, because all validation of work are done in source level. If we override any internal properties this will breaks the Gantt behavior. 
  
But we can customize the bar’s in the histogram view by using, queryTaskbarInfo event, using this event we can customize the background color, label color and label values. We have prepared a sample and changed the background of bars based on some condition. And we have updated the label values to current work value with multiplication of 12. Please find the sample link below. 
  
Please let us know, if your need more information on this. 
  
Thanks, 
Gurunathan 

15

Loader.
Live Chat Icon For mobile
Up arrow icon