PHP: graph generator

Discussion in 'OT Technology' started by Mirlyn, Jan 26, 2004.

  1. Mirlyn

    Mirlyn Guest

    Never done this before.....I need a graph generator that will read from 30-40 points (max) and plot them in a line graph. Size of the graph must be customizeable (need it small). It would be sweet if I could set zones in the graph (ie, turn yellow if between x-y and red if above y).

    Any suggestions/links? Thanks all!
     
  2. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
  3. Astro

    Astro Code Monkey

    Joined:
    Mar 18, 2000
    Messages:
    2,047
    Likes Received:
    0
    Location:
    Cleveland Ohio
    I'd HIGHLY recommend JPGraph (http://www.aditus.nu/jpgraph/ ). You can look at:

    http://www.axtime.com/6/61 (see graph at top and bottom of the page)
    http://www.axtime.com/6/61/graphpax
    http://www.axtime.com/6/61/stats

    There's a collection of other "events" you can look at, but the graphs are all pretty similar after you see the ones above.

    You will want to be cozy with the idea of PHP's OOP-ness and then JPGraph will make a lot of sense... If you ever get stuck, check out the code for the demos (there's a ton of demo scripts). You may find one that comes really close to what you want so just swipe the code and modify as needed.
     
  4. Mirlyn

    Mirlyn Guest

    Awesome....I'll try it out tomorrow. Thanks again!
     

Share This Page