Sign in to follow this  
Guest Basundhara Ghosal

Adding anchors to labels update

Recommended Posts

Guest Basundhara Ghosal

Hi Mark,

In case you wish to add link to the datalabels, please refer to the attched sample.

Please note, FusionCharts does not support this natively and the solution is just a work-around.

Hope this helps.

links in datalabels.zip

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Mark,

You are most welcome.

Keep smiling and keep FusionCharting. :)

Share this post


Link to post
Share on other sites

Hi Basundhara

Will do!

Is it possible to use this with other types of charts?

I have attached xml to show what I'm trying to achieve.

<chart caption="Contract Periods" showFCMenuItem="0" formatNumberScale="0">
<categories>
<category name="<a href="JavaScript:test();">Comp 1 <a/>" />
<category name="<a href="JavaScript:test();">Comp 2 <a/>" />
<category name="<a href="JavaScript:test();">Comp 3 <a/>" />
<category name="<a href="JavaScript:test();">Comp 4 <a/>" />
<category name="<a href="JavaScript:test();">Comp 5 <a/>" />
</categories>
<dataset seriesName="No contract">
<set value="4" />
<set value="0" />
<set value="0" />
<set value="0" />
<set value="0" />
</dataset>
<dataset seriesName="0 - 6 months">
<set value="2" />
<set value="1" />
<set value="0" />
<set value="0" />
<set value="3" />
</dataset>
<dataset seriesName="6 - 12 months">
<set value="3" />
<set value="2" />
<set value="0" />
<set value="2" />
<set value="1" />
</dataset>
<dataset seriesName="12 - 36 months">
<set value="1" />
<set value="0" />
<set value="0" />
<set value="0" />
<set value="0" />
</dataset>
<dataset seriesName="36 - 60 months">
<set value="1" />
<set value="0" />
<set value="0" />
<set value="1" />
<set value="0" />
</dataset>
<dataset seriesName="more than 60 months">
<set value="2" />
<set value="0" />
<set value="0" />
<set value="1" />
<set value="0" />
</dataset>
</chart>

Cheers.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

The link feature works for the datalabels of the Multi-Series charts as well.

We have tested your XML and have added the 'isHTML='1'' and it seems to work fine now.

Ref.- <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>

Hope this helps. :)

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Mark,

You are most welcome. :)

Happy FusionCharting.

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