|
|
|
Section 2 - Pie Charts
In this section, we will discuss pie charts, and the many ways of presenting them. The pie chart is a type of graph where the pie represents 100% of the total, and each slice is a percent of the total. Let's begin by adding our graph data.
FlpGrf.DataValue(1, 0) = "Jan"
FlpGrf.DataValue(2, 0) = "Feb"
FlpGrf.DataValue(3, 0) = "Mar"
FlpGrf.DataValue(4, 0) = "Apr"
FlpGrf.DataValue(5, 0) = "May"
FlpGrf.DataValue(6, 0) = "Jun"
FlpGrf.DataValue(7, 0) = "Jul"
FlpGrf.DataValue(8, 0) = "Aug"
FlpGrf.DataValue(9, 0) = "Sep"
FlpGrf.DataValue(1, 1) = 12
FlpGrf.DataValue(2, 1) = 34
FlpGrf.DataValue(3, 1) = 21
FlpGrf.DataValue(4, 1) = 45
FlpGrf.DataValue(5, 1) = 67
FlpGrf.DataValue(6, 1) = 45
FlpGrf.DataValue(7, 1) = 53
FlpGrf.DataValue(8, 1) = 12
FlpGrf.DataValue(9, 1) = 34
Next, we need to specify the type of graph we want for our data. The graph type for pie is 1, so add the following line.
We need to assign our columns of data to their particular axes. The only thing new here is that the column type for our numeric data needs to be set to the pie slice type (9).
FlpGrf.ColumnAxis = 0
FlpGrf.Column = 1
FlpGrf.ColumnAxis = 1
FlpGrf.ColumnType = 9
![]() |
Last modified on: Friday, August 16, 2002