Sign in to follow this  
Rahul Kumar

Print option of graph gives error

Recommended Posts

Hi all,

I am using following function to print the graph:

function exportChart(){

//Get chart from its ID

var chartToPrint = getChartFromId("chart1Id");

chartToPrint.print(); }

It gives me javascript error - Object doesn't support this property or method.

Please help me in resolving this error.

Thanks,

Poonam

Share this post


Link to post
Share on other sites

Hi,
 
Could you please make sure that you are using registerwithJS=1 ?

 

JavaScript chart render method:

 

<script type="text/javascript">

var chart = new FusionCharts("MSStackedColumn2DLineDY.swf", "ChartId", "600", "350", "0", "1");

chart.setDataURL("data.xml");

chart.render("chartdiv");

</script>

 

ASP.NET C# chart render method:

FusionCharts.RenderChart("../FusionCharts/ScrollLine2D.swf", "Data/ScrollLine2D.xml", "", "myFirst", "600", "350", false, true);

Edited by Guest

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