Line Chart with line stroke
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.collections.ArrayCollection;
[Bindable]
public var myArray:ArrayCollection = new ArrayCollection([
{Country:"A", GDP:11},
{Country:"B", GDP:22},
{Country:"C", GDP:33},
{Country:"D", GDP:44}
]);
</mx:Script>
<mx:Panel title="Line Chart">
<mx:LineChart dataProvider="{myArray}" id="myChart" showDataTips="true" >
<mx:horizontalAxis>
<mx:CategoryAxis categoryField="Country"/>
</mx:horizontalAxis>
<mx:series>
<mx:LineSeries yField="GDP" displayName="GDP">
<mx:lineStroke>
<mx:Stroke color="#FFD700" weight="5" alpha=".8"/>
</mx:lineStroke>
</mx:LineSeries>
</mx:series>
</mx:LineChart>
<mx:Legend dataProvider="{myChart}"/>
</mx:Panel>
</mx:Application>
Related examples in the same category