Version 1.9g
This commit is contained in:
parent
d028822d0b
commit
4c9814a99c
800 changed files with 237325 additions and 1949 deletions
29
artichow/examples/line-001.php
Normal file
29
artichow/examples/line-001.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
require_once "../LinePlot.class.php";
|
||||
|
||||
$graph = new Graph(400, 400);
|
||||
|
||||
$x = array(1, 10, 3,-4, 1);
|
||||
|
||||
$plot = new LinePlot($x);
|
||||
$plot->setSpace(6, 6, 10, 10);
|
||||
|
||||
$plot->hideLine(TRUE);
|
||||
$plot->setFillColor(new Color(180, 180, 180, 75));
|
||||
|
||||
$plot->mark->setType(Mark::IMAGE);
|
||||
$plot->mark->setImage(new FileImage("champignon.png"));
|
||||
|
||||
$plot->grid->setBackgroundColor(new Color(235, 235, 180, 60));
|
||||
|
||||
$plot->label->set($x);
|
||||
$plot->label->move(0, -23);
|
||||
$plot->label->setBackgroundGradient(new LinearGradient(new Color(250, 250, 250, 10), new Color(255, 200, 200, 30), 0));
|
||||
$plot->label->border->setColor(new Color(20, 20, 20, 20));
|
||||
$plot->label->setPadding(3, 1, 1, 0);
|
||||
|
||||
$graph->add($plot);
|
||||
$graph->draw();
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue