Before I go research this, let's think about it a little. If the value for Feb. is NULL, where is NULL on the chart? It isn't anywhere, of course, so (I suppose) that's why it can't be plotted. And you can't make the value 0 because then the line would go thru 0. You could compute a fake value which was the midpoint of the line between Jan and Mar -- I suppose that's what you want. But the data doesn't suppose that faked value. Just some thoughts.
why not filter out the null values in the query underlying the chart?
or, you could use:
nvl( mtbf , (select max(mtbf) from reliability where mtbf is not null and rel_date < REL.rel_date ) ) mtbf
from reliability REL
this query, assuming you are ordering by date, should work to grab the last mtbf that has a value thus passing through to the next plot without messing up your data
Thanks for the responses.
The RELIABILITY table does not have an entry for every month, just when a unit fails, so if I was looking at the reliability between say 01-JAN-09 and 31-DEC-09, I might have values for JAN and MAR but not for FEB. Whilst I could work out the midpoint for FEB, i.e. the middle between JAN and MAR, ideally I do not want to actually plot a point here as there is no data. I just want the line to go through that point. Hope that makes sense.
As for omitting the null values. The previous chart the client had did not show all months for the period selected, which meant the scale was not right. I want the scale on the x-axis to show all months for the selected period. This meant that I have had to say get data for all months, even if there is no data for that month. This is what has meant that I then have null values and so the line then does not show.
The query that you suggested would get the maximum mtbf where the date is less that my current plotting date, which is not necessarily right. And, as just mentioned, this means I would plot a point where I do not actually have any data.
So in essence I am saying I want to plot points for JAN and MAR, and not for FEB, and I want the JAN and MAR points to be joined by a line which goes through FEB, implying that FEB would have been the mid point between those two values. i.e. just join up all the points that I have thus ignoring the fact that there is "missing" data for a month.
Any more thoughts?