Sign in to follow this  
abdbuet

Problem saving chart as image

Recommended Posts

Hi,

 

 

 

whenever I wanted to save the chart as jpg/png/pdf, i keep getting the following message in a white page

 

 

 

Width and height of chart has not been provided.

 

 

 

It wasn't like that before but suddenly start happening. I dont understand where I made the mistake. Can you please help me solve this problem

 

 

 

-Abd

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Could you please provide us with the code you are using to render the chart?

If possible you can attach the entire code.

 

Looking forward to your reply.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please send us the snap-shots of the issue that you are facing?

Also, could you please send us the snap-shot of the chart after it is rendered?

Awaiting your reply. :hehe:

Share this post


Link to post
Share on other sites

Hi Guys,

 

 

 

sorry I just mix up 2 versions of fusion chart. Previously I used IMAGE SAVE function, then I upgrade, but didn't notice that now the exporting methods changed.

 

 

 

Anyway, can you provide any example file because I can't really make the tutorial work.

 

 

 

Thanks,

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

In your html file you have not specified any button element.

Please insert the following code inside the body:

<html>

<head>

 <title>FusionGadgets Chart Gallery</title>

 <script language="JavaScript" src="../JSClass/FusionCharts.js"></script>

</head>

<body bgcolor="#ffffff">

<table width='98%' align='center' cellpadding='2' cellspacing='0'>

  <tr>

  <td align="center">

<div id="chartdiv" align="center">FusionGadgets</div>

<script type="text/javascript">

 var myChart = new FusionCharts("../Charts/AngularGauge.swf", "myChartId", "425", "425", "0", "0");

 myChart.setDataURL("Data/Angular14.xml");

 myChart.render("chartdiv");

</script>

</td>

</tr>

<tr height='10'>

<td></td>

</tr>

<tr>

  <td align="center">

 <a href='Data/Angular14.xml' target='_blank'><img src='BtnViewXML.gif' border='0' alt='View XML for above chart'></a>

  </td>

</tr>

</table>

</body>

</html>

 

Also, please use the attached image.

post-6209-12844157931_thumb.gif

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Your XML code is fine.

Please check that the path for FCExporter.swf is correct or not.

Share this post


Link to post
Share on other sites

I have Area2D.swf and FCExporter.swf in the same folder.

 

As my charts load correctly (as you can see in capture.jpg), that means FCExporter.swf link also correct (as you can see, i use same link for Area2D.swf and FCExporter.swf).

 

 

 

I am totally confused where I have done the wrong ...

Share this post


Link to post
Share on other sites

great !!!! :) :) :( :( :( :(

 

 

 

now i switch to server side download with the following

 

 

 

chart exportEnabled='1' exportAtClient='0' exportHandler='includes/ExportHandlers' exportAction='download'

 

 

 

(I move all files and folders from ExportHandlers/php to directly "ExportHandlers" folder)

 

 

 

And after capturing, it open the includes/ExportHandlers folder in a new explorer window !!!

 

 

 

feeling helpless ......... :( :(

Edited by Guest

Share this post


Link to post
Share on other sites

HI,

 

 

 

Thanks, it works !!

 

 

 

btw, please change the hekp file because there the example gives the link to the folder, not file.

 

 

 

Thanks anyway.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this