Brian -- are your labels set at an angle?  If they are, it would explain
why you are having problems.  The Flash Player can't render device text
at an angle. You'll have to use embedded fonts, or set the axis to not
render the labels at an angle.
 
Regarding the performance...Are you seeing actual performance issues, or
just lots of updateDisplayList calls?  It's hard to tell without more
information, but it's totally reasonable to expect that your labels will
be rendering alot. Every time anything in the chart changes, it needs to
verify that its displaying the right ranges, the right labels, in the
right location.  All of that would require updating every one of your
labels.
 
But it's also possible that something you're doing is causing excessive
updates. It's also possible that custom label renderers don't perform
well ;)
 
Ely.
 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of brianhegeman
Sent: Wednesday, March 07, 2007 6:11 AM
To: [email protected]
Subject: [flexcoders] Chart Axis Labels as Link



I've searched the list and can't find anything quite touching on this
issue. I have a bar chart (with custom item renderer) with two
vertical Category axes and a horizontal Linear axis. For each of the
Category axes I'd like the label to be a link to an URL. I can get the
*text* as I want it using labelFunction on the mx:AxisRenderer without
trouble but I'm baffled as to how I'd get the label to be a link. I'm
guessing I need to write a custom label renderer (or two) but I just
can't get it to work. The LabelRenderer I created (extends UIComponent
implements IDataRenderer) performs horribly -- updateDisplayList is
called constantly according to trace statements -- and displays no
label.

Could anyone at least verify that it's possible to have a web link as
an axis label and that I'm heading down the right path creating a
label renderer? If so, any pointers on how to get the label to be a
link?

Thanks,
Brian



 

Reply via email to