Hi Carl. I'd like to help, but I really need to see your code.  Again, a
very simple example...of your item renderer, and the mxml, and some
actionscript that shows what kind of a change you're trying to
make...will be necessary to really help.  I don't see your item renderer
code in the post below.

 

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of carl_steinhilber
Sent: Friday, May 11, 2007 8:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Absolutely forcing chart to redraw

 

Anyone else have any ideas?
I really need to get this solved, or I'll have to throw out the entire
app and build it in something else. This is crucial functionality.

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "carl_steinhilber"
<[EMAIL PROTECTED]> wrote:
>
> Thanks Ely... I was hoping to catch your attention ;-)
> 
> The (complete) code for the itemRenderer is below in my original
> posting. Was there some other sample code that would be useful? I
> can't imagine that the MXML would be all that helpful... as all that
> would show is that I'm assigning the custom itemRenderer to the
> PlotSeries of the chart. But... let me know.
> 
> Basically my app consists of two panes, one contains the chart, and
> one contains a datagrid, both bound to the same object for their
> dataProviders. The object is actually being populated via a DB query
> using Flexcubed's FlexSQL SWC (since the backend is ASP and I can't
> use CF on this project). But I don't think that plays into it since
> I've checked a number of times that the array is created as expected
> and is valid.
> 
> The query loads up a bindable object (localData). I have a button to
> save the data back to the DB, but until the user elects to do so, I
> just want to operate with the local version of the object. So I can't
> go back to the DB for a full refresh. But I tried something like:
> {
> var origDataProvider = chart.dataProvider;
> chart.dataProvider = new Object();
> chart.dataProvider = origDataProvider;
> }
> and even that didn't refresh the chart appropriately.
> 
> Can you give me some pointers to "have my dataprovider items dispatch
> change events"?
> 
> Thanks much!
> -Carl 

> At runtime, the chart initially loads exactly as expected (items the
> correct size, color and position). Then if I update the values for
> xAxis and/or yAxis, the item moves on the chart as expected (though if
> it moves from a positive value to negative value on either axis, the
> color remains green).
> But if I update the value for size it doesn't update the item on the
> chart, and if I update visible to false the item remains visible.

 

<<image001.jpg>>

<<image002.jpg>>

Reply via email to