schulle877

links for categories?

Recommended Posts

Hi!

 

I have a StackedBar3D chart. I want to use it for drilldown.

 

I can assign links to set elements using

 

$FC->addChartData($value,"link=www.web.de");

 

Is it possible to assign links to category elements, so that all stacked parts of the bar and even the category label is linked?

 

Code must be like

 

$FC->addCategory($categoryname,"link=www.web.de");

 

Or is there another possibility, except linking all stacked parts :)

 

Thank you.

 

 

 

Sven Schulze

Share this post


Link to post
Share on other sites

Hi Sven,

I am afraid, FusionCharts supports the "link" attribute only in the <set> element, as of now. :)

Natively this is not possible. But there is a hack for this.

Please try providing the "link" as the string value for the attribute "label" in the <category> element which would in turn would let the category to behave a s a link.

Also, please try setting the attribute "isHTML" to '1' in the <styles> element to achieve what you intend to.

Ref.- <chart>

  <categories>

  <category label='<a href="test();">Jan <a/>' />

  ...

  </categories>

  <styles>

<definition>

  <style name='myLabelsFont' type='font' font='Arial' size='14' color='000066' bold='1' isHTML='1'/>

</definition>

  <application>

  <apply toObject='DataLabels' styles='myLabelsFont' />

  </application>

</styles>

  </chart>

Hope this helps. :)

Edited by Guest

Share this post


Link to post
Share on other sites

Hello Sanjukta,

 

 

 

I am facing a very strange issue in using this method for creating links in categories. The links work fine if I set rotateNames='0' but do NOT work (are not clickable) when I enable rotateNames by using rotateNames='1' .

 

 

 

I am using Developer licence charts with ScrollLine2D.swf. The MD5 hash of the .swf file is 7F54C6FBDE4BA9C9E385F3F716E12ED7. This may help you in identifying the version number. However, the version.txt says:

 

 

 

FusionCharts v3.1

 

Release: 24th February 2009

 

 

 

Please help me out on this issue. The XML I am using is your example XML found in GalleryDataScrollLineData.xml with the modifications you stated here. The XML I am using is attached with the message.

 

 

 

The rotateNames='1' is the culprit here. Please let me know of any workarounds or if there is a update of .swf file available.

 

 

 

Kind regards,

ScrollLineData.xml

Edited by Guest

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