macsig

Members
  • Content count

    21
  • Joined

  • Last visited

About macsig

  • Rank
    Junior Member
  1. Professional License

    Thanks for your reply. I have sent an email to [email protected] more than 2 weeks ago and I haven't received any answer yet. I will try using the form you provided hopping this time they will get back to me. I'm not new to this formum by the way.
  2. Professional License

    Hello All, I hope to have more luck with the forum that with the Customer Service (sent email 2 weeks ago and now answer yet). I'm trying to find the terms of conditions related to the FusionCharts Professional license I bought few months ago but I cannot find them. Moreover, I understand the licensing policy has been updated and the Professional license doesn't exist anymore. Can you please let me know if I still hold a Professional license or my license has been automatically updated to an other? Where can I find the terms of license? Thanks for your help.
  3. plotting linearly

    Thanks for your reply. isn't there a better way to handle it? I have a big series and adding "empty" element (specially in my Linear regression) looks to be quite painful. Have a good day.
  4. plotting linearly

    Hello there, I'm working on a Multi-series Line 2D chart and I need to plot the values linearly? For instance if I have 3 values (at 0, 1, 3 months where month is my xAxis) I need the space between 1 and 3 is double then the space between 0 and 1 Is there an attribute to setup in order to achieve so? Thanks and have a nice day. Sig
  5. Hello everyone, I'd like to be able to export (as PNG image) a chart without rendering it but after looking at the documentation I didn't find anything about that. Basically I need to generate a PDF report (that contains the chart) after clicking a button. Is this possible? If so where can I find some documentation? Thanks and have a nice weekend.
  6. chart.hasRendered is not a function

    Are you using other js libraries? I have solved this issue when I have removed some js libraries from my application. HTH. Sig
  7. chart.hasRendered is not a function

    I have also tried something like (where exportButtonPNG is the button ID) function FC_Rendered() { $('#exportButtonPNG').bind("click", function() { var chart = getChartFromId("chartID1"); chart.exportChart( {exportFormat: 'PNG'} ); }); } but I still get the same error. Any ideas? Thanks
  8. Thanks for your reply. Updating @@SAVEPATH salved the issue.
  9. chart.hasRendered is not a function

    Hello, sorry for my late reply but I have been abroad so I couldn't work on this project. Below you may find my code: function FC_Exported() { alert("exported"); } function exportCharts(exportType) { //Get reference to chart. var chart = getChartFromId("chartID1"); // Now, we proceed with exporting only if chart has finished rendering. if (chart.hasRendered() != true) { alert("Please wait for the chart to finish rendering, before you can invoke exporting"); return; } // call exporting function chart.exportChart( {exportFormat: exportType} ); } As you said I have onClick of a button reference the chart object but I get the same result: chart.hasRendered is not a function Thanks
  10. Hello there I'm trying to export a Multi-Line chart through js but I get chart.hasRendered is not a function From my understanding hasRendered comes with the swf file itself ("All the charts in the FusionCharts expose a number of APIs which allow you to print the chart, export the chart as image/PDF, get an attribute or the entire data of the chart and the like. These APIs are not a part of FusionCharts.js, but built into the chart swfs themselves and as such, you do not need to include FusionCharts.js in your HTML code to make use of these APIs.") Here my code (RoR app): <% str_xml = render :file => 'annual_reports/data_chart', :locals => {:results => results } render_chart '/FusionCharts/MSLine.swf','',str_xml,'chartID1', 807, 350, false, true do end %> The last parameter (set as true) is register_with_js that form my understanding enables the js APIs built into the swf. So, I don't understand what I'm missing. Can anyone help me out? Thanks, I appreciate. PS The MSLine.swf I'm using has been downloaded few days ago from FusionCharts website so I suppose is the last version.
  11. I have been able to successfully download a chart as image and now I'm trying to save it server-side. I have changed the exportAction attribute, removed exportTargetWindow and updated properties.rb as below: # This path is relative to the web application root @@SAVEPATH = "/public/charts" #Used to show as message in SWF #This constant HTTP_URI stores the HTTP reference to #the folder where exported charts will be saved. #Please enter the HTTP representation of that folder #in this constant e.g., http://www.yourdomain.com/images/ @@HTTP_URI = "http://localhost/charts/" But now I'm confused about the value I need to use for the exportHandler attribute. On the docs I find: "In case of server side exporting, this refers to the path of the server-side export handler (the ready-to-use scripts that we provide)." And in the readme.txt file that comes with the download: "Now in the xml for the chart, specify the exporthandler value to be "Fusioncharts/fc_exporter/index" But the fc_exporter folder doesn't contain any index file. Am I missing something? I have anyway tried to save a chart setting up :exportHandler => '/Fusioncharts/fc_exporter/index', but nothing happens: when 100% of data is captured I don't get any error, FC_Exported function is not called and of course no image is saved in the chart folder. Thanks for your help.
  12. Thanks for the reply. I'd prefer to keep it. Is there a way to make it works with protect_from_forgery on? Thanks again.
  13. Hello there, I need to save a chart as image so I have followed the instructions that come with the evaluation pack. I already had in my machine ImageMagick and RMagick gem. 1. Copy the controllers (1,2,3) into controllers/Fusioncharts in your application. 2. Copy the lib folder along with lib files (4,5,6,7,8) into lib folder of your application. 3. Copy the fc_exporter folder along with error.html.erb into the views folder of your application. When I try to save the image the capturing process starts but when it reaches 100% I get ActionController::InvalidAuthenticityToken in Fusioncharts/fc exporterController#index What does this mean? Am I missing something? Thanks Sig
  14. Thanks for your reply. When can I find all the available options for the graph and the dataset? I tried to find it in the documentation but without searching it is very hard. Thanks again and have a nice day. Sig
  15. Hello guys, I'm working on a line chart and I'd like to show the name of each set element only when the mouse is over the point but not on the x axis. Is this possible? Right now my code looks like xml.categories do for item in MyDataset xml.category(:name => item[:code]) end end ... Thanks.