BJCPieChart ActionScript Reference


 

 

Events

 

BJCPieChart.onClick

Availability

Flash Player 7

Description

Function. Called when the user clicks on an item in the chart.

Example

myChart.onClick = function( title, value, color )
{
	trace( "TITLE: " + title + ", VALUE: " + value + ", COLOR: " + color );
}

 

 

BJCPieChart.onMouseOut

Availability

Flash Player 7

Description

Function. Called when the cursor leaves an area of the chart.

Example

myChart.onMouseOut = function( title, value, color )
{
	trace( "TITLE: " + title + ", VALUE: " + value + ", COLOR: " + color );
}

 

 

BJCPieChart.onMouseOver

Availability

Flash Player 7

Description

Function. Called when the cursor moves over an area of the chart.

Example

myChart.onMouseOver = function( title, value, color )
{
	trace( "TITLE: " + title + ", VALUE: " + value + ", COLOR: " + color );
}

 

 

Methods

 

BJCPieChart.clearChart

Availability

Flash Player 7

Description

Method. Removes all chart items.

Example

myChart.clearChart();

 

 

BJCPieChart.print

Availability

Flash Player 7

Description

Method. Used to pront the chart and the legend description.

Example

myChart.print();

 

 

BJCPieChart.printChart

Availability

Flash Player 7

Description

Method. Prints just the chart.

Example

myChart.printChart()

 

 

BJCPieChart.printLegend

Availability

Flash Player 7

Description

Method. Prints the chart legend description.

Example

myChart.printLegend();

 

 

BJCPieChart.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

myChart.setSize(200, 180);

 

 

BJCPieChart.setSource

Availability

Flash Player 7

Description

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

Example

myChart.setSource("chart.xml");

 

 

Properties

 

BJCPieChart.Align

Availability

Flash Player 7

Description

String, write-only. Used to set the alignment of the captions.

Example

myChart.Align = "left";

 

 

BJCPieChart.BGColor

Availability

Flash Player 7

Description

Number, write-only. Sets the background caption color.

Example

myChart.BGColor = 0x999999;

 

 

BJCPieChart.BrdColor

Availability

Flash Player 7

Description

Number, write-only. Sets the caption border color.

Example

myChart.BRDColor = 0x000000;

 

 

BJCPieChart.CaptVal

Availability

Flash Player 7

Description

String, write-only. Used to set the caption mode.

Example

myChart.CaptVal = "value";

 

 

BJCPieChart.EnableCapt

Availability

Flash Player 7

Description

Boolean, write-only. Used to enable (true) or disable (false) captions.

Example

myChart.EnableCapt = true;

 

 

BJCPieChart.EnableDes

Availability

Flash Player 7

Description

Number, write-only. Sets the number percent decimals in the caption.

Example

myChart.EnableDes = 2;

 

 

BJCPieChart.EnableGrid

Availability

Flash Player 7

Description

Boolean, write-only. Used to enable (true) or disable (false) the grid.

Example

myChart.EnableGrid = true;

 

 

BJCPieChart.Fade

Availability

Flash Player 7

Description

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

Example

myChart.Fade = true;

 

 

BJCPieChart.Font

Availability

Flash Player 7

Description

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

Example

myChart.Font = "myFont";

 

 

BJCPieChart.FontColor

Availability

Flash Player 7

Description

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

Example

myChart.FontColor = 0x000000;

 

 

BJCPieChart.FontSize

Availability

Flash Player 7

Description

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

Example

myChart.FontSize = 12;

 

 

BJCPieChart.Legend

Availability

Flash Player 7

Description

String, write-only. Specifies the instance name of the BJCChartLegend component to display the chart's legend.

Example

myChart.Legend = "myLegend";

 

 

BJCPieChart.PTColor

Availability

Flash Player 7

Description

Number, write-only. Sets the color of the text when printed.

Example

myChart.PTColor = 0x000000;

 

 

BJCPieChart.Source

Availability

Flash Player 7

Description

String, write-only. Specifies the XML data source.

Example

myChart.source = "chart.xml";

 

 

BJCPieChart.TitleColor

Availability

Flash Player 7

Description

Number, write-only. Sets the color of the titles.

Example

myChart.TitleColor = 0x000000;

 

 

BJCPieChart.TLColor

Availability

Flash Player 7

Description

Number, write-only. Sets the color of the title lines.

Example

myChart.TLColor = 0x030303;