How to make weekends as working days in a resource histogram.
Posted: Fri Jan 14, 2022 7:38 pm
by anthony.dasre
Hello everyone,
I am using Histogram(v4.3.6 ) for displaying the timeline report of the workload.
In the array of calendar, I have declared that we work everyday including weekends.
However, "Resource histogram" component shows that Saturday and Sunday are not marked as working days. Could someone tell me how to enable the working time in the weekend. Thank you in advance.
Re: How to make weekends as working days in a resource histogram.
Posted: Sat Jan 15, 2022 11:13 am
by mats
Could you please share your code with the component configurations?
Re: How to make weekends as working days in a resource histogram.
Re: How to make weekends as working days in a resource histogram.
Posted: Tue Jan 18, 2022 1:53 pm
by alex.l
Hi anthony.dasre,
You need to share project of your SchedulerPro with the histogram instead of configure its own, as it's done in our examples:
const project = window.project = new ProjectModel({
transport : {
load : {
url : 'data/data.json'
}
},
autoLoad : true,
// This config enables response validation and dumping of found errors to the browser console.
// It's meant to be used as a development stage helper only so please set it to false for production systems.
validateResponse : true
});
const scheduler = new SchedulerPro({
appendTo : 'container',
// ...
project
});
const histogram = window.histogram = new ResourceHistogram({
project,
hideHeaders : true,
partner : scheduler,
// ...
});
Re: How to make weekends as working days in a resource histogram.
Posted: Tue Jan 18, 2022 2:10 pm
by anthony.dasre
Thanks for your reply. I have shared the project, it calculates the value in histogram. However, there is always a gray zone on weekend in the interface.
Re: How to make weekends as working days in a resource histogram.
If so, please share a runnable application with us, we will check it. Because it works great on my side. I tested with our resource-histogram demo, I applied your data and it works great.
Re: How to make weekends as working days in a resource histogram.