RE: How to Draw a Simple XY Graph
| From: | Ashley Sheridan | Date: | Sat, 04 May 2019 09:48:40 +0000 |
| Subject: | RE: How to Draw a Simple XY Graph | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326787@lists.php.net to get a copy of this message | ||
On May 4, 2019 9:42:19 AM UTC, Marc Roos <M.Roos@f1-outsourcing.eu> wrote:
>
>If you are doing just one graph or so, you can mess around with php.
>But
>if you have to do a lot of graphs, and maybe have something 'real
>time'.
>Start looking at grafana like solutions.
>
>
>
>
>-----Original Message-----
>From: Kenneth Gomez [mailto:kenneth.gomez@gmail.com]
>Sent: zaterdag 4 mei 2019 11:39
>To: php-general@lists.php.net
>Subject: How to Draw a Simple XY Graph
>
>Dear All,
>
>I am so sorry if this is such a trivial question but I am trying to
>earn
>how to create a XY graph in PHP? All I can find are paid plugins. Does
>PHP not support basic graphs? I've been through the manual at php.net
>and my site is hosted on SiteGround.
>
>Thanks.
>
>Cheers,
>Kenneth Gomez.
>http://www.kgomez.com
><http://www.kgomez.com> "The heights by which great
>men reached and
>kept, Were never attained by sudden flight, But they, while their
>companions slept, were toiling upward in the night."
Have a look at the GD library in PHP. There are methods for drawing lines and rectangles, which is
all you need for basic graphs. With a little effort you can even draw 3d charts.
Thanks,
Ash