Our state of the art Gantt chart


Post by fegrit.r »

I would like to ask if it's possible to change the default resource unit in Bryntum from '%' to 'People', and whether it's possible to input whole numbers directly (e.g., 1 unit instead of 100). I have a case where a single task has two assigned resources, with unit values of 2 and 3 respectively. Additionally, I need the Resource Graph to display daily unit data using actual unit values (e.g., 2 or 3), instead of percentages as shown by default in Bryntum.

I would like to create a graph display similar to the one in MS Project, like the one shown in the attached image.

Attachments
rsc graph.jpeg
rsc graph.jpeg (93.87 KiB) Viewed 302 times

Post by alex.l »

Hi,

You will need to extend models: ResourceModel and AssignmentModel and calculate those values by yourself.
Something like memberCnt for ResourceModel that will calc lets say
maxUnits = memberCnt * 100

And memberCnt on AssignmentModel with units = memberCnt * 100
In ResourceHistogram you will need to change https://bryntum.com/products/gantt/docs/api/SchedulerPro/view/ResourceHistogram#config-getBarText to get correct data shown
docs https://bryntum.com/products/gantt/docs/api/SchedulerPro/view/ResourceHistogram#changing-displayed-values

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post Reply