Skip to main content

Hi,

 

I created a gantt chart that to display 

p_taskStartTimePerEmployee(i_task,i_employee)

p_taskDurationPerEmployee(i_task,i_employee)

 

How can I show the task number or name on top of each task bar like the in the below photo (this photo taken from aimms help not my model)? For example I'm interested in showing i_task value on top of each task bar.

thank you inadvance 

 

Hello,

 

I created a small example in AIMMS 24.5 using WebUI 24.12, just to illustrate the basic mechanism - a Gantt Chart with 3 jobs, and a little bit of text in there.  It looks as follows:

 


To create the above image, there is a set of job s_jobs with index i_job, a set of resources s_res with index i_res, a parameter with the start of each job p_start(i_job, i_res), a parameter with the duration of each job p_duration(i_job, i_res).

More to the point of your question, there is a string parameter sp_text(i_job, i_res) with the text for each task (i_job, i_res).  

You can associate the text of that string parameter with the text shown in the task using the annotation webui::itemTextIdentifier on the duration parameter as follows:

Specifying the task text

Does this help?

 

Please find the example AIMMS 24.5 project attached.

 

With kind regards,

 

Chris


Thank you very much for your reply, it is very helpful.


Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator