palmun Report post Posted July 8, 2011 Hello Guys I am trying to deliver Linked charts using JSON data. I am using the javascript way now and then planning go the render tag route. I am using the evaluation version. I am able to see the level1 charts but not the linked chart when clicked on parent charts. I have all the three javascript files (FusionChart.js, highcharts.js, jquery.min.js). I am using setJSONData and this is the data I use {"chart":{"caption":"OutstandingsDashboard","xaxisname":"months","yaxisname":"Outstanding Amount"}, "data":[{"label":"JUN10","value":100.01,"link":"newchart-json-1"}, {"label":"JUL10","value":200.01,"link":"newchart-json-2"}], "linkeddata":[{"id":"1", "linkedcharts": {"chart":{"caption":"Dealer Outstandings","xaxisname":"name","yaxisname":"Outstanding Amount"}, "data":[{"label":"label_1_14","value":100.01}, {"label":"label_1_15","value":200.01}, {"label":"label_1_16","value":300.01}, {"label":"label_1_17","value":400.01}, {"label":"label_1_18","value":500.01}, {"label":"label_1_19","value":600.01}, {"label":"label_1_20","value":700.01}, {"label":"label_1_21","value":800.01}, {"label":"label_1_22","value":900.01}, {"label":"label_1_23","value":1000.01}]}}, {"id":"2", "linkedcharts": {"chart":{"caption":"Dealer Outstandings","xaxisname":"name","yaxisname":"Outstanding Amount"}, "data":[{"label":"label_2_24","value":100.01}, {"label":"label_2_25","value":200.01}, {"label":"label_2_26","value":300.01}, {"label":"label_2_27","value":400.01}, {"label":"label_2_28","value":500.01}, {"label":"label_2_29","value":600.01}, {"label":"label_2_30","value":700.01}, {"label":"label_2_31","value":800.01}, {"label":"label_2_32","value":900.01}, {"label":"label_2_33","value":1000.01}]}} ]} Further more I have the same problem when trying the data provided by the Fusion chart examples. Is this feature available in evaluation version. Any help will be greatly appreciated. Share this post Link to post Share on other sites
Sanjukta Report post Posted July 11, 2011 Hi, Please try using the attached modified JSON data (Linkedchart.json) file to render the chart perfectly. Please remove the .txt extension to use the same. Hope this helps. Linkedchart.json.txt Share this post Link to post Share on other sites
neosenate Report post Posted July 11, 2011 Hi, Please try using the attached modified JSON data (Linkedchart.json) file to render the chart perfectly. Please remove the .txt extension to use the same. Hope this helps. Hi, When you're referencing the link to the chart you use, "newchart-xml-ID1". From my understanding of the documentation (http://www.fusioncha...arts.html#basic), this is technically wrong and should be "newchart-json-ID1". When I modified your code to use the json reference it stopped working like the OP. Is the documentation wrong or is this a bug in the library? With thanks Share this post Link to post Share on other sites
Sanjukta Report post Posted July 11, 2011 Hi, Please note that FusionCharts accepts only XML as the data internally. The JSON data provided is at first converted to XML and then fed to the chart internally. Since the inherent XML structure is retained in Linked charts, hence we provide the link as "newchart-xml-ID". However, we are looking into this and shall update you in case we make any changes to this. Currently please try rendering the Linked chart using the "newchart-xml-ID" format. Hope this helps. Share this post Link to post Share on other sites
palmun Report post Posted July 11, 2011 Thanks for the reply. I am still not able to see the Linked chart. I using setJSONData and lining in the JSON Data. I am attaching the file and if you could please take a look at it and see if I am doing anything wrong, that would be great. Thank you for your help. I am able to see the first level. Hi, Please try using the attached modified JSON data (Linkedchart.json) file to render the chart perfectly. Please remove the .txt extension to use the same. Hope this helps. weekly-sales-jsondef.html Share this post Link to post Share on other sites
Sanjukta Report post Posted July 11, 2011 Hi, Please note that the Flash Player Global Security settings needs to be enabled, if you are running the application from local file system (C:\ or D:\) and not from web server (local or live). Flash Player's Global Security setting blocks invoking/calling JavaScript from SWF (Flash Movie) by default. So you need to reset your setting into Global Security Setting panel and enable it. Please refer to the following page for further details on the Flash Player Global Security settings: http://www.fusioncharts.com/Tools/FlashPlayerSecuritySetup/HowToSetup.html Hope this helps. Share this post Link to post Share on other sites
palmun Report post Posted July 11, 2011 Thank you very much. It is working. From your conversation I understand that one does not need this setting if the content is delivered through a Web server. Am I correct? Hi, Please note that the Flash Player Global Security settings needs to be enabled, if you are running the application from local file system (C:\ or D:\) and not from web server (local or live). Flash Player's Global Security setting blocks invoking/calling JavaScript from SWF (Flash Movie) by default. So you need to reset your setting into Global Security Setting panel and enable it. Please refer to the following page for further details on the Flash Player Global Security settings: http://www.fusioncha...HowToSetup.html Hope this helps. Share this post Link to post Share on other sites
Guest Angshu Report post Posted July 12, 2011 Hi, You are absolutely correct. Glad to know that you have managed to resolve your problem. Happy FusionCharting! Share this post Link to post Share on other sites