4 Replies Latest reply on Jul 19, 2010 11:46 PM by danilopau

Missing lines/bars in a chart

Hi,

just another little problem.

Let's assume that i have a column chart, and a series of simples values:  3, 5, 7, 2, 9, 2, 1.

Now, let's assume that my vertical axis have a minimum value of 0 and a maximum of 6: i mean, it shows the Y values from 0 to 6.

The problem is that in this way i can see two "holes" in the chart, and it is for the column that have the 7 and 9 values.. the chart doesn't render them becouse their Y value is greater the the axis maximum.. how can i make it show them anyway? I'm developing a simple chart scrolling and i see that this happen with the column but with the lines too.. i'd need to see a bar/line drown till the end of the chart, even if it's end point is not in the visible part of the chart.

Thank you very very much,

Danilo

• 1. Re: Missing lines/bars in a chart

Tried LineSeries.interpolateValues = true?

• 2. Re: Missing lines/bars in a chart

Thanks, but interpolateValues works if i have missing values.. i have another problem here.. i mean, i have all the values.. for example, i have this points:

A (1, 4)

B (2, 6)

C (3, 2)

D (4, 5)

Now imagine that i have my horizontal axis with the min showed value = 0 and the max = 3.. i will see the points from A to C.. but if i now drag the chart to the left, and i have min = 0.5 and max 3.5.. i can see the same points, and in the chart the line that goes from C to D is not drown, because the D point is not visible.. i can see the line from C to D only when, dragging, the X = 4 point appears in the horizontal axis.. but i want that line to be drown in any case, even if its end point is not in the graph (and the same with the bars).

I hope i've been clear, sorry for my english, and anyway thanks for the answer

Danilo

• 3. Re: Missing lines/bars in a chart

What you are looking for is the Series.filterData property. By default, it is set to true which filters out data points outside of the range of the chart axes. Set it to false and it will render everything.

You can see a demo and read more about it here:

http://blog.ninjacaptain.com/2010/03/flex-chart-zoom-window/

• 4. Re: Missing lines/bars in a chart

Perfect, it was the answer i was looking for.. and i can't understand how i missed this property

Thank you very much!