Page 1 of 1

Graphicinterface for jPgraph

Posted: Wed 29 Dec 2010 6:44 pm
by nitrx
I've been playing with jPgraph beacause I want to select the graphs generated from the database (see the databasestructure made by David)

So I've made a form input with selectable months where you can select the graphs over which period you want to see them.

Thes are two files wich have to be placed in the jpgraph directory (folder) One is named zoek4.php and one is called grafiek7.php you can rename them but you wil have to change the name of zoek4.php in grafiek7.php if you rename zoek4.php and vice versa.

Call zoek4.php in your browser and there you go.

The are some issues I can't figure out, when you select the startdate after the enddate you get an error (this is logical) but I can't find a solution to 'catch' this error.

The second issue is that I can't render the grafic in a html page it appaers in a new window (I only managed to put a link under the graphic which goes back to the query interface).

One more thing (I think this is up to David in Scotland , the temperature values in the database are all rounded to values with no decimals so 5,4 is 5,0 in the database I thought they where wit a decimal ponit but I've a comma. (sorry for my English) suggestions and improvements are welcome :) example: http://www.apeldoorn.tk/weer/grafiek/zoek4.php, my data are from end december 2009

example files in zip (note you must have the jpgraph package http://jpgraph.net/ installed on your server

Re: Graphicinterface for jPgraph

Posted: Wed 29 Dec 2010 9:47 pm
by tjaliwalpa
Fantastic :clap:

Re: Graphicinterface for jPgraph

Posted: Thu 30 Dec 2010 12:48 am
by gemini06720
I will look a the file within the ZIP fiel and check if I can come up with solutions to you little problems. But, if you do find some solutions, could you post them here promptly so two people do not end up working on the same problems and coming up with the same solutions... ;)

Re: Graphicinterface for jPgraph

Posted: Thu 30 Dec 2010 8:06 am
by nitrx
gemini06720 wrote:I will look a the file within the ZIP fiel and check if I can come up with solutions to you little problems. But, if you do find some solutions, could you post them here promptly so two people do not end up working on the same problems and coming up with the same solutions... ;)
Ofcourse I will post the solution if I've some solution :)

Re: Graphicinterface for jPgraph

Posted: Thu 30 Dec 2010 1:18 pm
by gemini06720
nitrx wrote:Ofcourse I will post the solution if I've some solution :)
:D

Went out during the evening, so I will check the code later on today...

Re: Graphicinterface for jPgraph

Posted: Thu 30 Dec 2010 1:24 pm
by nitrx
gemini06720 wrote:
nitrx wrote:Ofcourse I will post the solution if I've some solution :)
:D

Went out during the evening, so I will check the code later on today...
It has no hurry perhaps you can manage it this year ;)

Re: Graphicinterface for jPgraph

Posted: Fri 04 Sep 2015 7:14 pm
by kocher
Although it is a very old thread, I would post the solution I found:

http://kocher.es/cumulusMX/jpgraphs-cum ... rafico.php

The table of my database, called "dayfile".
Might have to edit the file paths jpgraph

Here are the 2 files needed::

    http://kocher.es/cumulusMX/jpgraphs-cum ... co.php.txt

   http://kocher.es/cumulusMX/jpgraphs-cum ... in.php.txt