Version 1.9g
This commit is contained in:
parent
d028822d0b
commit
4c9814a99c
800 changed files with 237325 additions and 1949 deletions
22
artichow/examples/tutorials/line-Simple.php
Normal file
22
artichow/examples/tutorials/line-Simple.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
require_once "../../LinePlot.class.php";
|
||||
|
||||
$graph = new Graph(400, 400);
|
||||
|
||||
$graph->setAntiAliasing(FALSE);
|
||||
|
||||
$values = array(1, 4, 5, -2.5, 3);
|
||||
$plot = new LinePlot($values);
|
||||
$plot->setBackgroundGradient(
|
||||
new LinearGradient(
|
||||
new Color(210, 210, 210),
|
||||
new Color(250, 250, 250),
|
||||
0
|
||||
)
|
||||
);
|
||||
$plot->yAxis->setLabelPrecision(1);
|
||||
$plot->setSpace(5, 5, NULL, NULL);
|
||||
|
||||
$graph->add($plot);
|
||||
$graph->draw();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue