Gantt Chart > Task Bar Configurations |
In this section, we'll see the various possible configurations we can have for the task bar. Specifically, we'll be looking at following:
Let's see them one by one. |
Task bars to indicate percent complete figures |
FusionWidgets Gantt chart allows you to create task bars that can show percentage complete figures. For example, if you've a task which is only 50% complete, you can easily show the same on the chart by setting: <task start='04/06/2007' end='07/21/2007' percentComplete='50' /> Here, percentComplete attribute takes a value between 0-100, which represents what percent of the task is complete. When you view this chart, you'll get the following result: |
As you can see above, the part that is not complete has been filled by a shade of red. This color can be customized by setting: <chart slackFillColor='00CCFF'...> Here, we've changed the slack fill color to a shade of blue, as shown under: |
Or, you can opt to show the slack without a fill by setting: <chart showSlackAsFill='0' ...> This will result in: |
Showing the percent complete figures |
If you want to show the percent complete figures as part of each task bar, you can set: <chart showPercentLabel='1' ...> This will result in: |
You can also show the task label and percent figures together, as under: |
Making the task bars appear like a group |
If you want to represent a task as a parent group visually, you can set the showAsGroup attribute of <task> element to 1. Consider the following XML: |
<chart dateFormat='mm/dd/yyyy' caption='Project Gantt' subCaption='From 1st Feb 2007 - 31st Aug 2007' showSlackAsFill='0' showPercentLabel='1'> |
Here, we've added 2 more processes and 2 more tasks to group other tasks. The final result would be: |
Using round corners for task bars |
FusionWidgets allows you to use round corners for the task bars in Gantt chart, if you're NOT using the percentComplete feature. To use round radius, you need to set: <chart taskBarRoundRadius='6' ...> You'll get the output as under: |
Customizing tool text for task |
If you roll over a task bar (whose label is not defined), you'll get the tooltext as Start Date - End Date for the task bar, as shown below: |
If you've a label defined for the task, you can additionally see the labels as part of tool tip, as shown under: |
If you want to show just the label and not dates in tool tip, you can set: <chart dateInToolTip='0' ...> It will result in: |
Setting custom tool text for each task |
You can also set custom tool text for each task using: <task ... toolText='My own tool text' > This will result in: |