<< Click to Display Table of Contents >> In VPE, Charts internally consist of two basic parts |
1) The Chart-Data Object
This is the set of numeric values you want to visualize. VPE organizes the data internally in a table. As with SQL, this table has rows and columns:
|
Column 0 Apples |
Column 1 Bananas |
row 0 |
10 |
5 |
row 1 |
20 |
10 |
row 2 |
30 |
15 |
row 3 |
40 |
20 |
Note, that rows and columns start with the index 0.
Additionally, the following data related elements are part of the Chart-Data:
•Legend
•Labels of the x- and y-axis
•x- and y-unit signs
•colors and appearance of each data column
For .NET the Chart Data is encapsulated in the TVPEChartData object. For the ActiveX / VCL the Chart Data object is managed with a handle, i.e. a long integer which identifies the object within VPE.
2) The Chart-Properties
This is the Title, Subtitle, Footnote and colors for graphical elements like grid and text, etc.
Chart Properties behave like all other properties in VPE. This means you can create charts of different types (e.g. Line Chart, Bar Chart, Pie Chart, etc.) that are all using the same ChartData Object, but each Chart can have its individual properties - for example its own title.
The Chart is - like text, barcodes, etc. - inherited from the Box Object (see "The Object-Oriented Style" in the Programmer's Manual), so the properties for a Box (like BkgMode, PenSize and PenStyle, etc.) apply to the Chart Object.