Resources

Overview

You chart the spread of various resouces over time using Resources Version of Gantt Chart. The syntax for resources is rather simple: you just set unique identificator for this resource, parent resource (if it is such) and name. You can also deside whether the resource holds some attributes.

The resource define what list you see in the datagrid, and control datagrod row appearance and time plot row appearance as well. Each resources can have a number of periods linked to it.

Syntax

To create resource oriented project you should add <resource_chart> node to <anygantt> node and list resources in <resources> node. Each resource should have a name and a uniquie id, just as shown in XML snippet below:

<anygantt>
  
<resource_chart>
    
<resources>
      
<resource name="Resource 1" id="res_1" />
      
<resource name="Resource 2" id="res_2" />
      
<resource name="Resource 3" id="res_3" />
      
<resource name="Resource 4" id="res_4" />
      
<resource name="Resource 5" id="res_5" />
    
</resources>
  
</resource_chart>
</anygantt>

For now we don't talk periods, which are linked to resources and define what is shown on time plot in resources row. They are described in the Schedule (Periods) tutorial.

Take a look at the sample chart without any periods defined:

Resources No Periods Sample - Click to see Live Chart Preview
Resources No Periods Sample - Click to see Live Chart Preview

And here the sample project with periods defined:

Resources and Periods Sample - Click to see Live Chart Preview
Resources and Periods Sample - Click to see Live Chart Preview

to top

Also there is an ability to group resources using parent attribute of resource node. expanded attribute defines whether it is expanded or not.

<resources>
  
<resource name="Group 1" id="group_1" />
  
<resource name="Resource 1" id="res_1" parent="group_1" />
  
<resource name="Resource 2" id="res_2" parent="group_1" />
  
<resource name="Group 2" id="group_2" />
  
<resource name="Resource 3" id="res_3" parent="group_2" expanded="false" />
  
<resource name="Resource 4" id="res_4" parent="group_2" />
  
<resource name="Resource 5" id="res_5" parent="group_2" />
</resources>

Sample below shows two group of resources - expanded and unexpanded:

Grouped Resources Sample - Click to see Live Chart Preview
Grouped Resources Sample - Click to see Live Chart Preview

to top

Configuration

Resource controls how datagrid rows looks like, data grid tooltip and how time plot row, all these are configured within Resource Style, please refer to this document to learn more:

to top