whitemedia
Members-
Content count
7 -
Joined
-
Last visited
About whitemedia
-
Rank
Forum Newbie
-
Found out that the problem is when i load the chart inside a <table> <tr> <td> <div id="chartContainer" style="width:100%">Fusionchart will load here!</div> </td> </tr> </table> and uses 100% of width for the chart. If I set a fixed width for the chart it works.
-
I´ve tried all version. For now I´m using 3.2.3-sr3.5347 Chart:Column3D.swf <script type="text/javascript"><!-- var myChart = new FusionCharts("FusionCharts/Column3D.swf", "myChartId", "100%", "420", "0", "1"); myChart.setXMLData("<chart caption='Hotel Uppsala' subcaption='2012-04-18 - 2012-04-25' decimalPrecision='2' yAxisMaxValue='6' exportEnabled='1' exportAtClient='0' exportFileName ='Hotel_Uppsala' exportHandler='FusionCharts/FCExporter.php' aboutMenuItemLabel='About E-inbjudan' aboutMenuItemLink='n-http://www.e-inbjudan.se'>" + "<set label='Rummet' value='4.4210526315789' link='welcome.php?t=survey_view_question&id=332&q=1' />" + "<set label='Städkvalitet' value='4.4210526315789' link='welcome.php?t=survey_view_question&id=332&q=2' />" + "<set label='Frukost' value='4.4210526315789' link='welcome.php?t=survey_view_question&id=332&q=3' />" + "<set label='Personal' value='4.6315789473684' link='welcome.php?t=survey_view_question&id=332&q=4' />" + "<set label='TV-utbud' value='3.8235294117647' link='welcome.php?t=survey_view_question&id=332&q=5' />" + "<set label='Helhetsintryck' value='4.1578947368421' link='welcome.php?t=survey_view_question&id=332&q=6' />" + "</chart>"); myChart.render("chartContainer"); // --> </script>
-
When i load my chars in Ie6 i get an error message after awhile thats say that the script is running to long and can cause the computer to freeze. Do you want to abort the script. Everything worrks in FF Safari etc.
-
No answer on this issue?
-
$enkatname is stored in a Mysql $strXML = "<graph caption='".$enkatname."' subcaption='".$start." - ".$end."' yAxisMaxValue='6' yAxisName=' ' numberPrefix='' showNames='1' showValues='1' rotateNames='0' labelDisplay='WRAP' useEllipsesWhenOverflow='1' showColumnShadow='1' animation='1' showAlternateHGridColor='1' AlternateHGridColor='ff5904' divLineColor='ff5904' divLineAlpha='20' alternateHGridAlpha='5' canvasBorderColor='ffffff' baseFontColor='222222' lineThickness='3' limitsDecimalPrecision='0' divLineDecimalPrecision='0' decimalPrecision='2' bgColor='ffffff' exportEnabled='1' exportAtClient='0' exportHandler='FusionCharts/FCExporter.php' > "; if ($f1 == ''){}else{$result = mysql_query("SELECT f1 FROM enkatsvar WHERE enkatid = $enkatid AND f1 != 0 AND date > '$start' AND date < '$endny'"); $num_rows = mysql_num_rows($result); $res = mysql_query("SELECT sum( f1 ) as f1 FROM enkatsvar WHERE enkatid = $enkatid AND date > '$start' AND date < '$endny'"); $data = mysql_fetch_assoc( $res ); $total = $data['f1']; @(@($total2 = $total / $num_rows)); $strXML .= "<set name='$f1' value='$total2' />";} $strXML .="</graph>"; echo '<table border="0"> <tr><td>'; //Create the chart - Column 3D Chart with data from Data/Data.xml echo renderChartHTML("./FusionCharts/Column3D.swf", "", $strXML, "", 860, 420, false, true); echo'</td><td valign="middle"><a title="" href="templates/viewenkat_fullscreen.php?enkatid='.$enkatid.'&start='.$start.'&end='.$end.'" rel="lyteframe" data-lyte-options="width:100% height:450 scrolling:no"><img src="./images/icons/full_screen.png" width="35"></td> </tr> </table>';
-
Thanx for reply but it still doesnt work. Must have something to do with how i print it with PHP. $strXML = "<graph caption='".$enkatname."'.......
-
How can i get this code to work $enkatname = 'Some text & some text' $strXML = "<graph caption='".$enkatname."'....... I get invalid XML Data