|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/18/2008 2:50:56 AM
Posts: 9,
Visits: 24
|
|
I am tring to to save the chart as an image .I also included the FusionCharts.js properly. even though it is throwing javascript error like chartToPrint.saveAsImage() function is not defined. I am using fusion chart 2.0.5 version.I searched saveAsImage() function in FusionCharts.js .It was not present there. Anyone can provide me the FusionCharts.js which includes saveAsImage () function Or any other solution .
Thanks in advance
Dharmendra
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 2 days ago @ 7:57:52 PM
Posts: 1,956,
Visits: 468
|
|
You need to use v3.0.6
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/18/2008 2:50:56 AM
Posts: 9,
Visits: 24
|
|
Hi,
Can you please provide the me the code of saveAsImage() function of FusionCharts.js which is updated in v3.0.6?
I will be very thankful to you.
Thanks
Dharmendra
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 1:21:47 AM
Posts: 675,
Visits: 1,079
|
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/18/2008 2:50:56 AM
Posts: 9,
Visits: 24
|
|
Hi ,
Actually, i am using the evaluation version of v3 which is presently available at your site . And I also used the same information as you provided the link for saveAsImage function . I copy the whole example as it is mentioned in the link. It fails at the line chartToPrint.saveAsImage();and gives the error 'chartToPrint.saveAsImage() is not a function' in error console.So, I just want to confirm that this facility (save as image ) is available in evaluation version or not. If not ,then how can i achieve this facility.Please provide me exact solution.
Thanks
Dharmendra
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 1:21:47 AM
Posts: 675,
Visits: 1,079
|
|
| Hi, No single feature is disabled in eval version. There might be som other issues. Also please check if you are running the application from a server. Or you might need to set up Flash Player security options online from Adobe's website.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/18/2008 2:50:56 AM
Posts: 9,
Visits: 24
|
|
Hi Sudipto,
I have Adobe flash version 9.I am running the same on server. Even though it is not working . Can you please tell me saveAsImage function should be present in FusionCharts.js or not. If yes ,then it is not available in evaluation version.
I am also attached the code.Please look into this .
function saveChart(){
//Get chart from its ID
var chartToPrint = getChartFromId("chart1Id");
chartToPrint.saveAsImage();
}
and
var chart1 = new FusionCharts("../FusionCharts/Column3D.swf", "chart1Id", "400", "300", "0", "1");
chart1.setDataXML("");
chart1.render("chart1div");
and the data.xml is
chart imageSave='1' imageSaveURL='http://localhost:8080/jsp-examples/FusionCharts/MyFirstChart/ImageSaving/FusionChartsSave.jsp'>
Everything is in the path.Please look into this.
Thanks
Dharmendra
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 1:21:47 AM
Posts: 675,
Visits: 1,079
|
|
| Hi, There are some functions in FusionCharts which are exposed and can be accessed from the chart itself. Flash techies call this externalInterface functions. We can use JavaScript to call these functions directly. saveAsImage() is one of these functions. Hence, you would not get this entry in FusionCharts.js. But, if you use FusionCharts SWFs whose version is v3.0.6 you would definitely get this featute. Could you please check whether you have the specified version of chart SWF files. To know your version to this precision 3.x.x, please render a chart with debug mode on. In the debug window you would get the version info.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
| | |