eagles9999

Members
  • Content count

    31
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by eagles9999

  1. Problem with XML Dataset

    Testing out XT and the simple test works fine. I need to get the Combination 2 yaxis chart working. Using the sample data I expected the code below to work. The fusioncharts.js is ok as it works in the simple example. However the code below does not work. I have tried locally and also from my server. Can anyone spot any error or reason why it will not work please. <html> <head> <title>My first chart using FusionCharts Suite XT</title> <script type="text/javascript" src="fusioncharts/fusioncharts.js"></script> <script type="text/javascript" src="fusioncharts/themes/fusioncharts.theme.fint.js"></script> <script type="text/javascript"> FusionCharts.ready(function(){ var revenueChart = new FusionCharts({ "type": mscombidy2d", "renderAt": "chartContainer", "width": "500", "height": "300", "dataFormat": "xml", "dataSource": <chart caption="Revenues and Profits" subcaption="For last year" xaxisname="Month" pyaxisname="Amount (In USD)" syaxisname="Profit %" numberprefix="$" snumbersuffix="%" syaxismaxvalue="50" theme="fint"> <categories> <category label="Jan" /> <category label="Feb" /> <category label="Mar" /> <category label="Apr" /> <category label="May" /> <category label="Jun" /> <category label="Jul" /> <category label="Aug" /> <category label="Sep" /> <category label="Oct" /> <category label="Nov" /> <category label="Dec" /> </categories> <dataset seriesname="Revenues"> <set value="16000" /> <set value="20000" /> <set value="18000" /> <set value="19000" /> <set value="15000" /> <set value="21000" /> <set value="16000" /> <set value="20000" /> <set value="17000" /> <set value="22000" /> <set value="19000" /> <set value="23000" /> </dataset> <dataset seriesname="Profits" renderas="area" showvalues="0"> <set value="4000" /> <set value="5000" /> <set value="3000" /> <set value="4000" /> <set value="1000" /> <set value="7000" /> <set value="1000" /> <set value="4000" /> <set value="1000" /> <set value="8000" /> <set value="2000" /> <set value="7000" /> </dataset> <dataset seriesname="Profit %" parentyaxis="S" renderas="line" showvalues="0"> <set value="25" /> <set value="25" /> <set value="16.66" /> <set value="21.05" /> <set value="6.66" /> <set value="33.33" /> <set value="6.25" /> <set value="25" /> <set value="5.88" /> <set value="36.36" /> <set value="10.52" /> <set value="30.43" /> </dataset> </chart> }); revenueChart.render(); }) </script> </head> <body> <div id="chartContainer">FusionCharts XT will load here!</div> </body> </html>
  2. Problem with XML Dataset

    Fixed it.... I don't understand why but I removed all the spaces and line breaks between the data in <chart></chart> and it works. Why does everything between the chart tags need to be a single string?
  3. Problem with XML Dataset

    Please note that I have tried both double and single quotes for data values with no success
  4. Can anyone please advise if it is possible to have a text label in or above a Pointer in a Lineal Gauge? The Value is fine below the pointer but I would like a label such as "You" above the pointer.
  5. Pointer Label on Linear Gauge

    Thanx Moonmi, Does that mean I can show the pointer value above or below. Or I can shoe a displayValue above with no numeric value below. But I cannot show displayValue above and numeric value below at the same time?
  6. Am I missing something?

    Hello, I have been using Fusion Charts for a long time an have no problem with them but I am now looking at Fusion Widgets and want to try out a horizontal linear gauge. For some reason I cannot get it to display and have searched for a reason but cannot find an answer. Not sure if I have a typo or some fundamental error. Any help here would be appreciated. Here is my code..... <html> <head> <title>My first gauge using FusionWidgets XT</title> <script type="text/javascript" src="fusioncharts/fusioncharts.js"></script> <script type="text/javascript" src="fusioncharts/fusioncharts.widgets.js"></script> <script type="text/javascript" src="fusioncharts/themes/fusioncharts.theme.fint.js"></script> <script type="text/javascript"> FusionCharts.ready(function () { var csatGauge = new FusionCharts({ "type": "hlineargauge", "renderAt": "chart-container", "width": "400", "height": "250", "dataFormat": "XML", "dataSource": "<chart caption="Server CPU Utilization" subcaption="food.hsm.com" captionfontcolor="#000000" subcaptionfontbold="0" bgcolor="#ffffff" showborder="0" lowerlimit="0" upperlimit="100" numbersuffix="%" valueabovepointer="0" showshadow="0" gaugefillmix="{light}" valuebgcolor="#ffffff" valuebgalpha="60" valuefontcolor="#000000" pointerbgcolor="#ffffff" pointerbgalpha="50" basefontcolor="#ffffff"> <colorrange> <color minvalue="0" maxvalue="35" label="Low" code="#1aaf5d" /> <color minvalue="35" maxvalue="70" label="Moderate" code="#f2c500" /> <color minvalue="70" maxvalue="100" label="High" code="#c02d00" /> </colorrange> <pointers> <pointer value="72.5" /> </pointers> </chart>" }); csatGauge.render(); }); </script> </head>
  7. Am I missing something?

    Yes!.... That was it. Thank you so much.
  8. I guess I am missing something

    I have been using earlier versions of Fusion Charts for many years and am now trying to implement using 3.4 I seem to be having some issues using an external xml data file. Using the example below with the data in the html file, it works. All good. sample1.html <html> <head> <title>My First chart using FusionCharts Suite XT</title> <script type="text/javascript" src="../fusioncharts/fusioncharts.js"></script> <script type="text/javascript" src="../fusioncharts/themes/fusioncharts.theme.fint.js"></script> <script type="text/javascript"> FusionCharts.ready(function () { var myChart = new FusionCharts({ "type": "column2d", "renderAt": "chartContainer", "width": "500", "height": "300", "dataFormat": "xml", "dataSource": "<chart caption='Harrys SuperMart' subcaption='Monthly revenue for last year' xaxisname='Month' yaxisname='Amount' numberprefix='$' palettecolors='#008ee4' bgalpha='0' borderalpha='20' canvasborderalpha='0' theme='fint' useplotgradientcolor='0' plotborderalpha='10' placevaluesinside='1' rotatevalues='1' valuefontcolor='#ffffff' captionpadding='20' showaxislines='1' axislinealpha='25' divlinealpha='10'><set label='Jan' value='420000' /><set label='Feb' value='810000' /><set label='Mar' value='720000' /><set label='Apr' value='550000' /><set label='May' value='910000' /><set label='Jun' value='510000' /><set label='Jul' value='680000' /><set label='Aug' value='620000' /><set label='Sep' value='610000' /><set label='Oct' value='490000' /><set label='Nov' value='900000' /><set label='Dec' value='730000' /></chart>" }); myChart.render(); }); </script> </head> <body> <div id="chartContainer">FusionCharts XT will load here!</div> </body> </html> However, if I now split the data out into an external xml file I get No Data to Display. Here is the html.... sample2.html <html> <head> <title>My First chart using FusionCharts Suite XT</title> <script type="text/javascript" src="../fusioncharts/fusioncharts.js"></script> <script type="text/javascript" src="../fusioncharts/themes/fusioncharts.theme.zune.js"></script> <script type="text/javascript"> FusionCharts.ready(function () { var myChart = new FusionCharts({ type: 'column2d', renderAt: 'chartContainer', width: '500', height: '300', dataFormat: 'xmlurl', datasource: 'sample2.xml', }); myChart.render(); }); </script> </head> <body> <div id="chartContainer">FusionCharts XT will load here!</div> </body> </html> And here is the xml file.... sample2.xml <chart caption='Harry's SuperMart' subcaption='Monthly revenue for last year' xaxisname='Month' yaxisname='Amount' numberprefix='$' palettecolors='#008ee4' bgalpha='0' borderalpha='20' canvasborderalpha='0' useplotgradientcolor='0' plotborderalpha='10' placevaluesinside='1' rotatevalues='1' valuefontcolor='#ffffff' captionpadding='20' showaxislines='1' axislinealpha='25' divlinealpha='10'> <set label='Jan' value='420000' /> <set label='Feb' value='810000' /> <set label='Mar' value='720000' /> <set label='Apr' value='550000' /> <set label='May' value='910000' /> <set label='Jun' value='510000' /> <set label='Jul' value='680000' /> <set label='Aug' value='620000' /> <set label='Sep' value='610000' /> <set label='Oct' value='490000' /> <set label='Nov' value='900000' /> <set label='Dec' value='730000' /> </chart> Can anyone please suggest what might be the issue. Cheers, Mark
  9. I guess I am missing something

    Ah..... Yes..... that works....Thanx Is there any way to make it work on my local development laptop?
  10. I guess I am missing something

    Hi Moonmi, Thank you for the link and sample. However, trying the two samples contained in there, the sample1 which uses inline data works perfectly, but the sample2 which calls the external data does not work. The screen changes to "Retrieving Data. Please Wait" and then nothing. Any suggestions please?
  11. Can someone please advise me if it is possible to create a Gantt Chart in FusionWidget and overlay a Line Chart on top of it with Fusion Charts? Thanx
  12. I a chart with 2 series. One Column and the other line. The Line series is fine but I cannot get the Primary Y axis to only show a value at the whole number div lines. It is showing a rounded zero decimal value at all the div lines. See the two atached images... What I Have and What I want. Does anyone know how to make this happen please. Cheers Mark
  13. Scaling Primary And Secondary Y Axis

    Hi Angshu. Where you able to find an answer to this problem please Cheers, Mark
  14. Scaling Primary And Secondary Y Axis

    Any joy with a solution Angshu? Cheers, Mark
  15. Need help on Server side Export

    Hey Angshu, Just to close this out.... Rather than try and find GD, I just installed to full PHP package on the server and all worked. Yay! :-) Thanx for you assistance. Kind Regards, Mark Bailey Ulaanbaatar, Mongolia
  16. Need help on Server side Export

    Thanx Angshu. Yes, I already visited there bu it says "GD has moved... and right now the site is down The GD library has moved to libgd.org, but as of this writing that site is down." So canot be downloaded from there. :-( Still searching. Cheers, Mark
  17. Scaling Primary And Secondary Y Axis

    Hi Andshu, No...that is not what I need. I have attached an image of what I need. Thanx Mark
  18. Need help on Server side Export

    Hi Angshu. Any idea where I can find the GD library. the site http://www.libgd.org/ is no longer alive. Cheers, Mark
  19. Scaling Primary And Secondary Y Axis

    Hi Angshu, I was able to achieve that earlier but that is not what I need. It is not possible to have a part of an LTI (Lost Time Injury). You eaither have one ore you dont. So that scale can ONLY be Whole Number such as 1,23 etc rather than 0.5, 0.6, 0.7 etc Cheers, Mark
  20. Fcexporter.php Problem

    I am trying to get FCExporter.php working. I can render the chart in my Browser perfectly. When I right click on the chart and select Save As JPG Image I see it capturing the data. No problem there. However, when the Download Dialog appears it is saying the Save name for the File is FCExporter.php rather than the image file. The code in my XML file is: exportEnabled='1' exportHandler='FusionCharts/FCExporter.php' exportAtClient='0' exportAction='download' and of course if I click Open or Save it returns me the FCExporter.php file. How can I get it to return the Image file instead. Hope you can assist. Cheers Mark
  21. Scaling Primary And Secondary Y Axis

    Hi Angshu, Thank you for your reply. Tried that and gave same result. :-( I have attached the html and xml file for you to have a look at. Hope you can spot the problem. Cheers, Mark LTIFR12.zip
  22. Need help on Server side Export

    This is exactly the problem I am having. Did you happen to find a solution. Cheers, Mark
  23. Scaling Y Axis

    I have created the chart attached. The xml for this chart is below. In the image you can see the pyaxis scale is from 0 to 0.5 But I am trying to force the scale to be from 0 to 0.3 I have tried everything I can think of to force the change to no avail. Any ideas would be appreciated. Thanx Mark <chart palette='2' exportEnabled='1' exportAtClient='1' exportHandler='fcExporter1' exportFileName='MyChart' exportCallBack='myFN' formatnumberscale='0' yaxismaxvalue='0.3' yaxisminvalue='0' > <categories> <category label='Mar 09'/> <category label='Apr 09'/> <category label='May 09'/> <category label='Jun 09'/> <category label='Jul 09'/> <category label='Aug 09'/> <category label='Sep 09'/> <category label='Oct 09'/> <category label='Nov 09'/> <category label='Dec 09'/> <category label='Jan 10'/> <category label='Feb 10'/> <category label='Mar 10'/> <category label='Apr 10'/> <category label='May 10'/> <category label='Jun 10'/> <category label='Jul 10'/> <category label='Aug 10'/> <category label='Sep 10'/> <category label='Oct 10'/> <category label='Nov 10'/> <category label='Dec 10'/> <category label='Jan 11'/> <category label='Feb 11'/> <category label='Mar 11'/> <category label='Apr 11'/> <category label='May 11'/> </categories> <dataset seriesName='Cumulative (Surplus)/Loss Per BCM'> <set value='0.000' /> <set value='0.000' /> <set value='0.000' /> <set value='0.021' /> <set value='0.037' /> <set value='0.050' /> <set value='0.045' /> <set value='0.036' /> <set value='0.034' /> <set value='0.030' /> <set value='0.026' /> <set value='0.024' /> <set value='0.022' /> <set value='0.020' /> <set value='0.018' /> <set value='0.014' /> <set value='0.013' /> <set value='0.013' /> <set value='0.011' /> <set value='0.014' /> <set value='0.013' /> <set value='0.011' /> <set value='0.008' /> <set value='0.009' /> <set value='0.010' /> <set value='0.009' /> <set value='0.009' /> </dataset> <dataset seriesName='Cumulative (Surplus)/Loss Per Tonne'> <set value='0.000' /> <set value='0.000' /> <set value='0.000' /> <set value='0.101' /> <set value='0.172' /> <set value='0.231' /> <set value='0.202' /> <set value='0.166' /> <set value='0.151' /> <set value='0.124' /> <set value='0.122' /> <set value='0.114' /> <set value='0.100' /> <set value='0.091' /> <set value='0.084' /> <set value='0.068' /> <set value='0.065' /> <set value='0.066' /> <set value='0.053' /> <set value='0.070' /> <set value='0.067' /> <set value='0.060' /> <set value='0.046' /> <set value='0.050' /> <set value='0.058' /> <set value='0.052' /> <set value='0.050' /> </dataset> </chart>
  24. Scaling Y Axis

    Thanx. Yes....that made a difference. Cheers, Mark
  25. I use Fusion Charts in my app and display the chart in the MS Browser ActiveX Control. Under WinXP and IE7 not problem. Everything works fine. But now under Win7 and IE8 there is a problem. The first time I run the chart it displays properly. However, when I close the window I get a Script Error. The error dialog provides the Line Number and Character but I cannot find a way to view the source from the Active X. The html chart header file that is being opened on has 43 lines but the error says line 53. I assume it is referring to some line in the data xml file that it loads. When I call the html chart header directly in a Browser, no problem. But even then when I view the source, I can only see the html chart header file. Additionally, if I call the same program a second time, the displayed chart is garbled and all squashed up in the top left hand corner of the screen. I have scoured the net looking for a way to downgrade IE8 to IE7 but is seems it is not possible in Win7 to do that. I have also tried adding to html chart header file to no avail. I have tried using different ActiveX browsers to no avail. Also, the waiting button at the bottom of the screen that changes to Save when I generate an export no longer appears in IE8. Any ideas would be really appreciated? I have tried uninstalling Flash 10 and re-installing...No change. I have attached my html file (FUELUSAGE.txt) and my xml data file (FUELUSAGE.xml) These work fine in IE7. FUELUSAGE.txt FUELUSAGE.xml