ddebord Report post Posted March 5, 2007 Hi, I have a web application that needs to display a chart with data from every row of a returned recordset. I have the web page set up to loop through and create a chart for each set of data until the recordset is EOF. The page generates without any errors and all of the XML is correct for each chart, but the page will only generate one chart. It only generates a chart for the last row in my recordset. Any ideas on why this happens? Thanks D Share this post Link to post Share on other sites
Pallav Report post Posted March 6, 2007 Can you please paste your code here and upload as attachment? Share this post Link to post Share on other sites
ddebord Report post Posted March 6, 2007 Uploaded three files for you. aspcode.txt shows the looping structure used to generate the xml and display the chart. chartoutput.jpg shows what the web browser displays renderedhtml.txt shows the source of the page displayed in chartoutput.jpg. There doesn't seem to be anything wrong with the XML that I can see? But as you can see from the output it is only generating the last chart from the looping structure, which happens to be the last row returning from the recordset. Thanks again for the reply. I hope this helps D aspcode.txt rendered_html.txt Share this post Link to post Share on other sites
Pallav Report post Posted March 6, 2007 You're using the same chartId, chart variable Id, Div ID for all the charts in the page. See below (bold): var chart_FactorySum = new FusionCharts("FusionCharts/line.swf", "FactorySum", "800", "600", "0", "0"); Each chart in the page needs to have a different one. Share this post Link to post Share on other sites
ddebord Report post Posted March 7, 2007 That fixed it! Thanks again for the help. D Share this post Link to post Share on other sites