Search code examples
phpmysqlgraph

Adding a Bar Graph/Library for Graphs in a PHP Program


I am planning to place a bar graph for my PHP program but I am not sure how to do it. I've seen some examples but I got lost on the "download this download that" portion of the explanation. I'm not sure how to import or how to install the necessary files for graphs. I have this "Sorting" feature for my program and instead of displaying the data in a tabular manner, I am planning to change it to a "Bar Graph" model.

Can you suggest easy methods to achieve this? I could start with manually inputting the values for the graph but I think it would be better if it roots from the database or a certain SQL query.


Solution

  • use Morris chart

    http://jsbin.com/uzosiq/258/embed?html,js,output

    its good and free and you can get file and documentation from

    http://morrisjs.github.io/morris.js/