2017 © Pedro Peláez
 

library jaxon-flot

Javascript charts for Jaxon with the Flot library

image

jaxon-php/jaxon-flot

Javascript charts for Jaxon with the Flot library

  • Monday, July 31, 2017
  • by lagdo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

Javascript charts for Jaxon with Flot

Javascript charts for Jaxon with the Flot library. http://www.flotcharts.org, (*1)

Installation

Install this package with Composer., (*2)

"require": {
    "jaxon-php/jaxon-flot": "^5.0"
}

Usage

Create a new plot to be displayed in a div with a given id, eg. "flot-container"., (*3)

    $plot = $response->flot->plot('#flot-container');

Add a graph in the plot, and set its parameters., (*4)

    $graph = $plot->graph(['label' => 'Plot example', 'lines' => ['show' => true]]);

The options are defined in the API docs., (*5)

Set the graph data using an array of points., (*6)

    $graph->series()->points([[0, 3], [4, 8], [8, 5], [9, 13]]);

Or a javascript expression., (*7)

    $graph->series()->expr(0, 14, 0.5, 'Math.sqrt(x * 10)');

Optionally, set the xaxis labels., (*8)

    $ticks = [];
    for($i = 0; $i < 10; $i++) $ticks[] = [$i, 'Pt' . $i];
    $plot->xaxis()->points($ticks);

Optionally, set the dimensions of the plot. If the dimensions are not set here, make sure they are in HTML or CSS code. The Flot library requires the container to have width and height set., (*9)

    $plot->width('600px')->height('300px');

Finally, draw the graph., (*10)

    $response->flot->draw($plot);

You can add as many graphs as you need in a single plot, and you can draw many plots in a single page., (*11)

Contribute

  • Issue Tracker: github.com/jaxon-php/jaxon-flot/issues
  • Source Code: github.com/jaxon-php/jaxon-flot

License

The project is licensed under the BSD license., (*12)

The Versions

31/07 2017

dev-master

9999999-dev https://github.com/jaxon-php/jaxon-flot

Javascript charts for Jaxon with the Flot library

  Sources   Download

BSD-2-Clause

The Requires

 

by Thierry Feuzeu

php javascript ajax chart graph plot flot xajax jaxon

25/07 2017

v1.0.0

1.0.0.0 https://github.com/jaxon-php/jaxon-flot

Javascript charts for Jaxon with the Flot library

  Sources   Download

BSD-2-Clause

The Requires

 

by Thierry Feuzeu

php javascript ajax chart graph plot flot xajax jaxon

02/08 2016

v0.1.2

0.1.2.0 https://github.com/jaxon-php/jaxon-flot

Javascript charts for Jaxon with Flot

  Sources   Download

BSD-2-Clause

The Requires

 

by Thierry Feuzeu

php javascript ajax chart graph plot flot xajax jaxon

26/07 2016

v0.1.1

0.1.1.0 https://github.com/jaxon-php/jaxon-flot

Javascript charts for Jaxon with Flot

  Sources   Download

BSD-2-Clause

The Requires

 

by Thierry Feuzeu

php javascript ajax chart graph plot flot xajax jaxon

26/07 2016

v0.1.0

0.1.0.0 https://github.com/jaxon-php/jaxon-flot

Javascript charts for Jaxon with Flot

  Sources   Download

BSD-2-Clause

The Requires

 

by Thierry Feuzeu

php javascript ajax chart graph plot flot xajax jaxon