Sign in to follow this  
Lonnie W

SSGrid and links?

Recommended Posts

Is there any way to tell the SSGrid chart to respond to the link attributes in the XML data? I'd like it to drill down into the data just like a chart that used that same XML data.

Share this post


Link to post
Share on other sites

I'm afraid it's not currently possible. An alternative would be to specify each set label (in XML for the grid) as HTML with links embedded.

Share this post


Link to post
Share on other sites
An alternative would be to specify each set label (in XML for the grid) as HTML with links embedded.

 

 

 

The grid then displays the markup as text inside the label. That suggestion doesn't appear to me to facilitate creating links from Grid labels. I'm quite interested in how to do this, though.

Share this post


Link to post
Share on other sites

Similarly is there a way in which you can link a data item to an external site? I tried using your javascript inclusion with a drilldown but it came up a blank. I am really interested in this. Any help would be appreciated.

Share this post


Link to post
Share on other sites

probably you could do

 

<set link="http://www.othersite.com/whatever"/>

 

 

 

or

 

<set link="location.replace('http://www.othersite.com/whatever');"/>

Edited by Guest

Share this post


Link to post
Share on other sites

I am very interested in getting links to work for the SSGrid, the example above does not seem to work for me.

 

I am not sure exactly what you describe.

 

 

 

Could you provide an example?

 

 

 

Thank you,

 

Tom

Share this post


Link to post
Share on other sites

I got this working in the end setting label to a DIV:

 

 

 

label='& lt;DIV style="height:100%; vertical-align:middle;"& gt;& lt;a href="http://urllink"& gt;Caption"& lt;/a& gt;& lt;/DIV& gt;'

 

 

 

Remove the space between "& lt;" and "& gt;" above, had to insert them as the forum converts the text to this: < >

Share this post


Link to post
Share on other sites

please try this XML

<graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showValues='0' decimals='0' formatNumberScale='0' labelDisplay='Rotate'>

  <set label='<a href="http://FusionCharts.com" >Jan </a>' value='462' />

  <set label='<a href="http://FusionCharts.com" >Feb </a>' value='857' />

  <set label='<a href="http://FusionCharts.com" >Mar </a>' value='671' />

  <set label='<a href="http://FusionCharts.com" >Apr </a>' value='494' />

  <set label='<a href="http://FusionCharts.com" >May </a>' value='761' />

 <styles>

<definition>

<style name='mystyle' type='font' underline='1' color="FF0000" isHTML='1' />

</definition>

<application>

<apply toObject='datalabels' styles='mystyle' />

</application>"

 </styles>

</graph>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this