JohnLeg

Link In Caption

Recommended Posts

I have a pie chart that I would like to add a link to the caption. I tried both of the solutions outlined in this post

 

http://forum.fusioncharts.com/topic/3030-add-link-in-subcaption

 

but when my chart renders I see the exact text I had entered in the caption.

 

Here is the chart setup

{ "chart": {"formatnumberscale" : "0", "formatnumber" : "1", "showToolTip" : "1", "showPercentInToolTip" : "0", "showValues" : "0", "showLabels" : "0", "height" : "200", "width" : "200", "caption" : "%26lt;a href=%26apos;http://google.com%26apos; %26gt;Incomplete (733)%26lt;/a%26gt;"}, "data" : [ {"label":"Incomplete","value":733,"link":"j-FusionCall-Incomplete"}]}

 

Is it possible to have the caption be a link?

 

Thanks

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Please note that the Forum post that you have referred is a work around for providing link to the chart Caption.

 

It only works for Flash Charts by setting "isHTML" to '1' in font styles for "CAPTION" object.

 

Ref. Code:


{
 "chart": {
"formatnumberscale": "0",
"formatnumber": "1",
"showtooltip": "1",
"showpercentintooltip": "0",
"showvalues": "0",
"showlabels": "0",
"height": "200",
"width": "200",
"caption": "<a href='http://google.com' >Incomplete (733)</a>"
 },
 "data": [
{
 	"label": "Incomplete",
 	"value": "733",
 	"link": "j-FusionCall-Incomplete"
}
 ],
 "styles": {
"definition": [
 	{
   	"name": "MyFirstFontStyle",
   	"type": "font",
   	"font": "Verdana",
   	"size": "12",
   	"ishtml": "1"
 	}
],
"application": [
 	{
   	"toobject": "Caption",
   	"styles": "MyFirstFontStyle"
 	}
]
 }
}

 

Could you please try the above modified code and see if it helps?

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