2017 © Pedro Peláez
 

library flot

Jason Roman's PHP Flot Class

image

jasonroman/flot

Jason Roman's PHP Flot Class

  • Thursday, September 10, 2015
  • by jasonroman
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,092 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

Jason Roman's PHP Flot Class

Build Status, (*1)

This is a class that transforms PHP arrays of series data into a JSON format that Flot can understand. It supports line/bar charts, pie charts, horizontal/vertical orientation, and time series data. It also supports single or multiple series., (*2)

To load as a service in a Symfony bundle, see my jasonroman/flot-bundle package., (*3)

Usage

// convert to Flot JSON data from PHP arrays
use JasonRoman\Flot\Flot;

$flot = new Flot;

$flotData = $flot->convert($data);
$flotData = $flot->convert($data, 'horizontal');
$flotData = $flot->convert($data, 'vertical', $datetime = true);
$flotData = $flot->convert($pieData);

See the comments in the class for more examples of the various forms of array $data that can be passed to the convert() function., (*4)

The Versions

10/09 2015

dev-master

9999999-dev https://github.com/jasonroman/flot

Jason Roman's PHP Flot Class

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

flot

10/09 2015

1.0.1

1.0.1.0 https://github.com/jasonroman/flot

Jason Roman's PHP Flot Class

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

flot

15/04 2014

1.0

1.0.0.0 https://github.com/jasonroman/flot

Jason Roman's PHP Flot Class

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

flot