Sign in to follow this  
FusionCharts Support

chartObject.hasRendered is not a function

Recommended Posts

Hi,

 

i've an error message when trying to automaticaly export charts into PDF .

 

 

 

Code generated with PHP , the export works fine , when i do it manually.

 

 

 

script type="text/javascript">

 

function ExportMyChart() {

 

var chartObject = getChartFromId("flux_en3");

 

if( chartObject.hasRendered() ) chartObject.exportChart();

 

}

 

 

 

/script>

 

!-- START Script Block for Chart flux_en3 -->

 

 

 

div id="flux_en3Div">

 

Chart.

 

/div>

 

script type="text/javascript" >

 

var chart_flux_en3 = new FusionCharts("/communs/FusionCharts/Charts/StackedColumn2D.swf", "flux_en3", "800", "400", "0", "1", "","noScale","EN");

 

//Provide entire XML data using dataXML method

 

chart_flux_en3.setDataXML("datas here");

 

chart_flux_en3.render("flux_en3Div");

 

/script>

 

 

 

!-- END Script Block for Chart flux_en3 -->

 

 

 

script>

 

ExportMyChart();

 

/script>

Share this post


Link to post
Share on other sites

I am having the same issue and tried using the FC_Rendered as suggested, but it isn't firing. I checked and registerWithJS='1' and my adobe flash player settings is set to allow all. The chart is rendering fine and I can print and save using the context menu. I am rendering my chart with direct HTML code, could this be why?

Share this post


Link to post
Share on other sites

...

Greetings agreene,

Nice to hear that you solved your problem. :P If you have any query, do not hesitate to post it here.

Share this post


Link to post
Share on other sites
Guest Sumedh

l am having the same issue!!!!

 

Hey,

 

Can you please provide some information on following points?

 

>What FusionCharts version are you using?

 

> What chart type used?

 

>Also can you paste your sample code here along with the chart XML?

Share this post


Link to post
Share on other sites

Hi,

 

I also have the same problem.

 

My page has multiple charts rendered in different tabs. Now I need to save the charts as image in server. But I am able to do this for only the charts rendered in last tab.

Even I defined the function FC_Rendered to print all domids once its rendered. But that also printing last tabs domids.

 

I am stuck because of this. Waiting for your solutions.

 

 

Thanks

Aneesh

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi Aneesh,

 

Charts can be exported when they are in viewable region or portion. When you load the webpage or a tab of a browser, then chart gets rendered and hence export functionality can be performed.

 

When charts get rendered, then only you can perform export functionality over the charts.

 

Hope this helps!

 

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