The following example shows how you can add a stroke around chart items in a Flex ColumnChart control.
Full code after the jump.
Continue reading ‘Adding a stroke around a ColumnSeries item in a Flex ColumnChart control’
The following example shows how you can add a stroke around chart items in a Flex ColumnChart control.
Full code after the jump.
Continue reading ‘Adding a stroke around a ColumnSeries item in a Flex ColumnChart control’
The following example shows how you can customize the horizontal grid lines in a Flex LineChart control by the horizontalStroke style.
Full code after the jump.
Continue reading ‘Customizing the horizontal grid lines in a Flex LineChart control’
The following example shows how you can change the line colors in a LineChart in Flex by setting the lineStroke style in MXML or ActionScript, as seen in the following snippets:
MXML:
<mx:LineSeries id="closeSeries" yField="@close" form="curve" displayName="Close">
<mx:lineStroke>
<mx:Stroke color="haloGreen" weight="2" alpha="0.6" />
</mx:lineStroke>
</mx:LineSeries>
ActionScript:
<mx:LineSeries id="closeSeries" yField="@close" form="curve" displayName="Close" />
...
closeSeries.setStyle("lineStroke", new Stroke(0xFF0000, 2, 0.4));
Full code after the jump.
Continue reading ‘Changing default line colors in a Flex LineChart control’
The following example shows how you can customize the radial stroke in a Flex PieChart control by using the PieSeries class’s radialStroke style and the mx.graphics.Stroke class, as seen in the following snippet:
<mx:PieChart dataProvider="{dp.product}" height="250" width="100%">
<mx:series>
<mx:PieSeries id="pieSeries" field="@data">
<mx:radialStroke>
<mx:Stroke color="black" weight="2" />
</mx:radialStroke>
<mx:filters>
<mx:Array />
</mx:filters>
</mx:PieSeries>
</mx:series>
</mx:PieChart>
Full code after the jump.
Continue reading ‘Customizing radial strokes in a Flex PieChart control’
The following example shows how you can customize the stroke in a Flex PieChart control by using the PieSeries class’s stroke style and the mx.graphics.Stroke class, as seen in the following snippet:
<mx:PieChart dataProvider="{dp.product}" height="250" width="100%">
<mx:series>
<mx:PieSeries id="pieSeries" field="@data">
<mx:stroke>
<mx:Stroke color="black" weight="2" />
</mx:stroke>
<mx:filters>
<mx:Array />
</mx:filters>
</mx:PieSeries>
</mx:series>
</mx:PieChart>
Full code after the jump.
Continue reading ‘Customizing strokes in a Flex PieChart control’