How To Specify Links In Json File

Recommended Posts

<chart caption='ABC Bank Branches' subCaption='(In

Asian Countries)' yaxislabel='Branches' xaxislabel='Country'>

<set label='Hong Kong' value='235' link="JavaScript:myJS('Hong Kong,235');"/>

<set label='Japan' value='123' link="JavaScript:myJS('Japan, 123');"/>

<set label='Singapore' value='129' link="JavaScript:myJS('Singapore, 129');"/>

<set label='Malaysia' value='121' link="JavaScript:myJS('Malaysia, 121');"/>

<set label='Taiwan' value='110' link="JavaScript:myJS('Taiwan, 110');"/>

<set label='China' value='90' link="JavaScript:myJS('China, 90');"/>

<set label='S. Korea' value='86' link="JavaScript:myJS('S.Korea, 86');"/>




In xml we specify link in javascript for XML file like this:link="JavaScript:myJS('Hong Kong,235');"How to specify links in javascript for json data file????

Edited by nilesh_1021

Share this post

Link to post
Share on other sites
Guest Sumedh



Please refer the following JSON Code:




"chart": {

"caption": "ABC Bank Branches",

"subcaption": "(In Asian Countries)",

"yaxislabel": "Branches",

"xaxislabel": "Country"


"data": [


"label": "Hong Kong",

"value": "235",

"link": "JavaScript:myJS('Hong Kong,235');"



"label": "Japan",

"value": "123",

"link": "JavaScript:myJS('Japan, 123');"



"label": "Singapore",

"value": "129",

"link": "JavaScript:myJS('Singapore, 129');"



"label": "Malaysia",

"value": "121",

"link": "JavaScript:myJS('Malaysia, 121');"



"label": "Taiwan",

"value": "110",

"link": "JavaScript:myJS('Taiwan, 110');"



"label": "China",

"value": "90",

"link": "JavaScript:myJS('China, 90');"



"label": "S. Korea",

"value": "86",

"link": "JavaScript:myJS('S.Korea, 86');"





Also, refer the following URL:

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