gurudutt Report post Posted May 4, 2011 whats the problem here. i think xml data is perfect... Share this post Link to post Share on other sites
Guest Angshu Report post Posted May 5, 2011 Hi, Welcome to FusionCharts Forum! 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
gurudutt Report post Posted May 5, 2011 (edited) <?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 May 5, 2011 by gurudutt Share this post Link to post Share on other sites
gurudutt Report post Posted May 5, 2011 (edited) 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 May 5, 2011 by gurudutt Share this post Link to post Share on other sites
Guest Angshu Report post Posted May 5, 2011 Hi, Thank you very much and all the best for your exam! 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. Share this post Link to post Share on other sites
gurudutt Report post Posted May 6, 2011 thanks... its working... i m note focusing on that... i just check xml format inside <graph>..... </graph> Share this post Link to post Share on other sites
Guest Angshu Report post Posted May 6, 2011 Hi, We are glad to know that you have managed to resolve your problem. Keep smiling and keep FusionCharting! Share this post Link to post Share on other sites
gurudutt Report post Posted May 6, 2011 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 Report post Posted May 6, 2011 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. Share this post Link to post Share on other sites
gurudutt Report post Posted May 6, 2011 ok thanks.. for this valuable information... i have to find some other solution for this.... Share this post Link to post Share on other sites
Guest Angshu Report post Posted May 6, 2011 Hi, You are always Welcome. Keep FusionCharting! Share this post Link to post Share on other sites