Looking for example to send graph direct to browser
Looking for example to send graph direct to browser
The demos show a .png file being created. How do avoid that and send the graph to the browser without creating a .png file?
Re: Looking for example to send graph direct to browser
Hello,
The charts in TeeChart PHP must be created at server-side but instead of creating a png as follows:
You can directly send the stream calling the same function without parameters:
The charts in TeeChart PHP must be created at server-side but instead of creating a png as follows:
Code: Select all
$chart->render("chart1.png");
Code: Select all
$chart->render();
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Looking for example to send graph direct to browser
Hi,
Thanks for the reply. If I try that I get the following error message.
Fatal error: Call to undefined function imageftbbox() in /usr/local/uptime/GUI/teeChart/sources/GraphicsGD.php on line 2504
I need to have teeChart in a slightly unusual location... Do I have to do something special for that?
-Randy
Thanks for the reply. If I try that I get the following error message.
Fatal error: Call to undefined function imageftbbox() in /usr/local/uptime/GUI/teeChart/sources/GraphicsGD.php on line 2504
I need to have teeChart in a slightly unusual location... Do I have to do something special for that?
-Randy
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Looking for example to send graph direct to browser
Hello Randy,
Many apologies for the delayed reply.
Find attached an example calling render() without parameters and sending the chart to the browser as a stream. Hope this solves the problem at your end.
Many apologies for the delayed reply.
Find attached an example calling render() without parameters and sending the chart to the browser as a stream. Hope this solves the problem at your end.
- Attachments
-
- demo_php_render_stream.zip
- (946 Bytes) Downloaded 2715 times
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |