title: How to set min & max range in JPGraph and how to set colors for lines crossing horizontal line?
body: <p>I would like to draw something like this with JPGraph:</p>
  
  <p><img src="https://i.stack.imgur.com/ECdjm.jpg" alt="enter image description here"></p>
  
  <p>I've tried it but I got something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/NaKyp.jpg" alt="enter image description here"></p>
  
  <p><strong>Problems:</strong></p>
  
  <ol>
  <li>The first problem is that I can't set min &amp; max for range on Y-asix. (this sometimes works and I don't know why)</li>
  <li>And I don't know how to set colors for line that crossed the horizontal lines.</li>
  </ol>
  
  <p><em>Is this possible with JPGraph?</em></p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;?php
  
  require_once 'jpgraph/jpgraph.php';
  require_once 'jpgraph/jpgraph_line.php';
  require_once 'jpgraph/jpgraph_plotline.php';        
  
  $graph = new Graph(600,300);
  $graph-&gt;SetMargin(40, 10, 10, 0);
  $graph-&gt;SetScale("textlin");
  
  $theme_class=new UniversalTheme();
  $graph-&gt;SetTheme($theme_class);
  
  $sline = new PlotLine(HORIZONTAL,30,'red'); 
  $graph-&gt;Add($sline);
  
  $sline = new PlotLine(HORIZONTAL,70,'red'); 
  $graph-&gt;Add($sline);
  
  $graph-&gt;SetScale('intlin',0,100);
  
  $line = new LinePlot(json_decode(file_get_contents("http://data.brown.sk/data.json",true)));
  $line-&gt;SetWeight(1);
  $line-&gt;SetLegend("test");
  $graph-&gt;Add($line);
  
  $graph-&gt;img-&gt;SetAntiAliasing(true);
  
  $graph-&gt;title-&gt;hide();
  
  $graph-&gt;xaxis-&gt;Hide();
  
  $graph-&gt;xgrid-&gt;SetLineStyle("solid");
  $graph-&gt;xgrid-&gt;SetColor('#E3E3E3');
  
  $graph-&gt;legend-&gt;hide();
  
  $graph-&gt;Stroke();
  
  ?&gt;
  </code></pre>