LineChart.plotLine()

Availability

Flash Player 7

Edition

Flash MX 2004.

Usage

lineChartInstance.plotLine(points:Object[, lineLabel:String[, lineColor:Number]])

Parameters

points An object with each item refencing an identifier of a point on the horizontal axis (See LineChart.points for more)

lineLabel The label displayed in the line's tooltips, and in the legend. Optional.

lineColor  The line color if you don't want to use the default color scheme. Optional.

Returns

Nothing.

Description

Method; adds a line to the LineChart, and redraws the chart.

Example

The following example adds a line labeled Assets to linechart instance linechart:

chart.plotLine({Sunday:12, Monday:5, Tuesday:15, Wednesday:10, Thursday:18, Friday:30, Saturday:25}, "Assets");