![]() ![]() |
|
Flash Player 7
Flash MX 2004.
lineChartInstance.points
Property; an array of points to appear on the horizontal axis. This array
must be made of either strings or objets. If the label you wish to use for
a point is one word, use a string. Otherwise, you must use an object with two
properties: id and label. The label property
is what will be displayed to the user, and the id property is what you reference
when you call the plotLine method.
This example sets the linechart instance linechart to have horizontal
points representing the four quarters of 2005, then plots a line on it:
linechart.points = [{id:"q1_05", label:"Q1 2005"}, {id:"q2_05",
label:"Q2 2005"}, {id:"q3_05", label:"Q3 2005"},
{id:"q4_05", label:"Q4 2005"}];
linechart.plotLine({q1_05:450, q2_05:462, q3_05:418, q4_05:389}, "Sales");
linechart to have horizontal
points representing several days of the week, then plots a line on it:linechart.points = [{id:"last_thursday", label:"Last Thursday"},
{id:"last_friday",
label:"Last Friday"}, "Yesterday", "Today", "Tomorrow",
{id:"next_tuesday",
label:"Next Tuesday"}, {id:"next_wednesday", label:"Next
Wednesday"}];
linechart.plotLine({last_thursday:45, last_friday:39, Yesterday:42, Today:37,
Tomorrow:47, next_tuesday:49, next_wednesday:44}, "Sales");
![]() ![]() |
|