Min – PHP Charts & Graphs https://phpchart.com Making charts in PHP is simple again. Mon, 23 Jun 2014 05:35:34 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.13 Min & Max Lines https://phpchart.com/examples/min-max-lines/ https://phpchart.com/examples/min-max-lines/#respond Tue, 08 May 2012 02:49:06 +0000 http://phpchart.net/?p=616 Min and max lines are a common way to identity data partition and boundaries on a chart. In phpChart the min and max are treated just like regular data series. No special function or plugin is required. For example: 123456$line1 = array(array(1,1), array(4,2), array(9,3), array(16,4)); $line2 = array(array(25,1), array(12.5,2), array(6.25,3), array(3.125,4)); $min = array(array(2, 0.6), […]

The post Min & Max Lines appeared first on PHP Charts & Graphs.

]]>
Min and max lines are a common way to identity data partition and boundaries on a chart. In phpChart the min and max are treated just like regular data series. No special function or plugin is required.

For example:

1
2
3
4
5
6
$line1 = array(array(1,1), array(4,2), array(9,3), array(16,4));
$line2 = array(array(25,1), array(12.5,2), array(6.25,3), array(3.125,4));
$min = array(array(2, 0.6), array(2, 4.4));
$max = array(array(15, 0.6), array(15, 4.4));
   
$pc = new C_PhpChartX(array($line1,$line2, $min,$max),'chart1');

Live demo

The post Min & Max Lines appeared first on PHP Charts & Graphs.

]]>
https://phpchart.com/examples/min-max-lines/feed/ 0