Hi Mona My first response to your question is the rather flippant, "With a lot of coding". (This is meant to be a joke).
As I'm sure you're aware neither HTML, nor CakePHP has any built in graphing capabilities so you'll either have to code it all from scratch yourself or use an existing library. My own preference is to use the excellent JPGraph (Google it) for generating charts and there's an article on how to do this in CakePHP in the Cake Bakery.However I recently saw some amazing charts produced using Ext JS 3.0. There was a posting in this forum about integrating this with Cake only recently. Regards David On Aug 25, 5:30 am, mona <[email protected]> wrote: > I want functions that create pure html graphs. > > The functions should take an array as a parameter. The array will look > like > array('data' => > array( > array('label' => 'Nokia N95', 'number' => 95, 'axislabel' => ''), > array('label' => 'Apple iPhone', 'number' => 120, 'axislabel' => > 'iPhone'), > ), > 'heading' => 'Graph Heading', > 'xaxis' => 'Phones this month', > 'yaxis' => 'Hits', > 'graphtype' => 'horizontal', > 'pixelswide' => 700, > 'pixelshigh' => 120); > > Mousing over the bars in the bar graphs will produce the label & > number. > > graphs should be horiantal or vertical bar graphs > > can anybody tell me how to make these type of graphs in cakephp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
