2017 © Pedro Peláez
 

library phphighcharts

PHP wrapper for creating HighCharts in an object oriented way.

image

barthuttinga/phphighcharts

PHP wrapper for creating HighCharts in an object oriented way.

  • Tuesday, January 17, 2017
  • by barthuttinga
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PhpHighCharts

Build Status, (*1)

PHP wrapper for creating HighCharts in an object oriented way., (*2)

Authors

  • Bart Huttinga

Requirements

Installation

Install the library using Composer:, (*3)

composer require barthuttinga/phphighcharts

Usage

Create a chart:, (*4)

$chart = new PhpHighCharts\HighChart();
$chart->getChart()->setType('bar');
$chart->getTitle()
    ->setX(10)
    ->setText('Fruit Consumption');
$chart->getXAxis()->setCategories(array('Apples', 'Bananas', 'Oranges'));
$chart->getYAxis()->getTitle()->setText('Fruit eaten');
$chart->getTitle()->setText('Fruit Consumption');
$chart->setSeries(array(
    new PhpHighCharts\Series(array(1, 0, 4), 'Jane'),
    new PhpHighCharts\Series(array(5, 7, 3), 'John'),
));
$chart->setColors(array('#444444'));
$chart->addColor('#555555');
$chart->getYAxis()->addPlotBand(
    new PhpHighCharts\PlotBand(0, 1, 'green')
);
$chart->getYAxis()->addPlotLine(
    new PhpHighCharts\PlotLine(3, 1, 'green')
);
$chart->getCredits()
    ->setText('PHPHighCharts')
    ->setHref('https://github.com/barthuttinga/phphighcharts')
    ->getPosition()->setX(-100);

Then render it:, (*5)






Reporting an issue or a feature request

Issues and feature requests are tracked in the GitHub issue tracker., (*6)

The Versions

17/01 2017

dev-master

9999999-dev

PHP wrapper for creating HighCharts in an object oriented way.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Bart Huttinga

php highcharts