ChartDataAddLegend

<< Click to Display Table of Contents >>

Navigation:  Charts >

ChartDataAddLegend

Previous pageReturn to chapter overviewNext page

[VCL only]

Adds a new descriptive string for a column to the legend.

method void VPE.ChartDataAddLegend(

pointer hData,

string Legend

)

pointer hData

handle to ChartData object

string Legend

legend string

Example:

hData: Pointer

hData = Doc.ChartDataCreate(2, 4)

Doc.ChartDataAddLegend(hData, "Apples")

Doc.ChartDataAddLegend(hData, "Bananas")

Creates a ChartData object with two columns, titled "Apples" and "Bananas" in the legend.