Sign in to follow this  
gurudutt

Help! Invalid Xml Data

Recommended Posts

Guest Angshu

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

First of all, we would like to thank you for showing interest in FusionCharts.

 

Could you please send us the XML code to look into the issue?

 

Awaiting for your response.

Share this post


Link to post
Share on other sites

<?php

session_start();

$email=$_SESSION["email"];

require("dbconnect.php");

$clr=array('AFD8F8','F6BD0F','8BBA00', 'FF8E46', '008E8E', 'D64646', '8E468E', '588526', 'B3AA00', '008ED6', '9D080D', 'A186BE');

$sql="select * From users where email='$email'";

$result=mysql_query($sql);

if(mysql_num_rows($result)!=0)

{

while($row = mysql_fetch_array($result))

{

$uid=$row['uid'];

}

}

$sql1="select os,count(os) as share From stat where uid='$uid' group by os;";

$result1=mysql_query($sql1);

echo "<graph caption='Browser Share' xAxisName='Browser' yAxisName='Share' showNames='1' animation='1' lableDisplay=' STAGGER' showLabels='1' rotateLabels='0' showShadow='1' showAlternateVGridColor='1' alternateVGridAlpha='10' alternateVGridColor='AFD8F8' numDivLines='4' decimalPrecision='0' canvasBorderThickness='1' canvasBorderColor='114B78' baseFontColor='114B78' hoverCapBorderColor='114B78' hoverCapBgColor='E7EFF6' decimalPrecision='0' formatNumberScale='0'>";

$i=0;

if(mysql_num_rows($result1)!=0)

{

//echo "uiiiiii===>>>$uid";

while($col=mysql_fetch_array($result1)){

$i++;

echo "<set name='".$col['os'] ."' value='".$col['share']."' color='".$clr[$i%12]."' />";

}

}

else echo "error";

echo "</graph>";

?>

Edited by gurudutt

Share this post


Link to post
Share on other sites

the above code works well on my old server... i does not change any of line in code... but when i uploaded on my new webserver... it ijust shows invalid xml data... its a part of my project for b.tech final year. and very thanks to fusion chart developer to make such a great product for college students that is free to use....

Edited by gurudutt

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thank you very much and all the best for your exam!smile.gif

 

Your XML shows: "Connection Estabilished"...<br>

You would need to remove the above line in order to run the XML code properly.

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

We are glad to know that you have managed to resolve your problem.

 

Keep smiling and keep FusionCharting!biggrin.gif

Share this post


Link to post
Share on other sites

i want to use fusion map to show countries on world map.. via longitude and latitude. i have DB... table having entity longitude, latitude and countryname... i can not able to understand the marker system...

 

i want to use dataurl method like i use in fusion chart as it shown above.... i tried to do but can not understand very well the live example of fusion map "Hits By Country"

. can any one help me. what to do change in my above code of fusion chart to get xml well for "Hits By Country".

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

Thanks for your post.

I am afraid, FusionMaps does not support latitude and longitude, at this time.

Marker is a pixel based positioning system which is located on x and y co-ordinates and relative to map's original width and height.

"Hits By Country" is a sample created for each country using markers having animation effects.

FusionMaps v3 comes with a visual GUI, which helps you visually configure map properties and provide data to it without getting into any form of scripting or programming.

 

For more details, please visit the link: http://www.fusioncha.../GUI/Index.html

 

Hope this helps.smile.gif

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