BJCBarChart ActionScript Reference


 

 

Events

 

BJCBarChart.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 );
}

 

 

BJCBarChart.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 );
}

 

 

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

 

BJCBarChart.clearChart

Availability

Flash Player 7

Description

Method. Removes all chart items.

Example

myChart.clearChart();

 

 

BJCBarChart.print

Availability

Flash Player 7

Description

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

Example

myChart.print();

 

 

BJCBarChart.printChart

Availability

Flash Player 7

Description

Method. Prints just the chart.

Example

myChart.printChart()

 

 

BJCBarChart.printLegend

Availability

Flash Player 7

Description

Method. Prints the chart legend description.

Example

myChart.printLegend();

 

 

BJCBarChart.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);

 

 

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

 

BJCBarChart.Align

Availability

Flash Player 7

Description

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

Example

myChart.Align = "left";

 

 

BJCBarChart.BGColor

Availability

Flash Player 7

Description

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

Example

myChart.BGColor = 0x999999;

 

 

BJCBarChart.BrdColor

Availability

Flash Player 7

Description

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

Example

myChart.BRDColor = 0x000000;

 

 

BJCBarChart.CaptVal

Availability

Flash Player 7

Description

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

Example

myChart.CaptVal = "value";

 

 

BJCBarChart.EnableCapt

Availability

Flash Player 7

Description

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

Example

myChart.EnableCapt = true;

 

 

BJCBarChart.EnableDes

Availability

Flash Player 7

Description

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

Example

myChart.EnableDes = 2;

 

 

BJCBarChart.EnableGridNum

Availability

Flash Player 7

Description

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

Example

myChart.EnableGridNum = true;

 

 

BJCBarChart.EnableTitle

Availability

Flash Player 7

Description

Boolean, write-only. Enables (true) or disables (false) titles.

Example

myChart.EnableTitle = true;

 

 

BJCBarChart.Fade

Availability

Flash Player 7

Description

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

Example

myChart.Fade = true;

 

 

BJCBarChart.Font

Availability

Flash Player 7

Description

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

Example

myChart.Font = "myFont";

 

 

BJCBarChart.FontColor

Availability

Flash Player 7

Description

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

Example

myChart.FontColor = 0x000000;

 

 

BJCBarChart.FontSize

Availability

Flash Player 7

Description

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

Example

myChart.FontSize = 12;

 

 

BJCBarChart.GAlign

Availability

Flash Player 7

Description

String, write-only. Sets the alignment of grid line numeration.

Example

myChart.GAlign = "left";

 

 

BJCBarChart.GRColor

Availability

Flash Player 7

Description

Number, write-only. Sets the grid color.

Example

myChart.GRColor = 0x336699;

 

 

BJCBarChart.GRNumColor

Availability

Flash Player 7

Description

Number, write-only. Sets the color of the grid numbers.

Example

myChart.GRNumColor = 0x336699;

 

 

BJCBarChart.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";

 

 

BJCBarChart.Lines

Availability

Flash Player 7

Description

Number, write-only. Sets the number of grid lines.

Example

myChart.Lines = 3;

 

 

BJCBarChart.PTColor

Availability

Flash Player 7

Description

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

Example

myChart.PTColor = 0x000000;

 

 

BJCBarChart.Source

Availability

Flash Player 7

Description

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

Example

myChart.source = "chart.xml";

 

 

BJCBarChart.TitleColor

Availability

Flash Player 7

Description

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

Example

myChart.TitleColor = 0x333333;

 

 

BJCBarChart.TrendLine

Availability

Flash Player 7

Description

Boolean, write-only. Enables (true) or disables (false) the trendline.

Example

myChart.TrendLine = true;