Location: PHPKode > scripts > HTML Graph maker > html-graph-maker/example.php
<?
include "./Graph.php";

?>
<table border=1 cellspacing=0 cellpadding=10>
  <tr>
    <td>
<?
$Gr = new Graph();
$Gr->SetClassDir("/Framework/includes/Class/Graph/");
$Gr->SetVerticalThicks(15);
$Gr->AddSerie("A","Serie 1");
$Gr->AddSerie("B","Serie 2");
$Gr->AddSerie("C","Serie 3");
$Gr->SetSerieValues("A",array(15,54,4,1,132,54,45,1));
$Gr->SetSerieValues("B",array(43,23,54,74,123,32,4,213));
$Gr->SetSerieValues("C",array(34,243,33,12,3,25,31,98));
$Gr->SetSeriePivot(array("Point A","Point B","Point C","Point D","Point E","Point F","Point G","Point H",));
$Gr->ShowVerticalThicks(true);
$Gr->SetLineWidth(1);
$Gr->SetGraphMode("bar");
$Gr->ShowLegenda(true);
$Gr->SetGraphHeight(250);
$Gr->SetGraphWidth(250);
$Gr->DrawGraph();
?>
  </td><td>
<?
$Gr = new Graph();
$Gr->SetClassDir("/Framework/includes/Class/Graph/");
$Gr->SetVerticalThicks(15);
$Gr->AddSerie("A","Serie 1");
$Gr->AddSerie("B","Serie 2");
$Gr->AddSerie("C","Serie 3");
$Gr->SetSerieValues("A",array(15,54,4,1,132,54,45,1));
$Gr->SetSerieValues("B",array(43,23,54,74,123,32,4,213));
$Gr->SetSerieValues("C",array(34,243,33,12,3,25,31,98));
$Gr->SetSeriePivot(array("Point A","Point B","Point C","Point D","Point E","Point F","Point G","Point H",));
$Gr->ShowVerticalThicks(true);
$Gr->SetLineWidth(1);
$Gr->SetGraphMode("line");
$Gr->ShowLegenda(true);
$Gr->SetGraphHeight(250);
$Gr->SetGraphWidth(250);
$Gr->DrawGraph();
?>
  </td>
</tr>
  <tr>
    <td>
<?
$Gr = new Graph();
$Gr->SetClassDir("/Framework/includes/Class/Graph/");
$Gr->SetVerticalThicks(15);
$Gr->AddSerie("A","Serie 1");
$Gr->AddSerie("B","Serie 2");
$Gr->AddSerie("C","Serie 3");
$Gr->SetSerieValues("A",array(15,54,4,1,132,54,45,1));
$Gr->SetSerieValues("B",array(43,23,54,74,123,32,4,213));
$Gr->SetSerieValues("C",array(34,243,33,12,3,25,31,98));
$Gr->SetSeriePivot(array("Point A","Point B","Point C","Point D","Point E","Point F","Point G","Point H",));
$Gr->ShowVerticalThicks(false);
$Gr->ShowPivotX(false);
$Gr->ShowPivotY(false);
$Gr->SetLineWidth(4);
$Gr->SetGraphMode("bar");
$Gr->ShowLegenda(true);
$Gr->SetGraphHeight(250);
$Gr->SetGraphWidth(250);
$Gr->DrawGraph();
?>
  </td><td>
<?
$Gr = new Graph();
$Gr->SetClassDir("/Framework/includes/Class/Graph/");
$Gr->SetVerticalThicks(15);
$Gr->AddSerie("A","Serie 1");
$Gr->AddSerie("B","Serie 2");
$Gr->AddSerie("C","Serie 3");
$Gr->SetSerieValues("A",array(15,54,4,1,132,54,45,1));
$Gr->SetSerieValues("B",array(43,23,54,74,123,32,4,213));
$Gr->SetSerieValues("C",array(34,243,33,12,3,25,31,98));
$Gr->SetSeriePivot(array("Point A","Point B","Point C","Point D","Point E","Point F","Point G","Point H",));
$Gr->ShowVerticalThicks(true);
$Gr->SetLineWidth(1);
$Gr->SetGraphMode("line");
$Gr->ShowLegenda(false);
$Gr->ShowPivotX(false);
$Gr->SetGraphHeight(250);
$Gr->SetGraphWidth(250);
$Gr->DrawGraph();
?>
  </td>
</tr>

</table>
Return current item: HTML Graph maker