PHP Classes

PHP Plot Chart: Generate chart image from a list of data points

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-02-28 (7 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 66 All time: 10,248 This week: 70Up
Version License PHP version Categories
php-plotchart 1.0Custom (specified...5HTML, PHP 5, Graphics
Description 

Author

This package can generate chart images from a list of data points.

It can take an array with data points and other values that define parameters of the way the chart can be visually rendered.

The package can process the data points and generate a drawing image that shows a chart with those points.

It generates HTML with tags that can be used on a page to show the generated image.

The generated image data is embedded in the rendered HTML.

Picture of Win Aung Cho
  Performance   Level  
Name: Win Aung Cho is available for providing paid consulting. Contact Win Aung Cho .
Classes: 11 packages by
Country: Myanmar Myanmar
Age: 59
All time rank: 25484 in Myanmar Myanmar
Week rank: 569 Up2 in Myanmar Myanmar Up
Innovation award
Innovation award
Nominee: 3x

Example

<?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();
?>


Screenshots  
  • usage1.png
  • usage2.png
  • usage3.png
  • usage4.png
  Files folder image Files  
File Role Description
Files folder imageimages (4 files)
Files folder imagesrc (5 files)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  images  
File Role Description
  Accessible without login Image file usage1.png Icon Icon image
  Accessible without login Image file usage2.png Icon Icon image
  Accessible without login Image file usage3.png Icon Icon image
  Accessible without login Image file usage4.png Icon Icon image

  Files folder image Files  /  src  
File Role Description
  Plain text file plotChart.php Class Class source
  Accessible without login Plain text file usage1.php Example Example script
  Accessible without login Plain text file usage2.php Example Example script
  Accessible without login Plain text file usage3.php Example Example script
  Accessible without login Plain text file usage4.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 73%
Total:66
This week:0
All time:10,248
This week:70Up