KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/irtiweb/CATS/lib/artichow/patterns/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/irtiweb/CATS/lib/artichow/patterns/LightLine.php
<?php
/*
 * This work is hereby released into the Public Domain.
 * To view a copy of the public domain dedication,
 * visit http://creativecommons.org/licenses/publicdomain/ or send a letter to
 * Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
 *
 */

require_once ARTICHOW."/LinePlot.class.php";

class LightLinePattern extends Pattern {

	public function create() {

		$legend = $this->getArg('legend');

		$y = $this->getArg('y');

		if($y === NULL) {
			trigger_error("Argument 'y' must not be NULL", E_USER_ERROR);
		}

		$plot = new LinePlot($y);
		$plot->setSize(0.7, 1);
		$plot->setCenter(0.35, 0.5);
		$plot->setPadding(35, 15, 35, 30);
		$plot->setColor(new Orange());
		$plot->setFillColor(new LightOrange(80));

		$plot->grid->setType(Line::DASHED);

		$plot->mark->setType(Mark::CIRCLE);
		$plot->mark->setFill(new MidRed);
		$plot->mark->setSize(6);

		$plot->legend->setPosition(1, 0.5);
		$plot->legend->setAlign(Legend::LEFT);
		$plot->legend->shadow->smooth(TRUE);

		if($legend !== NULL) {
			$plot->legend->add($plot, $legend, Legend::MARK);
		}

		return $plot;

	}

}
?>

Anon7 - 2021