forked from jeroenst/phpgraphlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_example10.php
More file actions
17 lines (17 loc) · 835 Bytes
/
Copy path_example10.php
File metadata and controls
17 lines (17 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
// include(__DIR__.'/../phpgraphlib.php');
// die('unsupported test stacked'.PHP_EOL);
// include(__DIR__.'/../phpgraphlib_stacked.php');
// $graph = new PHPGraphLibStacked(500, 300, $path = str_replace('.php', '.png', __FILE__ ) );
// $popularity = array('Windows 7' => 80, 'Mac OS 10' => 35, 'Fedora' => 9);
// $cost = array('Windows 7' => 10, 'Mac OS 10' => 30, 'Fedora' => 90);
// $speed = array('Windows 7' => 50, 'Mac OS 10' => 50, 'Fedora' => 80);
// $graph->addData($popularity, $cost, $speed);
// $graph->setTitle('Operating System Scores');
// $graph->setTitleLocation('left');
// $graph->setXValuesHorizontal(true);
// $graph->setTextColor('blue');
// $graph->setBarColor('#0066CC', '#669999', '#66CCCC');
// $graph->setLegend(true);
// $graph->setLegendTitle('Popularity', 'Cost', 'Speed');
// $graph->createGraph();