From the category archives:

Charting

Adding a stroke around a ColumnSeries item in a Flex ColumnChart control

by Peter deHaan November 22, 2007

The following example shows how you can add a stroke around chart items in a Flex ColumnChart control.
Full code after the jump.

Read the full article →

Creating a radial gradient fill on a ColumnChart control’s column series in Flex

by Peter deHaan November 22, 2007

In a previous example, “Creating a linear gradient fill on a ColumnChart control’s column series in Flex”, we saw how to create a linear gradient fill for a ColumnChart in Flex. In the following example we look at how to create a radial gradient fill.
Full code after the jump.

Read the full article →

Animating a Flex PieChart control’s rotation when a user clicks on an item

by Peter deHaan November 22, 2007

In a previous example, “Rotating a Flex PieChart control when a user clicks on an item”, we looked at changing a PieChart’s rotation when the user clicked on a pie wedge. In the following example, we look at how to add a nice animation effect with some easing to make the effect a bit more [...]

Read the full article →

Creating a linear gradient fill on a ColumnChart control’s column series in Flex

by Peter deHaan November 20, 2007

The following example shows how you can create a linear gradient fill for a ColumnSeries in Flex.
Full code after the jump.

Read the full article →

Setting specific minimum and maximum ranges for a Flex LineChart control LinearAxis

by Peter deHaan November 19, 2007

The following example shows how you can set a specific minimum and maximum LinearAxis range for a LineChart control in Flex.
Full code after the jump.

Read the full article →

Aligning data in a Flex LineChart control to horizontal and vertical tick marks

by Peter deHaan November 19, 2007

The following example shows how you can align the tick marks along the vertical and horizontal axis using the horizontalTickAligned and verticalTickAligned styles in the GridLines class, as seen in the following snippet:

<mx:GridLines direction="both"
horizontalTickAligned="false"
verticalTickAligned="false">

</mx:GridLines>

Full code after the jump.

Read the full article →

Alternating background column colors in a Flex LineSeries chart

by Peter deHaan November 19, 2007

In a previous example, “Alternating background row colors in a Flex LineSeries chart”, we saw how to alternate row colors in a LineSeries chart using the horizontalFill and horizontalAlternateFill styles.
In the following example, we see a similar technique for setting column background colors using the verticalFill and verticalAlternateFill styles, as seen in the following snippet:

<mx:LineChart [...]

Read the full article →

Changing a chart legend’s direction

by Peter deHaan November 17, 2007

The following example shows how you can change the direction of a Flex chart’s legend by setting the direction property, as seen in the following snippet:

<mx:Legend dataProvider=”{lineChart}” direction=”horizontal” />

Full code after the jump.

Read the full article →

Creating a custom label function on a Flex LineChart control’s category axis

by Peter deHaan November 16, 2007

The following example shows how you can create a custom label function on a CategoryAxis in a Flex LineChart control.
For an example of creating a custom label function for the vertical/linear axis, check out “Creating a custom label function on a Flex LineChart control’s linear axis”.
Full code after the jump.

Read the full article →

Changing the horizontal grid line frequency in a Flex LineChart control using the horizontalChangeCount style

by Peter deHaan November 15, 2007

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.

Read the full article →

Displaying grid lines in a Flex LineChart control

by Peter deHaan November 15, 2007

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 [...]

Read the full article →

Alternating background row colors in a Flex LineSeries chart

by Peter deHaan November 15, 2007

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>
[...]

Read the full article →