The information in this article applies to:
SUMMARYA Gantt chart is a horizontal bar chart used for project planning and reporting. The Graph custom control that comes with the Professional Edition of Visual Basic for Windows can be used to create a Gantt chart. This article shows by examnple how to create a Gantt chart. MORE INFORMATION
To create a Gantt chart using the Graph custom control, you need to know
how many bars your graph will require. Typically this includes one project
bar and several activity bars. You will also need to know the number of
sections required in each bar. Typically each bar is divided into two
sections -- one to show actual progress on the project, the other to show
plans for the time remaining.
or
To make the graph more readable, you can set the range of the horizontal
axis using YAxisStylealong with YAxisMax. To place tick marks, use
YAxisTicks. To clear previous data assigned to the graph, use DataReset.To plot the bars on the graph, you need to assign values to the GraphData property of Graph1. GraphData values that follow ThisSet = 1 assignment indicate the beginning of the section on a bar, and the corresponding GraphData values following the ThisSet = 2 assignment, indicate the end of the section. For example: To plot the following Gantt chart:
Make the following assignments:
After assigning values to the graph, set the GraphType to 5 to indicate a
Gantt chart, and set GraphStyle to 1 if you want spaced bars. Set DrawMode
to 2 and DrawStyle to 1 if you want color.
Step-by-Step ExampleThis example creates the Gantt chart.
Additional query words: 3.00
Keywords : |
Last Reviewed: September 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |