bonjarno

Members
  • Content count

    21
  • Joined

  • Last visited

Everything posted by bonjarno

  1. server side export to jpg

    Hi, In FCExporter.php, on line 416 & 417 I find the following code: // Add DOMId $arrStatus [] = "DOOMId=" . $meta["DOMId"]; Is DOOMId a misspelling intentionally? This in several versions I downloaded a while ago. Thanks, John Marno
  2. Export to JPEG

    hi - i am pasting in my post from another thread, as I explained in detail what I have going on...Please see if you can consolidate or something - I also sent files and screen captures to support email address. -- Hi - I had an implementation working correctly on one server, then when that code was moved to another server it would not work. In the new location, the JS callback function - FC_Exported - DOES get called but the objRtn.statusCode keeps coming back as ZERO. Also, I can see that there is no file created once the process is completed. -it really looks as if it would work - the chart displays correctly in the browser, then when the user asks to export it (so it can be included in a PDF version of what they see), the capture data progress indicator works - but then the JS routine gets called, finds the zero, and alerts user that it has failed. I know there is no communication issue between server and client - I have inserted the sending of email to me at various points in FCExporter.php and FCExporter_IMG.php - I can even get the entire raw image stream which comes from client to server in a POST, to be sent to me in the email I got FCExporter.php to create folders and text files just for testing. It is a very strange system - but like I said, I do have code that works on one server and could help you with that. If anyone has similar situation where it works in one place and then not in another - yet all code is same, all permissions same, please help!! John Marno
  3. problem saving server side

    Hi - I had an implementation working correctly on one server, then when that code was moved to another server it would not work. In the new location, the JS callback function - FC_Exported - DOES get called but the objRtn.statusCode keeps coming back as ZERO. Also, I can see that there is no file created once the process is completed. -it really looks as if it would work - the chart displays correctly in the browser, then when the user asks to export it (so it can be included in a PDF version of what they see), the capture data progress indicator works - but then the JS routine gets called, finds the zero, and alerts user that it has failed. I know there is no communication issue between server and client - I have inserted the sending of email to me at various points in FCExporter.php and FCExporter_IMG.php - I can even get the entire raw image stream which comes from client to server in a POST, to be sent to me in the email I got FCExporter.php to create folders and text files just for testing. It is a very strange system - but like I said, I do have code that works on one server and could help you with that. If anyone has similar situation where it works in one place and then not in another - yet all code is same, all permissions same, please help!! John Marno
  4. pie chart labels

    Hi, I have a constricted space for the pie charts in a page - as in 200px. The labels seem to really stretch out far away from the pie - and how do i hide the connector lines as I have seen in some examples but cannot find the settings in the XML reference of the documentation. Is it possible to place the labels more explicitly, and is it possible to add line breaks? I get Invalid XML when I add either html br's or backslash n's.... Thanks
  5. pie chart labels

    and what about removing connector lines? what about reducing the space between label and pie?
  6. pie chart labels

    ya, it helps a little, but really not enough. I really need to be able to have more control. It immediately caused labels to overlap... What is the Smart Label setting and that whole group of settings supposed to do? How do you use it? I tried it but it seems to have absolutely no effect at all.
  7. Labeling Pie2D Chart

    hi - i have a similar problem - I made a post but hope that someone will find this if they don't find the other. I have a dashboard with 4 spaces at 200px by 200px each, and each contains a pie chart, I specify the radius so that the charts are about 75 percent - of course I would like to go with more if possible. With the 3D there is ample space above and below the pies to display the labels. But the labels always extend left and right so much that they either get truncated or the pie has to be tiny - and even still they get truncated usually. How can I force them above and below? How can I use linebreaks for 2 word labels? I have tried the "Smart Label" settings and they seem to do nothing at all. Each of my pies has only 3 or 4 data sets so this seems like it should be easy to work... Thanks in advance... jm (bonjarno)
  8. Exporting images server side

    Hi Boris, John Marno here, aka Bonjarno. I have made some progress with some assistance from the support person named Sudipto - but I am stuck on having to click a button as well. I have made a workaround where the initial chart is a part of a rendered HTML page (PHP and MySQL initially), and already the user is supposed to click a link to generate a PDF version of the report. So I used the link to also serve as the button click that so far FC Exporting requires. I will keep you advised of progress and am pestering them with these same questions. FYI, you do have to have the v3.1 charts - and several of ours are not upgraded and do not work at all - but I have been able to generate JPGS to insert into the PDF with Pie3D, and others. Cheers, jm
  9. Hi, I am including all code. First are the 2 lines I edited as per documentation, relevant to my server set up. The last code is the entire PHP body of code in my test file. If you want, you can also execute this exact page by going to the following URL: http://dev.nsninsight.com/TestFCExport.php the 2 lines changed are: define ( "SAVE_PATH", "/var/www/nsninsight/chartexporttest/" ); and define ( "HTTP_URI", "http://dev.nsninsight.com/chartexporttest/" ); Now for my PHP (this is the entire contents of the PHP page above!!!): <? $PageTitle = "FC Export Test"; print "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>"; print "<html>"; print "<head>"; print "<META HTTP-EQUIV='Pragma' CONTENT='no-cache'>"; print "<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>"; print "<link rel='stylesheet' href='css/nsnstyle.css' type='text/css'>"; print "<title>InSight $PageTitle</title>"; print "<script type='text/javascript' language='JavaScript' src='fusioncharts/FusionCharts.js'></script>"; ?> <script type="text/javascript"> function FC_Exported(objRtn) { if (objRtn.statusCode == "1") { alert('yay! jpg generated...'); } else { alert('boo! jpg NOT generated...'); } } </script> <? print "</head>"; print "<body>"; $servername = $_SERVER['SERVER_NAME']; print "<hr>Server Name: ". $servername. "<hr>"; $FilePath = "chartexporttest/"; if (!is_dir($FilePath)) mkdir($FilePath, 0777); $ChartFile = "Pie3D.swf"; $ChartData = "<chart caption='Fusion Chart Export Test' bgColor='ccccff' showBorder='0' exportEnabled='1' exportAtClient='0' exportAction='Save' exportHandler='http://dev.nsninsight.com/ExportHandlers/FCExporter.php' exportFileName='FCExportTest'>"; $ChartData .= "<set label='Bob' value='1' />"; $ChartData .= "<set label='Carol' value='2' />"; $ChartData .= "<set label='Ted' value='3' />"; $ChartData .= "<set label='Alice' value='4' />"; $ChartData .= "</chart>"; print "<div id='chartdiv' align='center'>Chart Space...</div>"; print "<script type='text/javascript'>"; print "var myChart = new FusionCharts('fusioncharts/$ChartFile', 'myChartId', '500', '400', '0', '1');"; print "myChart.setDataXML("$ChartData");"; print "myChart.render('chartdiv');"; print "</script>"; print "</body>"; print "</html>"; ?>
  10. Exporting images server side

    No, I have still had no success. I added the parameter for the JPG export as well. One question I have is regarding the Waterfall2d chart - I notice that in the recently upgraded FC 3.1 there was no Waterfall in the download package - could this be the source of the trouble? I guess I could change to a different chart for this test but was hoping I would not have to... Do you have a simple PHP script to test with that you have verified works? Including the call back handler and everything? Surely you must somewhere - that way I can verify if the issue is on my server. If I feel motivated I may try to produce a stripped down test case myself - but would hope that you have one already before I invest the time. Thanks, John Marno
  11. Exporting images server side

    ok will try that. Jeesh. Is this really the best you guys' support can do? I feel as though I have to wait 24 hours until any piece of information can be exchanged... Really trying really trying really trying really trying really trying really trying
  12. Exporting images server side

    Hi I am having the exact same issue. I have a thread ongoing and perhaps we could work together on this. I need to generate a PDF version of a long report, of which the Fusion Chart is only a part. So the pure PDF generation is not what I want. I am using FPDF to write the PDF with live data, and I need to generate a JPG of the FC and insert that into the PDF. Is that what you are doing? Cheers, John Marno RFN Software
  13. Export to JPEG

    Hi, I have an email correspondence now with Sudipto - hopefully between you and he and myself we can get this solved. I need to end up with a PDF document that can be sent as an attachment to a generated email - so I believe I need to generate the JPG on the server, then insert that image into the PDF - a standalone PDF of the chart won't suffice. The fusion charts are a part of a larger report with a lot of other data. How and or where do I specify that I want a JPG? I believe that ultimately I don't want my callback function to do anything except in case of error. Basically, the user will set some filters in the PHP page (region, subregion, etc), then when they decide they have the report they like, they will click a link to generate the report as a PDF, that in turn will give them the ability to "push" the report out to a list of users. But at present, there is no file being generated on the server, and that's the first thing to solve. As I understand the way FC works, there is no way to generate the JPG without it first being viewed in the client's browser? That is why I suggested MacroMedia's Generator. That way, generating a PDF or whatever version of a report does not depend on the user. In a large system, we will want to just generate a set of PDF's and have them emailed to the appropriate parties. That is a case where no one would ever need to view a given chart in a browser. I could be a supervisor, and generate 100 different reports that get sent to 1000 people. All PDF's. Yet I would not want to view those 100 reports. Let's have fun, but let's get it done!
  14. Export to JPEG

    I have been doing that. But if you read it carefully, under "Exporting as Image/PDF", then "How it works?", then "Server-side exporting", then "Server-side exporting", the documentation is incorrect and incomplete. Go to that page, YES I made the changes to my PHP. Then scroll down to "Configuring th XML" you find the phrase "As previously mentioned, we just need to do to the following changes to the XML:", but further down you state that you need to Set up the call back handler...? The discussion of the call back handler is really confusing. Do I need my own or not? If as the docs state, I don't specify one and then the default one, "FC_Exported" is invoked, then why do I need my own???? And where in the world do you specify "JPG" is the output format you want? And am I supposed to use "FCExporter.php" or "FCExporter_IMG.php" or both in conjunction? And what about FusionChartsExportComponent.js? Is that a JS file I should be using? I assure you I have read this over many times. I also assure I am no dummy. I am frustrated. Cheers.
  15. Export to JPEG

    Hi, I am not having success in following FC documentation for generating a JPG. I have a set of dynamic and very long reports that display nicely in browser (from LAMP server...), with several FC charts embedded using JS method. That is all good. Now I need to generate real time PDFs. Using FPDF, and all is done except the FC charts - which I am trying to generate JPGs of charts and drop those into the PDF. I have spent 10 hours trying to generate a JPG on server with no success. Question: what happened to Macromedia's Generator? I worked 10 years ago on system where SWT files generated SWF, JPG, etc, nicely on server...but I know it was expensive and may not have survived purchase by Adobe? Anyway, it seems some crucial details are missing from FC Docs on server-side JPG generation. Please help. Anyone who has had success with this want to share code? Thanks in advance. John M.
  16. Changing the size of chart in runtime

    i do realize i can use the same file - so it's not really a complete performance issue to just call a javascript function and have it open a simple PHP page that displays the chart - but then I still have to handle chart parameter differences, etc.
  17. Changing the size of chart in runtime

    Hi, similar situation, different platform. This is a typical PHP/MySQL set up - a LAMP system in fact. I have a set of charts embedded in clients' browser - each is composed of a hit to a Stored Procedure on the DB. I am currently using the XML file creation method (another question coming soon...we want to use the URL method but it has not worked ...perhaps to much data ?). So the charts are very small, I want my user to be able to click the chart and it opens in a new and larger window - preferably without completely re-executing the PHP and SQL. I have that as my fall-back position. I also am now trying to have the charts saved using the saveasimage method. What is the preferred way to allow this simple 'click to enlarge' scenario? What IS the best method for generating chart data and passing it to the chart object?