Upendar Srirangam

Javascript Renderer Not Working For Json Data

Recommended Posts

Hi,

 

I have Chart data in the JSON format and am using Java script render. When I ran the page, i am getting java script error. Note: It is working fine for flash render. Can you please let us know the limitations of javascript with respect to JSON data.

 

Below is my code in the HTML

 

<head>

<title>Slide 1</title>

<script type="text/javascript" src="Charts/FusionCharts.js"></script>

</head>

<body>

<div id="chartContainer">FusionCharts will load here!</div>

<script type="text/javascript">

FusionCharts.setCurrentRenderer('javascript');

var myChart = new FusionCharts("Charts/MSColumn2D.swf", "myChartId", "400", "300", "0", "1");

myChart.setJSONUrl("data/data.json");

myChart.render("chartContainer");

</script>

</body>

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Please confirm whether you are using STYLES in your json code.

 

In case you are using STYLES, please try the same by removing STYLES from your json code.

 

Awaiting for your response.

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