Gantt Charts with Flipper Graph
Gantt charts provide a grahical view of schedules and project plans. The viewer can see when specific tasks will begin and end in relation to the rest of the project. Gantt charts are most useful for planning complex projects and allocating resources.
With the new box plots available in Flipper Graph Control and Flipper Graph ASP version 2.7, Gantt charts are easy to create and customize.

The Visual Basic code below will create this Gant chart.
With FlpGrf1
.DataInit = 3 '3 columns of data
.GraphType = flpXYY
' Store X axis data to column 0 of buffer
.DataValue(1, 0) = "Project 1"
.DataValue(2, 0) = "Project 2"
.DataValue(3, 0) = "Project 3"
' Store BoxPlot BAR START
.DataValue(1, 1) = #1/21/2005#
.DataValue(2, 1) = #4/16/2005#
.DataValue(3, 1) = #5/2/2005#
' Store BoxPlot BAR END
.DataValue(1, 2) = #7/18/2005#
.DataValue(2, 2) = #11/1/2005#
.DataValue(3, 2) = #8/15/2005#
.Column = 0
.ColumnAxis = 0
.Column = 1
.ColumnAxis = 1
.ColumnType = flpBoxPlotStart
.Column = 2
.ColumnAxis = 1
.ColumnType = flpBoxPlotEnd
.ColumnBarGradient = flpNoGradient
.ColumnStyle = 1
.Axis = flpY
'add vertical grid lines
.AxisGrid = True
.AxisGridPattern = flpDash
.AxisGridColor = vbWhite
'manually scale the X-axis dates
.AxisScaleManual = True
.AxisScaleMin = #1/1/2005#
.AxisScaleMax = #12/31/2005#
.AxisDateIncType = flpMonth
.AxisScaleInc = 1
'swap the X and Y axis
.GraphSwapScale = True
.GraphBarWidth = 30
.GraphOverlap = flp90Right
.GraphTitle = "Gant Chart or Timeline"
.BackColor = vbWhite
End With

0 Comments:
Post a Comment
<< Home