Problem with dataURL method
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Problem with dataURL method Expand / Collapse
Author
Message
Posted 7/10/2007 5:04:32 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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?

Post #1581
Posted 7/16/2007 10:59:21 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts 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
Post #1626
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 4:34pm


Execution: 0.047.