PHP and making bar graphs?

  • Thread starter Thread starter evachick156
  • Start date Start date
E

evachick156

Guest
I need to find a code that I can just plug in the values to make a bar graph without using built in classes like GD. I also need different color for each value, and I need one bar to have multiple colors. Can anyone help me?
 
Mark is right. It is not easy to have graph in PHP without GD. I am not sure what is your restriction but suppose you don't have control on PHP library, you should at least have access to javascript. I think you can use jQuery to play around with the css which increase the length (or width) of the divs as the bar of your graph.
 
You're not going to have an easy time finding one that doesn't require GD. Your only bet of doing that is to make it yourself...Only way I can think of without GD is creating a table 100 cells tall (or less, depending on whatever aspect) and using PHP to determine the percentage, that put that as the colspan.
 
Back
Top