Ron Pasch
My Ramblings, Brainfarts & Other Stuff

The other day I was working on some charts for a client which had a static minimum and maximum value set on the vertical axis and ran into a problem with data not being drawn on the chart. It didn’t matter whether it was a LineChart or a ColumnChart or a PlotChart, the data simply would not be drawn because it was out of range of the axis minimum or maximum values.

In the case of a PlotChart it would not matter much, but in the case of a LineChart or ColumnChart it would present a lot of unwanted results ranging from misleading representation of the data to animation problems.

In order to fix this you have to set the filterData property to false on the chart serie that you are using in order for Flex to draw data that is out of the minimum or maximum range of the axis.

<mx:series>
	<mx:LineSeries filterData="false" />
</mx:series>

Choosing between the two different datasets (dataset 2 has data that is out of range) in the example below will show what it looks like with and without the filterData property set to false.

Get Adobe Flash player


Tags: ,

Post Comment

Please notice: Comments are moderated by an Admin.


Powered by Wordpress
This Theme is modified by me and based on BlueMod by FrederikM.de
BlueMod is a modification of the blueblog_DE Theme by Oliver Wunder