Sign in to follow this  
FusionCharts Support

Links on charts (links on bars, and link on canvas)

Recommended Posts

There are 2 ways to attach links to the chart: clickURL on the chart element and then the link attribute in the datasets. However they seem to be exclusive, which is too bad.

 

 

 

I would have liked to be able to attach a link on each bar of my chart to access data specific to this bar, and attach another link on the full chart to access another view of the same information (actually get extra information as the chart is more like a summary). I expected that when clicking where a bar was I would link to the bar, and when I click anywhere else on the chart it would link to the new view of the data.

 

Unfortunately, the event is caught at the chart level before reaching the bars themselves and therefore never reaches the bar links.

 

 

 

Am I missing something, or would anyone have a suggestion to achieve the same effect? (another solution would be to have an other link in the title or subtitle, but I do not think this is possible.

 

 

 

Thanks

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

Try this trick...(this one is for DataURL)

<chart caption="<a href='http://www.InfoSoftGlobal.com' >Monthly Unit Sales</a>" xAxisName="Month" >
  <set label="Jan" value="462" link="http://www.fusionCharts.com"/> 
  <set label="Feb" value="857" /> 
  <set label="Mar" value="671" /> 
  <styles>
  <definition>
 <style name='LinkCaption' type='font' isHTML='1' />
  </definition>
  <application>
   <apply toObject='Caption' styles='LinkCaption' />
  </application>
  </styles> 
</chart>

For DataXML-

<chart caption='%26lt;a href=%26apos;http://www.InfoSoftGlobal.com%26apos; %26gt;Monthly Unit Sales%26lt;/a%26gt;' xAxisName='Month' >
  <set label='Jan' value='462' link='http://www.fusionCharts.com'/> 
  <set label='Feb' value='857' /> 
  <set label='Mar' value='671' /> 
  <styles>
  <definition>
 <style name='LinkCaption' type='font' isHTML='1' />
  </definition>
  <application>
   <apply toObject='Caption' styles='LinkCaption' />
  </application>
  </styles> 
</chart>

Happy hacking...

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