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 to the CF scene
    Join Date
    Oct 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Line Graph in php

    Anybody help me for creating line graph in php using mysql data?
    I have made bar graphs using phpgraphlib but in case of line graph,
    there will be no output.
    In my data i want to take time scale in yaxis,may be this is a problem.
    Because i searched for this but i got examples where time scale are in xaxis.
    Plz help me how to take time scale in y axis.

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,182
    Thanks
    15
    Thanked 253 Times in 253 Posts
    You can use canvas and .svg files to make line graphs, or any other kind
    of graph. For .svg a polyline should work well. You can also make a
    background for the graph.

  • #3
    Regular Coder patryk's Avatar
    Join Date
    Oct 2012
    Location
    /dev/couch
    Posts
    398
    Thanks
    2
    Thanked 64 Times in 64 Posts
    if you're lucky, you might have gnuplot installed on your server (or you can always request it to be installed)
    http://www.gnuplot.info
    you can plot whatever you want and however you want using that.


  •  

    Posting Permissions

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