gazalec Posted May 24, 2007 Share Posted May 24, 2007 Hi i have been helped here many times and i thank everyone who has helped me, but yet again i need more help, previously i created a bar chart representation of a user's previous orders, all i done was set up a form which you enter a customer number and the time scale you want to look at either, days of month, months of year or weeks of year, then you select which day, week or month you wish to view and then PHP searches the database for all the orders made by the user on the date speicifed, this is then forwarded to a table, each row represented a value (from 1 - 10 for example) and each column represented a day week or month, these were then cross reference with the database so that php made up the table one cell at a time with the condition did the user by anything on this date if so was it less than or equal to the value if so the the cell background was made balck if not it was made white, so when PHP had created the table there was a bar graph of the information ( for anyone going to attempt this i created a range of products between 1-10 purchases and i ended up with 255 A4 pieces of paper full of code, you have been warned) Now To my post i was just wondering if anyone had any ideas about Pie Chart using the same sort of techniques? any input would be greatly appreciated Thanks For your Time Quote Link to comment https://forums.phpfreaks.com/topic/52840-a-pie-chart-in-php-possible/ Share on other sites More sharing options...
trq Posted May 24, 2007 Share Posted May 24, 2007 Sorry, didn't read through all of that post (because of a destinct lake of punctuation) but yes, pie charts are able to be created via php. Take a look at http://phpclasses.org, you should be able to find something. Quote Link to comment https://forums.phpfreaks.com/topic/52840-a-pie-chart-in-php-possible/#findComment-260839 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.