<< Click to Display Table of Contents >> Charts |
[Professional Edition and above]
The chart was created with the following short code sequence:
VpeHandle hData;
hData = VpeChartDataCreate(hdoc, 3, 3);
VpeSetChartTitle(hdoc, "Sales");
VpeSetChartSubTitle(hdoc, "Northern Region Sales Department, July '98");
VpeSetChartFootNote(hdoc, "Measuring by Data Measure Inc. 10/98");
VpeChartDataSetXAxisTitle(hdoc, hData, "Month");
VpeChartDataSetYAxisTitle(hdoc, hData, "Pieces in thousand");
VpeSetChartLegendPosition(hdoc, VCHART_LEGENDPOS_TOP);
VpeChartDataAddLegend(hdoc, hData, "200 Mhz CPU's");
VpeChartDataAddLegend(hdoc, hData, "300 Mhz CPU's");
VpeChartDataAddLegend(hdoc, hData, "400 Mhz CPU's");
VpeChartDataAddValue(hdoc, hData, 0, 10);
VpeChartDataAddValue(hdoc, hData, 0, 20);
VpeChartDataAddValue(hdoc, hData, 0, 25);
VpeChartDataAddValue(hdoc, hData, 1, 7);
VpeChartDataAddValue(hdoc, hData, 1, 10);
VpeChartDataAddValue(hdoc, hData, 1, 20);
VpeChartDataAddValue(hdoc, hData, 2, 3);
VpeChartDataAddValue(hdoc, hData, 2, 5);
VpeChartDataAddValue(hdoc, hData, 2, 8);
VpeSetChartXLabelStartValue(hdoc, 7);
VpeChart(hdoc, 1, 1, -18, -18, hData, VCHART_3D_BAR);