Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/52840-a-pie-chart-in-php-possible/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.