how to asssigne multiple resource to a task and visualize number on the gantt chart
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.
Attachment: WPFGanttDemo_5_225140d7.zip
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.
Attachment: WPFGanttDemo_8692c6d2.zip
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)
- Place the Chart under the Gant Chart area so to have each chart blue bar under it's time unit. To do this i think we need to have the Chart Widht bound the Gant Chart Widht
- If the Gant Chart is wider then the screen , the same will be the Chart and theyr horizontal scroll bar will be bound with each other
- If i zomm on the Gant Chart and this lead to a change in the time unit, the same will happen on the Chart
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:
- Placing the Chart under the Gantt Chart and
binding their widths:
It is not possible to bind the width of the Chart to the Gantt Chart. - Synchronizing horizontal scrollbars between the
Chart and Gantt Chart:
The synchronization of scrollbars between the two controls is not supported. - Zooming on the Gantt Chart and reflecting changes
in the Chart's time unit:
Adjusting the Chart’s time unit or zoom level based on the Gantt Chart's zoom is not feasible with the existing functionality.
If you have any concerns or further questions, please feel free to reach out. We are here to assist you.
Regards,
Tamilarasan G.
- 5 Replies
- 3 Participants
-
MD marco del frate
- Dec 12, 2024 10:07 AM UTC
- Dec 27, 2024 02:02 PM UTC