eagles9999

Members
  • Content count

    31
  • Joined

  • Last visited

  • Days Won

    1

About eagles9999

  • Rank
    Advanced Member
  1. 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?
  2. Problem with XML Dataset

    Please note that I have tried both double and single quotes for data values with no success
  3. 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>
  4. 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?
  5. 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.
  6. Am I missing something?

    Yes!.... That was it. Thank you so much.
  7. 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>
  8. I guess I am missing something

    Ah..... Yes..... that works....Thanx Is there any way to make it work on my local development laptop?
  9. 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?
  10. 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
  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. Scaling Primary And Secondary Y Axis

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

    Any joy with a solution Angshu? Cheers, Mark
  14. 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
  15. 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