Good morning,
i have a projet with 5 task. Each task last several weeks and for each one of them i have resources that changes in number during these weeks. I would like to know if there is a way to see a sort of total resources needed, week by week. It would be nice to have a row at the bottom of the chart that shows these numbers (or a chart)...
Is it possible?
thank You in advance
Best regards
Marco Del Frate
Hi Marco,
## Regarding how to assign multiple resources to a task
You can assign multiple resources to a task by using the Resources property of the TaskDetails class. We have attached a sample project demonstrating how to assign multiple resources to a task. Please review it and let us know if you have any questions or need further assistance.
## Regarding visualize number of resources on the gantt chart
We would appreciate more details about your specific requirements and use case, to assist you better. You can modify this sample and share your customizations, so we can provide additional guidance.
Regards,
Vidyalakshmi M.
Good evening,
thank You for Your support.
Please find below an image that i hope help me explain what i'm searching for
Think about a standard Gantt chart but in the bottom part You can see the number of the total resources necessary for each time unit . In the image the time unit is a week. The bulding task need for 2 resources for each week. The painting task instead need for 3 resources for each week. So i totally need for 2 resources the first week, 5 in the second week and 3 in the other weeks.
I would like to specify the number of resources i need for each time unit , for each task, and obtain the sum of them in the below area.
I hope to be clear....
Thank You in advance
Best regards
Marco
Hi marco,
# Regarding Visualizing Resource Numbers on the Gantt Chart:
Currently, the WPF GanttControl does not support displaying the resource numbers directly on the Gantt chart. However, you can achieve your desired outcome by using the WPF SfChart control in the Gantt loaded event to display the total number of resources for each time unit (e.g., week).
In the Gantt loaded event, we can use the ActualStartDate and ActualEndDate properties to determine the dates for rendering the Gantt chart. Then, based on the selected time unit (e.g., week), we can filter the tasks based on their start date, end date, and associated resources. These values are added to a separate collection, which will then be used as the item source for a column series in the SfChart control. This approach allows you to visualize the number of resources for each time unit (week) in the WPF SfChart.
We have prepared an example sample with the above suggested approach and attached it below for your reference. Please check the sample and let us know whether it meets your requirement.
We hope that this helps you. Please let us know if you need further assistance.
Regards,
Tamilarasan G.
Good morning and thank You,
Your proposal is really interesting. I would like to add some "feature", if it's possible: (i will use Chart and Gant Chart for the controls, sorry for the similiar names)
Hi marco,
Thank you for
sharing your requirements and providing a detailed explanation.
As per the current implementation, the Gantt control does not provide direct
support for the following requirements:
If you have any concerns or further questions, please feel free to reach out. We are here to assist you.
Regards,
Tamilarasan G.