phprocker Posted January 18, 2010 Share Posted January 18, 2010 Hey all. I need to have dynamic charts/graphs in a project. What's the common way these are created these days in pHp? I've searched a bit around Google and found some pHp extensions but not sure if I should use one of them or accomplish charts/graphs with my own pHp code. What's the right direction to go along these lines? Thanks. Link to comment https://forums.phpfreaks.com/topic/188938-dynamically-created-chartsgraphs-how-and-what/ Share on other sites More sharing options...
phonydream Posted January 18, 2010 Share Posted January 18, 2010 I'd say it depends on how complex you want to get. It might be worth taking a look at a few of the libraries, reviewing the code and seeing if you'd like to implement it yourself. PEAR Image_Graph looks like it still leaves some work for a programmer to implement it. http://pear.php.net/package/Image_Graph/ Link to comment https://forums.phpfreaks.com/topic/188938-dynamically-created-chartsgraphs-how-and-what/#findComment-997614 Share on other sites More sharing options...
waynew Posted January 18, 2010 Share Posted January 18, 2010 I use http://www.jgraph.com/ Link to comment https://forums.phpfreaks.com/topic/188938-dynamically-created-chartsgraphs-how-and-what/#findComment-997615 Share on other sites More sharing options...
jtgraphic Posted January 18, 2010 Share Posted January 18, 2010 I may be lazy, but I use Google Charts: http://code.google.com/apis/chart/ I think they look great, but aren't for everything. Link to comment https://forums.phpfreaks.com/topic/188938-dynamically-created-chartsgraphs-how-and-what/#findComment-997628 Share on other sites More sharing options...
oni-kun Posted January 18, 2010 Share Posted January 18, 2010 I may be lazy, but I use Google Charts: http://code.google.com/apis/chart/ I think they look great, but aren't for everything. This is a good idea. I'd recommend this as (dynamic charts) are either creating client side code, or using an advanced GD class to generate the image data and place it on an image, which is really pointless.(And requiring a lot of memory consumtion, Let google do that for you!) Link to comment https://forums.phpfreaks.com/topic/188938-dynamically-created-chartsgraphs-how-and-what/#findComment-997630 Share on other sites More sharing options...
jtgraphic Posted January 18, 2010 Share Posted January 18, 2010 Whew - I thought I might get beat up for that Link to comment https://forums.phpfreaks.com/topic/188938-dynamically-created-chartsgraphs-how-and-what/#findComment-997633 Share on other sites More sharing options...
phprocker Posted January 19, 2010 Author Share Posted January 19, 2010 I may be lazy, but I use Google Charts: http://code.google.com/apis/chart/ I think they look great, but aren't for everything. This seems like a good way to go before I write my own extensive functions. Thanks. Link to comment https://forums.phpfreaks.com/topic/188938-dynamically-created-chartsgraphs-how-and-what/#findComment-997829 Share on other sites More sharing options...
oni-kun Posted January 19, 2010 Share Posted January 19, 2010 I may be lazy, but I use Google Charts: http://code.google.com/apis/chart/ I think they look great, but aren't for everything. This seems like a good way to go before I write my own extensive functions. Thanks. If you want to practise around, here's a nice tutorial to teach you the essential basics of the PHP GD library (should be included on default PHP installations) and includes the tutorial as a bar char, ironically. http://www.builderau.com.au/program/php/soa/Using-GD-functions-in-PHP-to-create-a-bar-chart/0,339028448,339200806,00.htm Link to comment https://forums.phpfreaks.com/topic/188938-dynamically-created-chartsgraphs-how-and-what/#findComment-997830 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.