Sign in to follow this  
Atrhick

No Data To Display

Recommended Posts

please see my code and generated XML i don't see the problem please help

 

 

PHP Code

$strXML1 = "<chart caption='Arbitrage Buyer Comparison' lineThickness='2' showValues='0' numVDivLines='22' formatNumberScale='1' labelDisplay='ROTATE' slantLabels='1' anchorRadius='2' anchorBgAlpha='50' showAlternateVGridColor='1' anchorAlpha='100' animation='1' limitsDecimalPrecision='0' divLineDecimalPrecision='1'>";	


				$strXML1 .= "<dataset seriesName='". $bname1 ."' color='0080C0' anchorBorderColor='0080C0' >";
				 while ($linedata1 = mysql_fetch_assoc($result1))
				 {
					$linedata1_date = substr($linedata1['date_day'],8);
					$linedata1_sum = $linedata1['bname1'];
					$strXML1 .= "<set name='$linedata1_date' value='$linedata1_sum' />";
				 }
				 $strXML1 .= "</dataset>";

				 $strXML1 .= "<dataset seriesName='". $bname2 ."' color='008040' anchorBorderColor='008040'>";
				 while ($linedata2 = mysql_fetch_assoc($result2))
				 {
					$linedata2_date = substr($linedata2['date_day'],8);
					$linedata2_sum = $linedata2['bname2'];
					$strXML1 .= "<set name='$linedata2_date' value='$linedata2_sum' />";
				 }
				 $strXML1 .= "</dataset>";


				$strXML1 .= "</chart>";
				echo renderChart("../../admin/FusionCharts_Evaluation/Charts/MSLine.swf", "", $strXML1, "Arbitrage_Buyer_Comparison", 855, 320);	
			}

 

 

XML Output

<script type="text/javascript" ><!--
// Instantiate the Chart 
if ( FusionCharts("Arbitrage_Buyer_Comparison") && FusionCharts("Arbitrage_Buyer_Comparison").dispose ) FusionCharts("Arbitrage_Buyer_Comparison").dispose();
var chart_Arbitrage_Buyer_Comparison = new FusionCharts( {  "swfUrl" : "../../admin/FusionCharts_Evaluation/Charts/MSLine.swf",  "width" : "855",  "height" : "320",  "renderAt" : "Arbitrage_Buyer_ComparisonDiv",  "dataFormat" : "xml",  "id" : "Arbitrage_Buyer_Comparison",  "dataSource" : "

<chart caption='Arbitrage Buyer Comparison' lineThickness='2' showValues='0' numVDivLines='22' formatNumberScale='1' labelDisplay='ROTATE' slantLabels='1' anchorRadius='2' anchorBgAlpha='50' showAlternateVGridColor='1' anchorAlpha='100' animation='1' limitsDecimalPrecision='0' divLineDecimalPrecision='1'>
<dataset seriesName='AllWebLeads' color='0080C0' anchorBorderColor='0080C0' >
	<set name='01' value='1.7425' />
	<set name='02' value='21.4' />
	<set name='03' value='88.7675000000001' />
	<set name='04' value='119.67' />
	<set name='05' value='0.034' />
	<set name='06' value='0.034' />
	<set name='07' value='0.0255' />
	<set name='09' value='0.034' />
	<set name='10' value='0.1275' />
	<set name='12' value='0.0765' />
	<set name='13' value='0.3315' />
	<set name='14' value='0.0255' />
	<set name='16' value='0.034' />
</dataset>
<dataset seriesName='CompareInsuranceQ' color='008040' anchorBorderColor='008040'>
	<set name='01' value='10.4865' />
	<set name='02' value='110.2825' />
	<set name='03' value='133.4645' />
	<set name='04' value='67.5015' />
	<set name='05' value='172.5332' />
	<set name='06' value='370.6034' />
	<set name='07' value='228.5293' />
	<set name='08' value='83.115' />
	<set name='09' value='503.1444' />
	<set name='10' value='574.123000000001' />
	<set name='11' value='864.926400000001' />
	<set name='12' value='1392.9156' />
	<set name='13' value='1201.649' />
	<set name='14' value='1221.0325' />
	<set name='15' value='605.951' />
	<set name='16' value='1505.497' />
</dataset>
</chart>" } ).render();
// --></script>

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your post.

 

It seems that you have not provided data properly in multi series format.

 

You are using a multi-series chart SWF and not providing data in multi-series format. In this case, you would get a "No data to display" message.

 

To know about single and multi series data format, please visit the links below:

 

http://docs.fusioncharts.com/charts/?DataFormats/XML/SingleSeries.html

 

http://docs.fusioncharts.com/charts/?DataFormats/XML/MultiSeries.html

 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this