php - Fusioncharts does not diplay on mobile devices -


i have problem fusioncharts, use php , javascript. here code:

<div id="chartdiv_krpb" class="chartdiv_krpb"></div> <script type="text/javascript">     var mychart;     mychart = new fusioncharts("swf/pie2d.swf", "mychart_krpb", "100%", "240", "0", "1");     mychart.setdataurl("data/krpb.php?thnang=<? echo $thnang; ?>");     mychart.render("chartdiv_krpb"); </script> 

krpb.php

$sql = mysql_query("select acronym 'kode', sum(rphreal) rphreal t_sai left join rosi_chat.t_perk2 on kdperk2 = left(perksai, 2) thnang = '$thnang' , rphreal > 0 , t_perk2.kdtrn = '3' , kdkem = '0' , kdperk2 in ('51','52', '53', '57') group kdperk2") or die(mysql_error());  $strxml = "<chart pieradius='90' showpercentagevalues='1' showvalues='1' numberscalevalue='1000,1000,1000,1000' numberscaleunit=' k, j, m, t' formatnumberscale='1' animation='0' numdivlines='3' basefontsize='9' basefontcolor='000000'  showborder='0'  caption='realization' bgcolor='7a864e' bgalpha='50,75' bgratio='75' bgangle='270' canvasbgcolor='a7ab50' canvasbgalpha='50,75' canvasbgratio='75' canvasbgangle='270' canvasborderthickness='0'>"; while ($record = mysql_fetch_array($sql)) {     $strdata .= "<set label='" . $record['code'] . "' value='" . $record['rphreal'] . "' />"; } $strxml .=  $strdata . "</chart>"; echo $strxml; 

problem fusioncharts on ios, android , other mobile devices can't load chart?

the code seems perfect , problem can because of 1 of following-

1) of .js files missing or not in same folder.

http://docs.fusioncharts.com/charts/contents/introduction/downloadc.html

2) path provided wrong.

3) iphone, ipad, itouch, android(>honeycomb) etc. use flash- check out documentation explicit rendering in javascript mode.

http://www.fusioncharts.com/dev/usage-guide/getting-started/your-first-charts/building-your-first-chart.html can used reference.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -