SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Php Statistic Bar Chart

    new.member
    *

    Posts: 2
    Joined: 26 Apr, 2006
    Dream Kudos: 0

    Favorite Browser: Who Cares Favorite Processor: Who Cares OS Preference: Who Cares Country: Who Cares
    Gaming Platform: Who Cares Your Car:



    Thanks. I am studying the jpgraph now. I will ask question if Ineed to. Thanks for your explanation though.

    One more thing. I have got to the level where I have made this bar chart with my php code for example:

    1. How is the survey?
    response:

    a. Good ------------------100% (1)

    b. Not too good ----------100% (1)

    c. Not sure----------------50% (2)


    I only want to change the colour of the bar chart in good to red, Not too good to blue and Not sure to green....
    I do not know how to do that and also how to find the average of the total responses.

    If you can still help, I am online all day pls.

  2. #2
    Non-Member Icheb's Avatar
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    1,474
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by david4u
    I only want to change the colour of the bar chart in good to red, Not too good to blue and Not sure to green....
    Just use a simple if statement.

    Quote Originally Posted by david4u
    I do not know how to do that and also how to find the average of the total responses.
    The formula for averages is still
    percentage = number of votes for x / number of total votes * 100


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •