BJCLineChart ActionScript Reference


 

 

Events

 

BJCLineChart.onClick

Availability

Flash Player 7

Description

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

Example

myChart.onClick = function(  title, xvalue, yvalue, color  )
{
trace( "TITLE: " + title + ", X-VALUE: " + xvalue + ", Y-VALUE: " + yvalue + ", COLOR: " + color );
}

 

 

BJCLineChart.onMouseOut

Availability

Flash Player 7

Description

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

Example

myChart.onMouseOut = function( title, xvalue, yvalue, color )
{
trace( "TITLE: " + title + ", X-VALUE: " + xvalue + ", Y-VALUE: " + yvalue + ", COLOR: " + color );
}

 

 

BJCLineChart.onMouseOver

Availability

Flash Player 7

Description

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

Example

myChart.onMouseOver = function( title, xvalue, yvalue, color )
{
trace( "TITLE: " + title + ", X-VALUE: " + xvalue + ", Y-VALUE: " + yvalue + ", COLOR: " + color );
}

 

 

Methods

 

BJCLineChart.clearChart

Availability

Flash Player 7

Description

Method. Removes all chart items.

Example

myChart.clearChart();

 

 

BJCLineChart.print

Availability

Flash Player 7

Description

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

Example

myChart.print();

 

 

BJCLineChart.printChart

Availability

Flash Player 7

Description

Method. Prints just the chart.

Example

myChart.printChart()

 

 

BJCLineChart.printLegend

Availability

Flash Player 7

Description

Method. Prints the chart legend description.

Example

myChart.printLegend();

 

 

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

 

 

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

 

BJCLineChart.Align

Availability

Flash Player 7

Description

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

Example

myChart.Align = "left";

 

 

BJCLineChart.BGColor

Availability

Flash Player 7

Description

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

Example

myChart.BGColor = 0x999999;

 

 

BJCLineChart.BrdColor

Availability

Flash Player 7

Description

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

Example

myChart.BRDColor = 0x000000;

 

 

BJCLineChart.DotSize

Availability

Flash Player 7

Description

Number, write-only. Sets the size of the chart's dots.

Example

myChart.DotSize = 1;

 

 

BJCLineChart.EnableCapt

Availability

Flash Player 7

Description

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

Example

myChart.EnableCapt = true;

 

 

BJCLineChart.EnableDots

Availability

Flash Player 7

Description

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

Example

myChart.EnableDots = true;

 

 

BJCLineChart.EnableGridNum

Availability

Flash Player 7

Description

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

Example

myChart.EnableGridNum = true;

 

 

BJCLineChart.EnableLines

Availability

Flash Player 7

Description

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

Example

myChart.EnableLines = true;

 

 

BJCLineChart.Fade

Availability

Flash Player 7

Description

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

Example

myChart.Fade = true;

 

 

BJCLineChart.Font

Availability

Flash Player 7

Description

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

Example

myChart.Font = "myFont";

 

 

BJCLineChart.FontColor

Availability

Flash Player 7

Description

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

Example

myChart.FontColor = 0x000000;

 

 

BJCLineChart.FontSize

Availability

Flash Player 7

Description

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

Example

myChart.FontSize = 12;

 

 

BJCLineChart.GAlign

Availability

Flash Player 7

Description

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

Example

myChart.GAlign = "left";

 

 

BJCLineChart.GRColor

Availability

Flash Player 7

Description

Number, write-only. Sets the grid color.

Example

myChart.GRColor = 0x336699;

 

 

BJCLineChart.GRNumColor

Availability

Flash Player 7

Description

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

Example

myChart.GRNumColor = 0x336699;

 

 

BJCLineChart.HLines

Availability

Flash Player 7

Description

Number, write-only. Specifies the number of horizontal grid lines.

Example

myChart.HLines = 4;

 

 

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

 

 

BJCLineChart.LineHeight

Availability

Flash Player 7

Description

Number, write-only. Sets the thickness of chart lines.

Example

myChart.LineHeight = 1;

 

 

BJCLineChart.PTColor

Availability

Flash Player 7

Description

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

Example

myChart.PTColor = 0x000000;

 

 

BJCLineChart.Source

Availability

Flash Player 7

Description

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

Example

myChart.source = "chart.xml";

 

 

BJCLineChart.VLines

Availability

Flash Player 7

Description

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

Example

myChart.VLines = 5;