nonshatter

Members
  • Content count

    14
  • Joined

  • Last visited

About nonshatter

  • Rank
    Junior Member
  1. Save The Chart Image - Backend Process

    Hi there, I am having this rather annoying problem as well. There is a limitation in fusion charts which is: "Please note that in both cases, the chart first needs to render in a browser, before the bitmap snapshot can be sent to server for processing. You CANNOT directly generate an image of chart on server, without actually rendering it in browser." Refer to this section of the documentation: http://www.fusioncha...erOverview.html I hope the functionality we are looking for will be added to the next release of FC. View my thread here: http://forum.fusioncharts.com/topic/9151-how-to-email-a-fusionchart/
  2. How To Email A Fusionchart

    I'm not sure if what I'm trying to do is even possible... Yes, I can save the chart as a pdf, png etc. to disk and email it (which is manual). However, if I'm using a cron job to convert the chart to an image then I'm running into (expected) problems... "Please note that in both cases, the chart first needs to render in a browser, before the bitmap snapshot can be sent to server for processing. You CANNOT directly generate an image of chart on server, without actually rendering it in browser." Does anyone know of a PHP tool which can spawn a 'virtual browser' and send automated requests (E.g. Render the chart and save as an image)? I've previously used a similar library using Perl called LWP::UserAgent
  3. How To Email A Fusionchart

    That's fine, thank you for your response. I will look into this... Just one other question... is there a way of displaying the .swf directly as an image format instead? E.g. Don't use flash at all, but instead display a .png (Which would involve no exporting to the server), and save me some work! Many thanks, ns
  4. How To Email A Fusionchart

    Dear all, I have a requirement for my PHP charting app which is to allow users to save a chart as a 'shortcut' and allow them to send periodic scheduled emails. E.g. (Send a specific chart via email every Monday at 8am) I have read the FusionCharts FAQ which states the following: "Can I email the charts? Yes - you can email the charts as ActiveX Objects. But, most of the modern day email clients wouldn't show the chart for security reasons, as it's an ActiveX object. However, using the new image save feature, you can just right click on chart, save it and send via email." This is all rather vague, How do I make a chart an activeX object? Email clients obviously can't interpret/display the dynamic content. So presumably, the obvious way of doing this is to save the chart as an image and then send it. I'd like all of this to be automated on the server-side after the user clicks a button. I'd like to hear from anyone who has got this kind of functionality to work. It seems like it would be a pretty common requirement, yet I can't seem to find any helpful documentation on this. Any help is much appreciated, Regards, ns
  5. Data Is Only Plotted On Portion Of The Chart Canvas

    I've solved this issue. It turned out that this foreach loop was populating the xml data with a load of null values. //convert data items into XML. foreach ($arrData as $arSubData) { $strCategories .= "<category name='" . $arSubData[1] . "' />"; $strDataPassed .= "<set value='" . $arSubData[2] . "' />"; $strDataFailed .= "<set value='" . $arSubData[3] . "' />"; $strDataRetest .= "<set value='" . $arSubData[4] . "' />"; $strDataDeferred .= "<set value='" . $arSubData[5] . "' />"; $strDataAttempted .= "<set value='" . $arSubData[6] . "' />"; $strDataPlanned .= "<set value='" . $arSubData[7] . "' />"; } I simply made a check to make sure the arSubData values were set before converting them to XML, but I find it strange that it was doing this in the first place... Consider this solved. Thanks
  6. Data Is Only Plotted On Portion Of The Chart Canvas

    Looks like this guy has had a similar problem, but no solution is provided http://forum.fusioncharts.com/topic/6131-error-help-me/
  7. Data Is Only Plotted On Portion Of The Chart Canvas

    Any ideas Angie?! A-ha! I've just noticed the debug window outputs this a couple of times: Error: Invalid Number specified in XML. Fusion charts can accept number in pure numerical form only. If your number formatting (thousand and decimal seperator) is different, please specify so in XML. Also do not add any currency symbols or other signs to the numbers So there must be an error in my coding somewhere. What kind of values cause this problem? Thanks ns
  8. Data Is Only Plotted On Portion Of The Chart Canvas

    Hi there, here is the $strXML. Is there a way of printing the contents of the $strXML variable with it's subsequent values? $strXML = "<chart caption='$title' subCaption='. Test Case Progress .' yAxisName='Number of Tests' showValues='0' xAxisName='Date' paletteColors='008B00, FF0000, B23AEE, 00FFFF, FFF000, 0000FF' bgAlpha='50' canvasBgAlpha='80' anchorRadius='1' labelDisplay='AUTO' useEllipsesWhenOverflow='1'>"; $strCategories = "<categories>"; //Setup multiple serie datasets $strDataPassed = "<dataset seriesName='Passed'>"; $strDataFailed = "<dataset seriesName='Failed'>"; $strDataRetest = "<dataset seriesName='Retest'>"; $strDataDeferred = "<dataset seriesName='Deferred'>"; $strDataAttempted = "<dataset seriesName='Attempted'>"; $strDataPlanned = "<dataset seriesName='Plan'>"; //convert data items into XML. foreach ($arrData as $arSubData) { $strCategories .= "<category name='" . $arSubData[1] . "' />"; $strDataPassed .= "<set value='" . $arSubData[2] . "' />"; $strDataFailed .= "<set value='" . $arSubData[3] . "' />"; $strDataRetest .= "<set value='" . $arSubData[4] . "' />"; $strDataDeferred .= "<set value='" . $arSubData[5] . "' />"; $strDataAttempted .= "<set value='" . $arSubData[6] . "' />"; $strDataPlanned .= "<set value='" . $arSubData[7] . "' />"; } //Close <categories> element $strCategories .= "</categories>"; //Close <dataset> elements $strDataPassed .= "</dataset>"; $strDataFailed .= "</dataset>"; $strDataRetest .= "</dataset>"; $strDataDeferred .= "</dataset>"; $strDataAttempted .= "</dataset>"; $strDataPlanned .= "</dataset>"; //Assemble the entire XML now $strXML .= $strCategories . $strDataPassed . $strDataFailed . $strDataRetest . $strDataDeferred. $strDataAttempted. $strDataPlanned. "</chart>"; echo $strXML; //Generate the MS line chart using the flash file. echo renderChart("/tms/php/req3/MSLine.swf", "", $strXML, "req3$set", 800, 500, false, true);
  9. Hi all, I've really been struggling with this... I have a nice MSLine chart on the go, all working, bloody lovely. I have added a select box at the bottom of my page which is intended to allow the user to select the date range from which to plot the new chart. However, when the chart re-loads using the new date ranges, the chart is only plotted on portion of the chart canvas. All the data that is being plotted with the new date range is definitely correct, only that the plot isn't being spread or scaled to fit the canvas. It's all being squashed over to the left hand side of the chart. I have attached the image of the squashed chart. Does this look like a chart configuration error, or a coding (PHP) error? Many thanks, ns
  10. Hi there, I have just bought my website license for fusion charts. It's been great so far, but I have just run into this problem... The chart has suddenly failed to load in Chrome. I just get a blank box with no information or error message. I have just tested the same page in Firefox and the chart works perfectly well which has confused me because this is clearly not a problem with the paths, right? It was working in Chrome earlier today... about:plugins in chrome shows that flash is installed: [b]Shockwave Flash[/b] (2 files)Shockwave Flash 10.1 r103 Could anyone tell me what the problem could be? Is there any chance that cookies could be causing this problem?Name:Shockwave Flash Edit ** - Apologies... I have just got it working again. I cleared my browsing cache and cookies, then restarted the browser and the chart fired up again. I'll let you know if this keeps happening.
  11. Working With Time Series

    I have found a partial solution to my problem. The option labelStep allows you to skip labels. "By default, all the labels are displayed on the chart. However, if you've a set of streaming data (like name of months or days of week), you can opt to hide every n-th label for better clarity. This parameter just lets you do so. It allows to skip n X-axis labels to show 1 label". However, this is a rather rigid solution. Does anyone know how I could display only the labels that are unique. E.g One for each unique date? Cheers
  12. Working With Time Series

    Hey Nikki, I have a similar problem which I was just about to post about! My data is also inconsistent. E.g: Along the x-axis I have dates of test results. And for one date there maybe 1 value, and the next date may have 10 values. So, along the x-axis there could be 4 labels saying the same date, or there could be upto 10 labels saying the same date. What I need is to display ONE label for each unique date. If anyone has any solution for this I'd like to hear it. Sorry to be hijacking your thread! Many thanks
  13. Chart Not Displaying!

    Thanks for your quick reply Rohit. I have resolved the problem. I started again from scratch (creating a new directory structure) which seemed to do the trick, also I used relative paths instead of the full path to the required files. Many thanks
  14. Chart Not Displaying!

    Hi, I am new to Fusion Charts. I have an issue when trying the examples on a linux machine (it worked fine previously on windows). When I load the chart from the browser, all I get is the word "Chart" and nothing else. If I load an .swf file from the /Charts sub-directory then the graphs display, which means I definitely have flash installed. Here is the code that isn't working: <?php //We've included ../Includes/FusionCharts.php, which contains functions //to help us easily embed the charts. include("/srv/www/htdocs/site/php/fc/FusionCharts.php"); ?> <HTML> <HEAD> <?php //You need to include the following JS file, if you intend to embed the chart using JavaScript. //When you make your own charts, make sure that the path to this JS file is correct. Else, you //would get JavaScript errors. ?> <script LANGUAGE="Javascript" SRC="/srv/www/htdocs/site/php/fc/FusionCharts_Evaluation/Charts/FusionCharts.js"></SCRIPT> <TITLE>FusionCharts - Simple Column 3D Chart</TITLE> </HEAD> <BODY> <?php //Create the chart - Column 3D Chart with data from Data/Data.xml echo renderChart("/srv/www/htdocs/site/php/fc/FusionCharts_Evaluation/Charts/Column3D.swf", "/srv/www/htdocs/site/php/fc/test.xml", "", "myFirst", 600, 300, false, true); ?> </BODY> </HTML> Can anyone tell me what the problem could be? Many thanks.