Hello,

Here's what I did.

1) Put jpgraph as a vendor lib in the app/vendors folder.
2) Make a php script that receives the graph parameters you need
(height, width, title, x_data, y-data, etc...) and place it on webroot
3) call the script from your view with

<img src="../plot_gen.php" />

You can pass the parameters via _GET or _POST but that maybe weird
because for the data series (x_data and y_data) you may have many
values and will need to use serialization. The best method (IMHO) to
pass the data to the script is via PHP _SESSION (not CAKE Session).
You can pass all the other data parameteres as well via _SESSION. (You
might have to enable _SESSION on php.ini)

Don't forget the include(<jpgraph>) on the plot_gen.php script.

Hope it helped!

Cheers!

On Feb 13, 5:34 am, "YoLoL" <[EMAIL PROTECTED]> wrote:
> How can I use CakePHP with JpGraph I have read this two threads:
>
> http://groups.google.com/group/cake-php/browse_thread/thread/e8824932...http://groups.google.com/group/cakephp-fr/browse_thread/thread/ee9909...
>
> but I can't figure out how to do this. So far I have made a function
> that when called independently can stream a graphic to the browser but
> how can I call this function in a way that an IMG tag be the target of
> this call?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to