ChartDirector 7.0 (Python Edition)

DataSet.getLegendIcon


Usage

getLegendIcon()

Description

Gets the CDML representation of the legend icon for the data set.

The CDML representation can be used in any ChartDirector API that supports CDML. Note that the CDML representation is only valid in the BaseChart object that contains the data set. It is not allowed to use the CDML representation obtained from one chart in a different chart.

The legend icon is the same icon that would appear in the LegendBox. If you modify the icon using methods of the LegendBox object (such as using LegendBox.setKeyBorder to set the legend icon border), the modification will also apply to the icon returned by this method.

Arguments

None

Return Value

The CDML representation of the legend icon for the data set.