2017 © Pedro Peláez
 

library chartjs-wrapper

This allows to generate chart.js charts using PHP fluid interface

image

avninc/chartjs-wrapper

This allows to generate chart.js charts using PHP fluid interface

  • Tuesday, December 27, 2016
  • by VinceG
  • Repository
  • 1 Watchers
  • 0 Stars
  • 505 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 46 % Grown

The README.md

Chart.js PHP Fluid Interface

The idea of this package is to allow a fluid interface of generating chart.js JS chart code., (*1)

Simple Example, (*2)

$data = new Data(['label' => '# of Votes', 'data' => [12, 19, 3, 5, 2, 3]], ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"]);
$options = new Options(['responsive' => true]);
$chart = new Chart('mycharts', (new Bar), $data, $options);
$code = $chart->render();

// $code will look something like this:

var chartElement = document.getElementById("mycharts");
var chart = new Chart(chartElement, {
    type: "bar",
    data: {"datasets":{"label":"# of Votes","data":[12,19,3,5,2,3]},"labels":["Red","Blue","Yellow","Green","Purple","Orange"],"xLabels":[],"yLabels":[]},
    options: {"responsive":true}
});

The Versions

27/12 2016

dev-master

9999999-dev https://avn.com

This allows to generate chart.js charts using PHP fluid interface

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

php oop charts php charts chart.js

23/12 2016

0.0.2

0.0.2.0 https://avn.com

This allows to generate chart.js charts using PHP fluid interface

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

php oop charts php charts chart.js

23/12 2016

0.0.1

0.0.1.0 https://avn.com

This allows to generate chart.js charts using PHP fluid interface

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

php oop charts php charts chart.js