I extended ChartLabel, overrode updateDisplayList() to do what you suggested, Tom, and set the titleRenderer on the AxisRenderer, and that seems to work around the issue. I still could be doing something wrong, but this looks like a framework issue. I'll check the latest sdk version and file a ticket if necessary.
Thanks, -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -----Original Message----- From: Maciek Sakrejda <msakre...@truviso.com> Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] null parent for ChartLabel Date: Mon, 16 Mar 2009 09:42:37 -0700 That's the thing: nothing especially complicated going on. We have custom axes and custom labelFunctions, but we're using the stock AxisRenderer. We re-parent the Chart during this layout change, but that's it (we certainly don't re-parent the labels manually). Perhaps I'll try to see if I can get a simple re-parenting test case to repro this, and I'll file a bug with that. Thanks, Maciek -----Original Message----- From: Tom Chiverton <tom.chiver...@halliwells.com> Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] null parent for ChartLabel Date: Mon, 16 Mar 2009 13:00:27 +0000 On Friday 13 Mar 2009, Maciek Sakrejda wrote: > which, combined with the error, seems to imply that this ChartLabel has > no parent (!), Chart labels are cached, much like item renderers. > why this could be happening (I can't nail down a simple set of steps to > this)? Any thoughts for workarounds? What are you doing to the data provider of the chart ? Do you have a customer chartlabel renderer or function ? You could also try changing the code to be: if(parent is AxisRenderer && parent.rotation == 90) If the latter works, please file a bug with the patch in.