PHP Classes

How to draw overlapping graphs so that not to worry about y_orde

Recommend this page to a friend!

      Graph Drawing Class 2  >  All threads  >  How to draw overlapping graphs so...  >  (Un) Subscribe thread alerts  
Subject:How to draw overlapping graphs so...
Summary:overlapping graphs
Messages:3
Author:Anitha Venkatraman
Date:2016-04-14 16:07:07
 

  1. How to draw overlapping graphs so...   Reply   Report abuse  
Picture of Anitha Venkatraman Anitha Venkatraman - 2016-04-14 16:07:07
I'm wondering how to draw overlapping graph so that I don't have to worry about the y_order. The reason is I won't know about the data as to which graph will be higher than the others. Basically I want to be able to draw multiple transparent "area=fill" graphs not worrying about the order. (For.eg. http://leo.cuckoo.org/projects/SVG-TT-Graph/examples/line_graph_key_right.svg)

  2. Re: How to draw overlapping graphs so...   Reply   Report abuse  
Picture of Herman Veluwenkamp Herman Veluwenkamp - 2016-04-15 00:07:09 - In reply to message 1 from Anitha Venkatraman
I wrote this class over 15 years ago so my knowledge is going to be a bit rusty. Looking at the test code you might try using

imagecolorallocatealpha

[http://www.php.net/manual/en/function.imagecolorallocatealpha.php]

instead of

imagecolorallocate

as this allows for an alpha (transparency) parameter to be selected.

H

  3. Re: How to draw overlapping graphs so...   Reply   Report abuse  
Picture of Anitha Venkatraman Anitha Venkatraman - 2016-04-20 14:59:00 - In reply to message 2 from Herman Veluwenkamp
Hi Herman,

Thanks very much for your reply. I too was thinking on the same line ie adding some sort of alpha transparency would solve the problem. I tried your suggestion, but for some reason still not getting the transparent area fills. I'll work on the problem, will keep you posted if I find anything that works.

Thanks again.

Anitha