phido
Members-
Content count
7 -
Joined
-
Last visited
Everything posted by phido
-
Hello. I recently noticed my charts were being cached in IE explorer. As a result, visitors see the charts on their initial visit, but not on subsequent visits. The chart on are rendered on a PHP page as follows ... <div id="chartdiv" align="center">FusionCharts. </div> <script type="text/javascript"> var chart = new FusionCharts("../charts/Line.swf", "ChartId", "750", "310", "0", "0"); chart.setDataURL("data/99_001.xml"); chart.render("chartdiv"); </script> How do I prevent IE from applying its cache so charts are rendedered on subsequent visits? Thak you.
-
Attempted to implement the following ... <div id="chartdiv" align="center">FusionCharts. </div> <script type="text/javascript"> var chart = new FusionCharts("../charts/Line.swf", "ChartId", "750", "310", "0", "0"); <?php $micro = microtime(); echo 'chart.setDataURL("data/99_001.xml?nocache= . $micro");'; ?> chart.render("chartdiv"); </script> .. but results are the same. Any thoughts?
-
Thank you for the very fast reply. To clarify ... The page itself is a PHP page, but php is only applied to produce some content that is unrelated to FusionCharts. The charts are produced (fairly generically I'm presuming) as follows. <head> <script language="javaScript" src="../jsclass/FusionCharts.js"></script> </head> <body> <div id="chartdiv" align="center">FusionCharts. </div> <script type="text/javascript"> var chart = new FusionCharts("../charts/Line.swf", "ChartId", "750", "310", "0", "0"); chart.setDataURL("data/99_001.xml"); chart.render("chartdiv"); </script> <div id="chartdiv2" align="center">FusionCharts. </div> <script type="text/javascript"> var chart = new FusionCharts("../charts/Line.swf", "ChartId", "750", "310", "0", "0"); chart.setDataURL("data/99_001a.xml"); chart.render("chartdiv2"); </script> </body> The charts are generally accessed via a UI on another page. A visitor with an empty cache will see the charts as expected. However, it seems that as long as the cache is not cleared (of the specific page's content) the visitor is presented with the FusionCharts placeholder when visiting the page. Once the cache is cleared the cycle repeats; i.e., upon visiting the page the chart is rendered as expected ... then until the cache is cleared the user sees the Fusioncharts placeholder. This only seems to be happening in IE9. If IE9 settings are set to 'Check for newer versions of stored pages ... every time I visit the webpage' the FusionCharts content renders normally. For the sake of speed, this is not IE9's default setting; at least it wasn't on my installation. It is set to: 'Check for newer versions of stored pages ... automatically.' I doubt users will bother to change this. Two images are attached (1) emptycacheview.png, and (2) fullcacheview.png. Thanks again for the assistance.
-
I recently upgraded from 3.x to v3.2. But, I'm having difficulty displaying my charts using the Javascript renderer. E.g. vertical grid doesn't display, grid dashes don't appear, x-axis labels don't follow labelStep, etc. I've attached two examples. flash.png is produced w/ flash, and is the result I am seeking. js_render.png is produced using the javascript renderer. Here are the specifications in the chart's XML file. <chart animation='1' showlabels='1' labelDisplay='None' labelStep='21' showValues='0' yAxisMinValue='136' yAxisMaxValue='220' caption='' bgColor='ffffff' bgAlpha='100' canvasBorderColor='333333' canvasBorderThickness='1' canvasBorderAlpha='100' showborder='0' lineColor='333333' lineThickness='1' lineAlpha='100' drawAnchors='1' anchorRadius='2' anchorBorderColor='333333' anchorBorderThickness='1' anchorBgColor='ffffff' divLineColor='333333' divLineIsDashed='1' divLineAlpha='100' alternateHGridColor='ffffff' alternateHGridAlpha='35' numVDivLines='11' vDivLineColor='333333' vDivLineThickness='1' vDivLineAlpha='100' vDivLineIsDashed='1' showAlternateVGridColor='0' numberSuffix='' baseFont='Arial' baseFontColor='000000' outCnvBaseFontSize='11' canvasPadding='3' chartRightMargin='35' > Why the big difference in the way charts are rendered using javascript renderer? Thanks in advance for your help. Regards.
-
A Question About Javascript Renderer Use
phido replied to phido's topic in Installation and Upgrades
Thank you for the reply. -
A Question About Javascript Renderer Use
phido replied to phido's topic in Installation and Upgrades
Thanks for the fast reply. I'm curious ... Does the override you discussed require separate presentations (two web pages) to show a chart, one for javascript and one for flash? Or, does it function as intended; i.e., one web page that dynamically adapts to user_agent? FC is a great product, but I'm somewhat surprised at the script's status given FC's presentation and installation instructions. -
Hi. I think I'm close to successfully applying this, but suspect I'm not properly specifying the dataXML [%put XML here%] value, since i keep getting a "No data to display" error message. Say, that relative to the chart page I'm creating the data is at: data/MSLine.xml. Is it correct to replace the entire [%put XML here%] statement with data/MSLine.xml? No quotes, etc.