AddValue

<< Click to Display Table of Contents >>

Navigation:  Charts >

AddValue

Previous pageReturn to chapter overviewNext page

[ActiveX, .NET, Java, PHP, etc., method of the TVPEChartData object]

Adds a new value to the specified column of the ChartData object.

method void TVPEChartData.AddValue(

int Column,

double Value

)

int Column

column, where to add the value

double Value

value to add

Example:

dim Data as TVPEChartData

Data = Doc.ChartDataCreate(2, 4)

Creates a ChartData object with two columns (for example Apples and Bananas), where each column can hold 4 numeric data values ( = rows).

 

Data.AddValue(0, 10)

Data.AddValue(0, 20)

Data.AddValue(0, 30)

Data.AddValue(0, 40)

Data.AddValue(1, 5)

Data.AddValue(1, 10)

Data.AddValue(1, 15)

Data.AddValue(1, 20)

 

Now the internal data table of the Chart Data object will look like this:

 

Column 0

Column 1

row 0

10

5

row 1

20

10

row 2

30

15

row 3

40

20