|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/1/2007 3:02:27 AM
Posts: 2,
Visits: 6
|
|
| Hi, In my jsp, I am using dataURL method to render the chart. I am giving path of another jsp which contains the chart xml. But it does not render the chart and gives this message : "No data to display" This is my javascript function; function drawChart1(metricValue) { var myChart = new FusionCharts("<%=contextRoot%>/charts/MSCombi2D.swf", "CombinationExposure", "750", "250", "0", "1") ; strURL = "<%=contextRoot%>/jsps/facility/exposures/NewData.jsp"; myChart.setDataURL(strURL); myChart.render("chartdiv") ; } And this is my NewData.jsp : <% response.setContentType("text/xml"); %> <chart> <set label='B' value='12' /> <set label='C' value='10' /> <set label='D' value='18' /> <set label='E' value='21' /> </chart>
When I am pasting the url of the jsp in browser, it is displaying the xml properly. Please let me know what could be the possible reason behind this. How to solve this?
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 7/29/2008 12:15:49 PM
Posts: 2,001,
Visits: 474
|
|
This message is displayed when you're using a single series SWF file and providing data in multi-series format (or vice versa). Please check for that.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|