macsig
-
Content count
21 -
Joined
-
Last visited
Posts posted by macsig
-
-
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.
-
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.
-
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
-
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.
-
whiplash159 (5/31/2010)
I have exactly the same problem. I use a very simple example which is very close to the given examples in the FusionCharts website:The HTML file:
<html>
<head>
<title>My Chart</title>
<script type="text/javascript" src="JSClass/FusionCharts.js"></script>
<script type="text/javascript">
function ExportMyChart() {
var testObj = getChartFromId('myChartId');
if( testObj.hasRendered() ) testObj.exportChart();
}
</script>
</head>
<body>
<div id="chartContainerDiv">FusionCharts loaded here...</div>
<script type="text/javascript">
var myChart = new FusionCharts('Charts/Column3D.swf', 'myChartId', '900', '300', '0', '1');
myChart.setDataURL('Data.xml');
myChart.render('chartContainerDiv');
</script>
<input type="button" value="Export My Chart" onclick="ExportMyChart()" />
</body>
</html>
The XML file:
<chart chartTopMargin='40' caption='Month report' xAxisName='Attendance / Month' formatNumberScale='0' thousandSeparator=' ' chartLeftMargin='15' chartRightMargin='15' chartTopMargin='15' chartBottomMargin='15' rotateYAxisName='0' exportEnabled='1' exportHandler='ExportHandlers/PHP/FCExporter.php' exportAtClient='0' exportAction='download' >
>
<set label='12.2009' value='10000' />
<set label='01.2010' value='15000' />
<set label='02.2010' value='17500' />
<set label='03.2010' value='15000' />
<set label='04.2010' value='4000' />
</chart>
All files are loaded successfully. I see the chart, but when I click on the button I get js error that hasRendered is not a function.
I'm using the package available in the download section of the FusionCharts web site and I tested on Mozilla Firefox 3.6.3.
Are you using other js libraries? I have solved this issue when I have removed some js libraries from my application.
HTH.
Sig
-
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
-
Thanks for your reply.
Updating @@SAVEPATH salved the issue.
-
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
-
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.
-
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.
-
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.
-
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
-
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
-
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.
-
thanks for the replies.
I found the issue, I misspelled the parameter to pass so the set was empty.
-
thanks for your reply.
I'm not sure how I can get the XML file. I use a builder on my rails app.
Anyway I will try to get it and to post here.
Have a nice day.
-
Hello there,
I'm a newbie and I have hard time understanding why the code below:
xml.graph(:numdivlines => '10',
:lineThickness => '3',
:showValues => '0',
:numVDivLines => '10',
:formatNumberScale => '1',
:rotateNames => '1',
:decimalPrecision => '1',
:nchorRadius => '2',
:nchorBgAlpha => '0',
:numberPrefix => '',
:divLineAlpha => '30',
:showAlternateHGridColor => '1',
:yAxisMinValue => '4.0',
:yAxisMaxValue => '4.4',
:shadowAlpha => '50')
generates the chart below:
yAxisMinValue shouldn't define the lower point of the chart? Am I missing something?
Thanks.
Sig
-
Hi again,
looks like this works for me
render :file => "factories/basic_factories_quantity", :locals => {:factory_data => @factory_data}
Hope this helps.
-
Hi all,
I can confirm that the issue looks to be related to the hash.
I could make to work an hybrid solution that renders an hardcoded builder.
Right now I'm looking into that and if I will figure anything out I will let you know.
Have a nice day.
-
I got the same error.
Any ideas about that?
Thanks
Professional License
in General usage
Posted · Edited by macsig · Report reply
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.