PHP Classes

File: src/usage1.php

Recommend this page to a friend!
  Classes of Win Aung Cho   PHP Plot Chart   src/usage1.php   Download  
File: src/usage1.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Plot Chart
Generate chart image from a list of data points
Author: By
Last change: Update of src/usage1.php
Date: 1 year ago
Size: 370 bytes
 

Contents

Class file image Download
<?php
include("plotChart.php");
   
$data = [
       
u => [
            [-
100, -45000],
            [
0, 60000],
            [
200, 360000],
            [
400, -260000],
            [
480, 80000]
        ]
    ];
    echo
"<h1>Usage 1</h1>";
   
$plotchart = new PlotChart();
   
$plotchart->fitGraph($data);
   
$plotchart->plotGraph($data);
   
$plotchart->viewImage();
?>