2017 © Pedro Peláez
 

library highcharts

Allows the programmatic creation of Highcharts

image

misd/highcharts

Allows the programmatic creation of Highcharts

  • Monday, April 15, 2013
  • by thewilkybarkid
  • Repository
  • 6 Watchers
  • 5 Stars
  • 183 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Highcharts

Build Status, (*1)

This library is currently under development., (*2)

Allows the programmatic creation of Highcharts in PHP., (*3)

Authors

Requirements

Installation

  1. Add the bundle to your dependencies:, (*4)

    // composer.json
    
    {
       // ...
       "require": {
           // ...
           "misd/highcharts": "dev-master"
       }
    }
  2. Use Composer to download and install the bundle:, (*5)

    $ php composer.phar update misd/highcharts

Usage

Create a chart:, (*6)

$chart = Chart::factory()
    ->setTitle('Scatter plot with regression line')
    ->addSeries(
        array(
            ScatterSeries::factory()
                ->setName('Observations')
                ->addData(array(1, 1.5, 2.8, 3.5, 3.9, 4.2)),
            LineSeries::factory()
                ->setName('Regression line')
                ->addDataPoint(DataPoint::factory(0, 1.11))
                ->addDataPoint(DataPoint::factory(5, 4.51))
                ->getMarker()->setEnabled(false)->getSeries()
                ->setEnableMouseTracking(false),
        )
    )
;

Then render it:, (*7)

<?php $renderer = new Renderer(); ?>

<script type="text/javascript">
    $(function () {
        <?php echo $renderer->render($chart); ?>
    });
</script>

<?php echo $renderer->renderContainer($chart); ?>

Reporting an issue or a feature request

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

The Versions

15/04 2013

dev-master

9999999-dev https://github.com/misd-service-development/php-highcharts

Allows the programmatic creation of Highcharts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Wilkinson

chart highcharts graph charts graphs