belly2201

I Can't Export A Chart As Jpeg Or Png

Recommended Posts

Hi! I hope you can help me.

 

I have my chart and I want to export as image in my server, but only work with PDF format, when I choose JPG or PNG don't do anything. I'm using javascript and PHP for exporting the charts.

 

My xml has the follow settings:

 

<chart caption='Total de Asuntos Mensuales' baseFontSize='11' useRoundEdges='1' bgColor='FFFFFF,FFFFFF' showBorder='0' exportEnabled='1' exportAtClient='0' exportAction='download'

exportHandler='http://www.dominio.com/js/FusionCharts_Enterprise/ExportHandlers/PHP/FCExporter.php' exportFileName='MyFileName' exportTargetWindow='_blank' >

And my function in javascript has:

 

var chart1 = new FusionCharts("/js/FusionCharts_Enterprise/Column2D.swf", psIdChart, pnAncho, pnAlto, "0", "1");

chart1.setDataURL('/txt/xml/ConfiguracionGraficas.xml');

chart1.render(psIdDiv);

 

The FCExporter.php has the paths for save the files.

 

I really don't know why only works with PDF format.

 

I hope you can help me and you can understand my problem.

 

Thanks. :)

 

P.D. Sorry for my writting, I'm learning english.

Edited by belly2201

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