cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Datalink value in Ichart ( Flavor: Pie ) ?

HariCS23
Contributor
0 Kudos

Hi Jermy,

I can select the pen numner form selection event of the legend by using


document.<appletname>.getchartObject.getSelectedPen()

How can get the values assoiciated with that pen or legned ( i mean datalink vales ).

I have added one column in the datalink columns of the ichart template and i need that datlink values based on the legend selection.

How can i do that?

Thanks

Vansi

Accepted Solutions (1)

Accepted Solutions (1)

jcgood25
Active Contributor
0 Kudos

Vansi,

Leveraging the Script Assistant to help you with methods, and using the javascript alert statement are great ways to learn how the applet methods behave.

The .getDatalinkValue(PENNUMBER,POINTNUMBER,ATTRIBUTE) method has three inputs - you already know how to get the pennumber, and since your chart is Pie then the pointnumber should be 1 since you don't have a line chart or group bar chart. The attribute is a one-based index for all of your mapped datalink columns, so if you only have one of these then use a static 1.

Regards,

Jeremy

HariCS23
Contributor
0 Kudos

Thanks. You are the man.

I was trying that method using alert but i was confused about the two paramters point number,attribute.

Any way,once again thanks for the help.

Vansi

Edited by: vamsi P on Feb 22, 2008 12:52 PM

Answers (0)