In VPE, Charts internally consist of two basic parts

<< Click to Display Table of Contents >>

Navigation:  Charts >

In VPE, Charts internally consist of two basic parts

Previous pageReturn to chapter overviewNext page

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

 

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 a Box (like BkgMode, PenSize, PenStyle, etc.) apply to the Chart Object.