Location: PHPKode > projects > Monyet > plotter/jpgraph-2.2/src/Examples/topxaxisex1.php
include ("../jpgraph.php");
include ("../jpgraph_line.php");

// Some data
$datay = array(25,29,29,39,55);

$graph = new Graph(400,200,'auto');

$graph->title->Set("Top X-axis");

// Start at 0

// Add some air around the Y-scale

// Use built in font

// Adjust the X-axis

// Create the line plot
$p1 = new LinePlot($datay);

// Specify marks for the line plots

// Show values

// Add lineplot to graph

// Output line


Return current item: Monyet