Web lists-archives.com

Re: How to Draw a Simple XY Graph

Could you not generate SVG code and insert it?

George Langley
Interactive Developer

> On May 4, 2019, at 3:48 AM, Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx> wrote:
> On May 4, 2019 9:42:19 AM UTC, Marc Roos <M.Roos@xxxxxxxxxxxxxxxxx> 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@xxxxxxxxx] 
>> Sent: zaterdag 4 mei 2019 11:39
>> To: php-general@xxxxxxxxxxxxx
>> 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