There's no built in support for doing this.  If I were to try and make
this happen, I would probably do it like so:

 

1)      The PieSeries has a property called labelContainer.  This is a
reference to the flash.display.Sprite that contains all of the labels
being displayed by the Series.

2)      I would, early in initialization, grab a reference to this
Sprite.  Add an event listener to the sprite that will get called
whenever a child is added to the sprite.

3)      Whenever a child gets added, add a click handler to the child.

4)      When your click handler gets called, grab the text of the
currentTarget of the event. Use this to determine which item in the
dataProvider the label refers to.

 

Ely.

 

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of sanjaypmg
Sent: Monday, April 09, 2007 4:44 AM
To: [email protected]
Subject: [flexcoders] HyperLink on Label in PieChart

 

Hi All,

I have a pieChart in my application. I have given label postion 
labelPosition="callout" so the label is coming outside pieChart.

Let me first tell you one scenario, there are only 2 items one's 
value is 1 million and another value is 1 only. so the second value 
is a thin line which is not clearly visible but the label is coming 
out. Provided the chart items are clickables and some other window 
is coming with different values based on the itemClick Value.

Since a thin line is coming, its very hard to point and click on 
that thin line... 

Now here What I want is Can I make the label (The Item name or 
number is coming out with the pointing line) Clickable?

If its so, how can I do the same?

Request you to do the same....

Thanks in Advance,
SS

 

<<attachment: image001.jpg>>

<<attachment: image002.jpg>>

Reply via email to