Php JP图线性图

Php JP图线性图,php,jpgraph,Php,Jpgraph,我有下一个线性图: 但我想用油漆修改像这样的图像: 基本上,倒数的yaxis,以11开始,以1结束,xaxis从1到22,其中该值为极限。只有波尔知道一支足球队在这几天的位置。 我有以下代码: <?php include("jpgraph/jpgraph.php"); include("jpgraph/jpgraph_line.php"); include("conexion.php"); $id=$_GET['id']; $query2="SELECT nombre FROM equ

我有下一个线性图: 但我想用油漆修改像这样的图像: 基本上,倒数的yaxis,以11开始,以1结束,xaxis从1到22,其中该值为极限。只有波尔知道一支足球队在这几天的位置。 我有以下代码:

<?php
include("jpgraph/jpgraph.php");
include("jpgraph/jpgraph_line.php");
include("conexion.php");

$id=$_GET['id'];

$query2="SELECT nombre FROM equipos WHERE id='".$id."'"; 
$result2=mysql_query($query2) or die("Error: ".mysql_error());
$Rs2=mysql_fetch_array($result2);
    $nombre_equipo=$Rs2[0];

        $sSQL="SELECT puesto,jornada FROM clasificaciones WHERE equipo='".$nombre_equipo."'"; 
        $result=mysql_query($sSQL);

         while ($row=mysql_fetch_array($result)){
            $puesto[]=$row[puesto];
        }

//$datos1 = array(9, 5, 12, 11, 6, 10, 9, 11, 10, 4, 7, 3, 24);
//$datos2 = array(5, 7, 1, 11, 13, 4, 9, 6, 12, 7, 1, 4, 21);

$datos1 = $puesto;

$grafico = new Graph(400, 300, "auto");
$grafico->SetScale("textlin");

$grafico->SetBackgroundGradient('#FDFDFD','#FDFDFD');
$grafico->xgrid->Show(); 

$grafico->xaxis->title->Set("Jornada");
$grafico->yaxis->title->Set("Puesto");

$grafico->yaxis->scale->SetAutoMin(1);
$grafico->yaxis->scale->SetAutoMax(11);

$lineplot1 = new LinePlot($datos1);
$lineplot1->SetColor("red");
$lineplot1->SetLegend("Equipo"); 
$lineplot1->SetWeight(2); 
$grafico->legend->SetFillColor('#FDFDFD');



$grafico->Add($lineplot1);

$grafico->Stroke();

?>
谢谢