BJCChartLegend ActionScript Reference


 

 

Methods

 

BJCChartLegend.clearLegend

Availability

Flash Player 7

Description

Method. Clears the legend.

Example

myLegend.clearLegend();

 

 

BJCChartLegend.setSize

Availability

Flash Player 7

Description

Method. Sets the size of the component. The first parameter is the width, the second is the height.

Example

myLegend.setSize(200, 180);

 

 

BJCChartLegend.setSource

Availability

Flash Player 7

Description

Method. Sets the data source of the component. It accepts one parameter, the source of the legend. The source may be the url of an external xml file or a reference to an XML object.

Example

myLegend.setSource("chart.xml");

 

 

Properties

 

BJCChartLegend.Fade

Availability

Flash Player 7

Description

Boolean, write-only. Determines whether the legend will fade in (true) or not (false).

Example

myLegend.Fade = true;

 

 

BJCChartLegend.Font

Availability

Flash Player 7

Description

String, write-only. Sets the font to be used for text.

Example

myLegend.Font = "myFont";

 

 

BJCChartLegend.FontColor

Availability

Flash Player 7

Description

Number, write-only. Sets the color of the caption text.

Example

myLegend.FontColor = 0x000000;

 

 

BJCChartLegend.FontSize

Availability

Flash Player 7

Description

Number, write-only. Sets the font size of the caption text.

Example

myLegend.FontSize = 12;