Search the Community
Showing results for tags 'graphs'.
Found 1 result
I have brought this topic over from php6 and mysql5 as it seems more appropriate to JS than php........... The question was:....... I was looking at an Iberdrola electricity invoice and working out how I would code the php to produce one, which was relatively straightforward, except at one point they put a bar chart to show the previous year's consumption....which got me wondering - is there any facility in php to produce something similar? This would be easy enough: x........x x........x...x x....x...x...x x....x...x...x x....x...x...x ________ J...M..M..J A...A..A..U N...R..Y..L BUT WOULD LIKE TO SOMETHING A BIT MORE FLASHY! ....and HartleySan replied thus:.... With newer browsers, you can very easily create gradients to somewhat spice up your graphs. As a more practical solution, you may want to consider a library like Google Chart Tools: https://developers.google.com/chart/ I believe they use the canvas element, so an HTML5-compatible browser is required. Edit: Apparently the charts fall back to VML graphics for non-HTML5 browsers, so maybe they work in all browsers. ------------------------------------ I reckon that package is very useful to developers.