The following example shows how you can adjust the interval of horizontal grid lines in a LineChart by setting the horizontalChangeCount style.
Full code after the jump.
The following example shows how you can adjust the interval of horizontal grid lines in a LineChart by setting the horizontalChangeCount style.
Full code after the jump.
The following example shows how you can add horizontal or vertical (or both) grid lines to a LineChart contol in Flex by setting the direction style in the GridLines tags, as seen in the following snippet:
<mx:LineChart dataProvider="{dp}">
<mx:backgroundElements>
<mx:GridLines direction="vertical" />
</mx:backgroundElements>
</mx:LineChart>
Full code after the jump.
Continue reading ‘Displaying grid lines in a Flex LineChart control’
The following example shows how you can alternate background row colors in a LineSeries chart in Flex by setting the horizontalAlternateFill style in the GridLines object, as seen in the following snippet:
<mx:LineChart showDataTips="true" dataProvider="{dp}">
<mx:backgroundElements>
<mx:GridLines>
<mx:horizontalAlternateFill>
<mx:SolidColor color="haloSilver" alpha="0.25" />
</mx:horizontalAlternateFill>
</mx:GridLines>
</mx:backgroundElements>
</mx:LineChart>
Full code after the jump.
Continue reading ‘Alternating background row colors in a Flex LineSeries chart’
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 display the selected pie series item when the user clicks a wedge in a PieChart control.
Full code after the jump.
The following example shows how you can specify a custom icon field in a Flex Tree control to set an icon on a specific node.
Full code after the jump.
Continue reading ‘Setting a custom icon field in a Flex Tree control’
The following example shows how you can build a custom icon function on a Flex Tree control to display different icons depending on the current node name in the data provider.
Full code after the jump.
Continue reading ‘Creating a custom icon function on a Flex Tree control’
The following example shows how you can create a custom label function on a LinearAxis in a Flex LineChart control.
For an example of creating a custom label function for the horizontal/category axis, check out “Creating a custom label function on a Flex LineChart control’s category axis”.
Full code after the jump.
Continue reading ‘Creating a custom label function on a Flex LineChart control’s linear axis’