Álvaro González

Can't Make Sample Json Work

Recommended Posts

I'm trying to compose a "Multi-series Stacked Column 2D Line Dual Y Combination Chart" graph following the documentation at http://docs.fusionch...SS/Combi2D.html but all I get is an empty graph:

 

pruebamscombi2d.png

 

 

I'm loading the sample JSON from the docs with this code:

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css"><!--
#my-graph{
width: 600px;
height: 400px;
}
--></style>
<script type="text/javascript" src="js/FusionCharts/FusionCharts.js"></script>
<script type="text/javascript"><!--
window.onload = function(){
var debugMode = 0;

myGraph = new FusionCharts("js/FusionCharts/MSCombi2D.swf", "fc-my-graph", "100%", "100%", debugMode);
myGraph.setJSONUrl("prueba-mscombi2d.json");
myGraph.render("my-graph");
};
//--></script>
</head>
<body>

<div id="my-graph"></div>

</body>
</html>

 

 

Is there some typo in the documentation or am I doing something wrong? (Other graph types I've tried work just fine.)

Share this post


Link to post
Share on other sites
Guest Sumedh

I'm trying to compose a "Multi-series Stacked Column 2D Line Dual Y Combination Chart" graph following the documentation at http://docs.fusionch...SS/Combi2D.html but all I get is an empty graph:

 

pruebamscombi2d.png

 

 

I'm loading the sample JSON from the docs with this code:

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css"><!--
#my-graph{
width: 600px;
height: 400px;
}
--></style>
<script type="text/javascript" src="js/FusionCharts/FusionCharts.js"></script>
<script type="text/javascript"><!--
window.onload = function(){
var debugMode = 0;

myGraph = new FusionCharts("js/FusionCharts/MSCombi2D.swf", "fc-my-graph", "100%", "100%", debugMode);
myGraph.setJSONUrl("prueba-mscombi2d.json");
myGraph.render("my-graph");
};
//--></script>
</head>
<body>

<div id="my-graph"></div>

</body>
</html>

 

 

Is there some typo in the documentation or am I doing something wrong? (Other graph types I've tried work just fine.)

 

 

 

Hi,

 

I am not able to replicate the same.

 

Please find attached screen-shot and illustration which is rendered using the same code.

post-24802-0-23432900-1339406092_thumb.png

MSCombiDY2D_JSON.zip

Share this post


Link to post
Share on other sites
I am not able to replicate the same.

 

Please find attached screen-shot and illustration which is rendered using the same code.

 

Thank you for your feedback. To reproduce the issue, replace your data.JSON file with the sample data you can find in the documentation. I've attached it to this reply.

 

data.zip

Share this post


Link to post
Share on other sites
Guest Sumedh

Thank you for your feedback. To reproduce the issue, replace your data.JSON file with the sample data you can find in the documentation. I've attached it to this reply.

 

 

 

Hi,

 

You are using Multi-Series Stacked Column 2D Line Dual Y JSON format to plot MSCombiDY2D chart.

 

As both the charts are different and they use different calculations to plot the data.

 

You can not plot MSCombiDY2D chart using Multi-Series Stacked Column 2D Line Dual Y JSON format and vice versa.

 

MSCombiDY2D chart support different JSON format.

 

For more information, please refer the following URLs:

http://docs.fusionch...tColLineDY.html

 

http://docs.fusionch.../Combi2DDY.html

 

Hope this helps.

Share this post


Link to post
Share on other sites
Guest Sumedh

Sorry, I made I typo in my original post (I can't seem to be able to edit the message once posted). The chart title was wrong (the rest is fine). What I want is:

 

Your code and links are for some other graph types.

 

Hi,

 

This is running fine at our end.

 

We are not able to replicate it.

 

Please find attached illustration for your reference.

MSCombi2D.zip

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