dapcigar Posted May 8, 2014 Share Posted May 8, 2014 Please, how do i generate a graph from the data i have in my DB? thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/288339-graph-php/ Share on other sites More sharing options...
Ch0cu3r Posted May 8, 2014 Share Posted May 8, 2014 If you google "php graphs" you'll get a list of links to php scripts for creating graphs Read the docs for the chosen script, feed it the data for the x and y axis and it'll take care of the rest for you. Quote Link to comment https://forums.phpfreaks.com/topic/288339-graph-php/#findComment-1478741 Share on other sites More sharing options...
bsmither Posted May 9, 2014 Share Posted May 9, 2014 There is also Google Charts, which is javascript based. Once the javascript chart is up and running in the browser (with your data), there are some nifty things you can do with it. Quote Link to comment https://forums.phpfreaks.com/topic/288339-graph-php/#findComment-1478884 Share on other sites More sharing options...
cyberRobot Posted May 9, 2014 Share Posted May 9, 2014 I've been using a service called amCharts (http://www.amcharts.com/) which works fairly well. Note that I haven't spent much time with any other chart solution, so I can't speak to the pros/cons of the various services. If you want to avoid using third-party services and you're looking to create a bar graph, I wrote a post a while back which talks about a solution I've used in the past here: http://www.cyberscorpion.com/2012-08/simple-bar-graphs-made-dynamic-with-php/ Quote Link to comment https://forums.phpfreaks.com/topic/288339-graph-php/#findComment-1478888 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.