Hari Report post Posted November 21, 2010 Hi, I am new to FusionCharts. I am trying to create fusion charts with GXT. I am able to create a basic pie chart with GXT. The problem is coming when I am trying to link each datapoint to a particular URL. I have gone through the documentaion of FusionCharts.v3 and followed the similar approach as it was done for HTML. Following is the code used to generate a drill down chart. But when I click on the data point it gives 404 not found error. public void onModuleLoad() { Viewport viewport = new Viewport(); final PieChart chart = new PieChart(); chart.setHeight(450); chart.setWidth(600); chart.updateChartXML("<graph caption=\"Yearly sales\" xAxisName=\"Year\" yAxisName=\"Sales\">" + "<set name=\"2004\" value=\"37800\" link=\"newgraph-xml-2004-quarterly\" />" + "<set name=\"2005\" value=\"21900\" link=\"newgraph-xml-2005-quarterly\" />" + "<set name=\"2006\" value=\"32900\" link=\"newgraph-xml-2006-quarterly\" />" + "<set name=\"2007\" value=\"39800\" link=\"newgraph-xml-2007-quarterly\" />" + "<linkeddata id=\"2004-quarterly\">" + "<graph caption=\"Quarterly Sales Summary\" subcaption=\"For the year 2004\"" + "xAxisName=\"Quarter\" yAxisName=\"Sales\">" + "<set name=\"Q1\" value=\"11700\" />" + "<set name=\"Q2\" value=\"8600\" />" + "<set name=\"Q3\" value=\"6900\" />" + "<set name=\"Q4\" value=\"10600\" />" + "</graph>" + "</linkeddata>" + "<linkeddata id=\"2005-quarterly\">" + "<graph caption=\"Quarterly Sales Summary\" subcaption=\"For the year 2005\"" + "xAxisName=\"Quarter\" yAxisName=\"Sales\">" + "<set name=\"Q1\" value=\"5500\" />" + "<set name=\"Q2\" value=\"7100\" />" + "<set name=\"Q3\" value=\"3900\" />" + "<set name=\"Q4\" value=\"5400\" />" + "</graph>" + "</linkeddata>" + "<linkeddata id=\"2006-quarterly\">" + "<graph caption=\"Quarterly Sales Summary\" subcaption=\"For the year 2006\"" + "xAxisName=\"Quarter\" yAxisName=\"Sales\">" + "<set name=\"Q1\" value=\"6700\" />" + "<set name=\"Q2\" value=\"9200\" />" + "<set name=\"Q3\" value=\"10800\" />" + "<set name=\"Q4\" value=\"6200\" />" + "</graph>" + "</linkeddata>" + "<linkeddata id=\"2007-quarterly\">" + "<graph caption=\"Quarterly Sales Summary\" subcaption=\"For the year 2007\"" + "xAxisName=\"Quarter\" yAxisName=\"Sales\">" + "<set name=\"Q1\" value=\"8900\" />" + "<set name=\"Q2\" value=\"6600\" />" + "<set name=\"Q3\" value=\"11200\" />" + "<set name=\"Q4\" value=\"13100\" />" + "</graph>" + "</linkeddata>" + "</graph>"); viewport.add(chart); RootPanel.get().add(viewport); } Error I am getting: HTTP ERROR: 404 NOT_FOUND RequestURI=/newgraph-xml-2004-quarterly Powered by Jetty:// Please suggest me how to make a linked chart in GWT. Share this post Link to post Share on other sites
Sanjukta Report post Posted November 22, 2010 Hi, I am afraid, FusionCharts for Free does not support the Linked charts. Could you please try downloading the latest version, i.e, FusionCharts v3.2.1 to avail the Linked charts, with the help of the following link? Ref.- http://www.fusioncharts.com/Download.asp Hope this helps. Share this post Link to post Share on other sites
Hari Report post Posted November 22, 2010 Thanks for the reply sanjukta, But the linked chart was working fine with the trial version when the chart was rendered in html. I copied the data from the xml file and given that as an argument to 'updateChartXML'. I do not know what went wrong. I do not even know If I can make it work using GXT. Share this post Link to post Share on other sites
Sanjukta Report post Posted November 22, 2010 Hi, FusionCharts v3.2 Evaluation version is the trial version of the commercial product. FusionCharts Free is a completely different product with an open source. FusionCharts Free does not support Linked charts. In case you wish to use Linked charts, please try downloading the FusionCharts v3.2 Evaluation pack. You can use Linked charts with GWT but you would need to have FusionCharts v3.2 or above to support it. Hope this helps. Share this post Link to post Share on other sites
bonjoe Report post Posted February 21, 2012 Hi Hari, The answer is yes for GWT/GXT. You can find an example here: http://fusionadapter.com/demo.html Share this post Link to post Share on other sites
Guest Sumedh Report post Posted February 23, 2012 Hi, Thanks a lot for your valuable post. Share this post Link to post Share on other sites