DSobolewski Report post Posted May 6, 2011 (edited) Hello dev and member. Sorry for my bad english. The following short script that displays the columns in different colors: <?php $starttime = microtime(true); $now = gmdate("D, d M Y H:i:s") . ' GMT'; header ('Date: '.$now); header ('Expires: '.$now); header ('Last-Modified: '.$now); header ('Pragma: no-cache'); header ('Cache-Control: no-store, no-cache, max-age=0, must-revalidate'); include('../libFC/FusionCharts_Gen.php'); $FC = new FusionCharts('ScrollColumn2D',800,400); $FC->setSWFPath('../libFC/Charts/'); $FC->setInitParam('debugMode',false); $FC->setParamDelimiter(' ); $tab_alpha = array(100, 90, 80, 70, 60, 50, 40); $tab_kolory = array(); for ($cr = 0; $cr < 256; $cr += 51) { for ($cg = 0; $cg < 256; $cg += 51) { for ($cb = 0; $cb < 256; $cb += 51) { $tab_kolory[] = strtoupper( sprintf( '%02s%02s%02s', dechex($cr), dechex($cg), dechex($cb) ) ); } } } $tablica = $tab_kolory; $cyfra = 1000; $ilosc = count($tablica); for ($ia = 0; $ia < $ilosc_alpha; $ia++) { $na = $cyfra + ($ia * $cyfra); for ($ic = 0; $ic < $ilosc; $ic++) { $FC->addCategory($na + $ic); } } for ($ia = 0; $ia < $ilosc_alpha; $ia++) { $na = $cyfra + ($ia * $cyfra); for ($ic = 0; $ic < $ilosc; $ic++) { $FC->addChartData(72.34,'label='.($na + $ic).'$toolText=Kolor: '.$tablica[$ic].' Alpha: '.$tab_alpha[$ia].'$color='.$tablica[$ic].'$alpha='.$tab_alpha[$ ia].' ); } } $FC->renderChart(true); $stoptime = microtime(true); $total=round($stoptime-$starttime,5); echo 'Time: '.$total.' sec'; ?> php script execution time: 0.15661 sec - good Problem: time display in the browser: 11 sec !!!!! and browser it's blocked 5 sec. The screen stays white and does not show up any words such as "rendering continues". It could use a progress bar. How to overcome the problem of long waiting times so you see the chart? Computer CoreDuo 2.66, 4GB RAM, Windows7, IE or FF (browser). Best Regards Edited May 6, 2011 by DSobolewski Share this post Link to post Share on other sites
FusionCharts Support Report post Posted May 7, 2011 Hi, By any chance are you using HTTPS? Could you plese check once with Firebug Net tab in multiple test beds and let us know the figures? Share this post Link to post Share on other sites
DSobolewski Report post Posted May 7, 2011 (edited) Hi, By any chance are you using HTTPS? Could you plese check once with Firebug Net tab in multiple test beds and let us know the figures? No - only http. Link: http://wase.pl/testcolor.php Testing on several different computers give similar results. Edited May 7, 2011 by DSobolewski Share this post Link to post Share on other sites
FusionCharts Support Report post Posted May 9, 2011 Hi, Could you please try once setting animation='0' and useRoundEdges='0' ? Share this post Link to post Share on other sites
DSobolewski Report post Posted May 9, 2011 UseRoundEdges is my primary parameter used. http://wase.pl/testcolor2.php : defaultAnimation = 0; useRoudEdges = 0 http://wase.pl/testcolor1.php : defaultAnimation = 0; useRoudEdges = 1 Share this post Link to post Share on other sites
Sanjukta Report post Posted May 9, 2011 Hi, Please note that in order to render the chart timely, you would need to disable or keep the minimum required attributed related to alpha, tooltip, shadow and styles on the chart. Hope this helps. Share this post Link to post Share on other sites