Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2003
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP, GD and Diagonal lines.

    Hello all, Just a quick, or atleast I hope, a quick question :P

    I'm starting to play with GD (as part of a personal project I'm working on which produces live statistics from apache log files). I've got all the data avaliable dynamically, I now plan to graph it using GD however have seen no refernece to diagonal lines, which would be somewhat important in a line graph :P Does anyone know if diagonal lines exist in GD and if so how they're used?

    Thanks !
    Last edited by DaveHope; 09-30-2003 at 06:27 PM.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    577
    Thanks
    0
    Thanked 0 Times in 0 Posts
    imageline($img_pointer, 0, 0, 50, 50, $colour);

    would draw a line from 0,0 to 50,50 which would be ummm diagonal.

    You should really consider caching the stats and graphs on a daily basis using a task scheduler such as cron.

    on an aside: I'm currently (between projects) working on a graphing application suite with a 3D bias - this image was produced through a user function that accepts an array of data. I vaguely planned to run a perspective feature on the scale as the shading gives the impression of angles. Have quite a way to go on that one though have mostly finished the parent class.
    you might also want to google for graphing applications in php as there are a fair few.
    Last edited by Ökii; 09-30-2003 at 07:25 PM.
    Ökii - formerly pootergeist
    teckis - take your time and it'll save you time.

  • #3
    New Coder
    Join Date
    Apr 2003
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks!

    Just seen the edited message, yea, I took a while to actually submit my reply ;P - Wow. That looks cool, but I think I'll stick to this more basic stuff ;P
    Last edited by DaveHope; 09-30-2003 at 07:38 PM.


  •  

    Posting Permissions

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