Paul - 

 

Item renderers, in the chart (as elsewhere in the framework), get
recycled. Which means that the same item renderer may get assigned
different data items at different times.

 

My bet as to what's happening here is:  in your custom item
renderer.data property, you're not calling invalidateDisplayLIst(). The
first time your renderer gets data, it displays correctly, because it's
never been updated so it will go through an initial update pass. But
when its data property is assigned to a different value, it doesn't
automatically get updated unless you explicitly say that you need
updating, so you never see the rendering change on screen.

 

The datatip is working correctly because you actually update the data
tip in your set data function.

 

That's my first guess at the problem. If that doesn't solve it, we'll
have to dig deeper.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of paultwright
Sent: Tuesday, April 10, 2007 12:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Filtered data in Plot Series

 

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> 
wrote:
> 
> Hi Paul. Off the top of my head, I don't see any reason why that 
should
> be happening. Can you share a simple test case?
> 
> Ely.

I've tried to simplify this test case a bit. It involves "scrolling" 
of the data. I'm modifying the min & max values for the 
DateTimeAxis. 

You can view my "simplified" example @ 

http://programming.wrighthomeenterprises.com/Flex/Chart.html

The source is also available via the standard View Source mechanism.

You'll observe two PlotSeries with the same data provider, etc...
The only difference is in the value of the filterData attribute on 
the PlotSeries. 

As you scroll left to 10/8 & 10/9 entries, you'll see the disparity.
The interesting part is that the tool tips for each of the plot items 
is correct in both cases.

This may simply be a result of my limited experience in writing a 
custom item renderer here. I couldn't find an easier way to do this.

If you see a glaring error in my custom item renderer implementation, 
I would be grateful regarding any revelation. Thanks in advance for 
any assistance with this problem!

Paul

 

<<attachment: image001.jpg>>

<<attachment: image002.jpg>>

Reply via email to