Adding Milestones to a Chart

Milestones are an important part of the Gantt chart as they allow you to visually depict any crucial dates on the chart. You can create your own milestones on the chart based on dates and tasks, i.e., for a given task you can specify milestones on specific dates. You can also customize all the visual properties of the milestone including the shape (star or polygon), size, and colors. Additionally, you can add tool text for the milestone.

In this section, you will be shown how you can add milestones to a chart.

To add a milestone to the chart, you need to:

  • Decide the task to which your milestone relates.

  • Decide the date for the milestone.

As an example, we will add milestones to the "Social Media Optimization" Gantt chart to show the completion of development and the successful completion of the campaign.

A Gantt chart with milestones added looks like this:

FusionCharts should load here..

Given below is a brief description of the attributes used to add a milestone:

Attribute Name Description
date It is used to specify the date for the milestone.
taskId It is used to specify the ID representing that task to which the milestone relates.
color It is used to specify the hex code of the color that will be used to render the milestone.
shape It is used to specify the shape of the milestone.
toolText It is used to specify the tool-tip text that will be rendered when the mouse pointer is hovered over it.

These attributes belong to the milestone object, which in turn belongs to the milestones object.

The data structure needed to add milestones to the "Social Media Optimization" Gantt chart is given below:

...

There! You have now seen how you can add a milestone to your Gantt chart.