PHPackages                             miloschuman/yii-highcharts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. miloschuman/yii-highcharts

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

miloschuman/yii-highcharts
==========================

Highcharts adapter for the Yii Framework

v5.0.2(9y ago)3379.4k↓39%12[2 issues](https://github.com/miloschuman/yii-highcharts/issues)MITJavaScript

Since Feb 17Pushed 9y ago8 watchersCompare

[ Source](https://github.com/miloschuman/yii-highcharts)[ Packagist](https://packagist.org/packages/miloschuman/yii-highcharts)[ RSS](/packages/miloschuman-yii-highcharts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (16)Used By (0)

Yii Highcharts Widget
=====================

[](#yii-highcharts-widget)

[![Latest Stable Version](https://camo.githubusercontent.com/4353d3c194b898eab70870bb2e7747583839b1784c3e1c968e1c11990df439dc/68747470733a2f2f706f7365722e707567782e6f72672f6d696c6f736368756d616e2f7969692d686967686368617274732f762f737461626c652e706e67)](https://packagist.org/packages/miloschuman/yii-highcharts)[![Total Downloads](https://camo.githubusercontent.com/931469dd8646d9eb64f5fb991214f088c6cd4771ad504008a65797e1ce5f3a1e/68747470733a2f2f706f7365722e707567782e6f72672f6d696c6f736368756d616e2f7969692d686967686368617274732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/miloschuman/yii-highcharts)[![License](https://camo.githubusercontent.com/327d8d5bd38265f75a4743334da941e1cf288f2432275cef0fb255e237011059/68747470733a2f2f706f7365722e707567782e6f72672f6d696c6f736368756d616e2f7969692d686967686368617274732f6c6963656e73652e706e67)](https://packagist.org/packages/miloschuman/yii-highcharts)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/494916991ed45ffbfb861561f6aa6efe620ae77556a7a8d7c0275eb99732aee6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d696c6f736368756d616e2f7969692d686967686368617274732f6261646765732f7175616c6974792d73636f72652e706e673f733d39613437653965386634663163373565316666333635323465653735666335656636353432326262)](https://scrutinizer-ci.com/g/miloschuman/yii-highcharts/)

Easily add [Highcharts, Highstock and Highmaps](http://www.highcharts.com/) graphs to your Yii application.

[![Screen Shot](https://camo.githubusercontent.com/4157eedbf242a7373be8b565d32796ee2c8bab27df928ca8e0e86ae6492f52d2/687474703a2f2f7777772e7969696672616d65776f726b2e636f6d2f657874656e73696f6e2f686967686368617274732f66696c65732f73637265656e73686f742e706e67)](https://camo.githubusercontent.com/4157eedbf242a7373be8b565d32796ee2c8bab27df928ca8e0e86ae6492f52d2/687474703a2f2f7777772e7969696672616d65776f726b2e636f6d2f657874656e73696f6e2f686967686368617274732f66696c65732f73637265656e73686f742e706e67)

About
-----

[](#about)

### Highcharts

[](#highcharts)

> Create interactive charts easily for your web projects. Used by tens of thousands of developers and 59 out of the world's 100 largest companies, Highcharts is the simplest yet most flexible charting API on the market.

### Highstock

[](#highstock)

> Highstock lets you create stock or general timeline charts in pure JavaScript. Including sophisticated navigation options like a small navigator series, preset date ranges, date picker, scrolling and panning.

### Highmaps

[](#highmaps)

> Build interactive maps to display sales, election results or any other information linked to geography. Perfect for standalone use or in dashboards in combination with Highcharts!

Links
-----

[](#links)

- [Home page](https://github.com/miloschuman/yii-highcharts)
- [Highcharts demos](http://www.highcharts.com/demo/)
- [Report a bug](https://github.com/miloschuman/yii-highcharts/issues)
- [(**New**) Highcharts Extension for **Yii2**](http://www.yiiframework.com/extension/yii2-highcharts-widget)

**Note:** Highcharts is free for non-commercial use only. For more information, please visit the [Highcharts License and Pricing](http://www.highcharts.com/license) page.

Requirements
------------

[](#requirements)

- Yii 1.1.5 or above
- PHP 5.1 or above

Installation
------------

[](#installation)

- Extract the release file under `protected/extensions/`

Usage
-----

[](#usage)

To use this widget, you may insert the following code into a view file:

```
$this->Widget('ext.highcharts.HighchartsWidget', array(
   'options'=>array(
      'title' => array('text' => 'Fruit Consumption'),
      'xAxis' => array(
         'categories' => array('Apples', 'Bananas', 'Oranges')
      ),
      'yAxis' => array(
         'title' => array('text' => 'Fruit eaten')
      ),
      'series' => array(
         array('name' => 'Jane', 'data' => array(1, 0, 4)),
         array('name' => 'John', 'data' => array(5, 7, 3))
      )
   )
));
```

By configuring the `options` property, you may specify the options that need to be passed to the Highcharts JavaScript object. Please refer to the demo gallery and documentation on the [Highcharts website](http://www.highcharts.com/) for possible options.

Alternatively, you can use a valid JSON string in place of an associative array to specify options:

```
$this->Widget('ext.highcharts.HighchartsWidget', array(
   'options'=>'{
      "title": { "text": "Fruit Consumption" },
      "xAxis": {
         "categories": ["Apples", "Bananas", "Oranges"]
      },
      "yAxis": {
         "title": { "text": "Fruit eaten" }
      },
      "series": [
         { "name": "Jane", "data": [1, 0, 4] },
         { "name": "John", "data": [5, 7,3] }
      ]
   }'
));
```

*Note:* You must provide a *valid* JSON string (double quotes) when using the second option. You can quickly validate your JSON string online using [JSONLint](http://jsonlint.com/).

See [/doc/examples](https://github.com/miloschuman/yii-highcharts/tree/master/doc/examples) for more usage examples.

Tips
----

[](#tips)

- If you need to use JavaScript in any of your configuration options, use the `js:` prefix. For instance:

    ```
    ...
    'tooltip' => array(
         'formatter' => 'js:function(){ return this.series.name; }'
    ),
    ...
    ```
- Highcharts by default displays a small credits label in the lower right corner of the chart. This can be removed using the following top-level option.

    ```
    ...
    'credits' => array('enabled' => false),
    ...
    ```
- Since version 3.0.2, all adapters, modules, themes, and supplementary chart types must be enabled through the top-level 'scripts' option.

    ```
    ...
    'scripts' => array(
         'highcharts-more',   // enables supplementary chart types (gauge, arearange, columnrange, etc.)
         'modules/exporting', // adds Exporting button/menu to chart
         'themes/grid'        // applies global 'grid' theme to all charts
    ),
    ...
    ```

    Previous versions relied on auto-detection magic, but that became less reliable as Highcharts evolved. The new method more accurately follows the native process of including/excluding additional script files and gives the user some finer-grain control. For a list of available scripts, see the contents of `protected/extensions/highcharts/assets/`.
- You can access the JavaScript chart object from another script like this:

    ```
    var chart = $('#my-chart-id').highcharts();
    ```

    where `my-chart-id` is set via the top-level `id` configuration option. Just make sure you register your script after the widget declaration so that it has a chance to initialize.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 70.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~71 days

Total

15

Last Release

3470d ago

Major Versions

v3.0.10 → v4.0.12014-04-25

v4.2.6 → v5.0.02016-10-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/d78a8ef65ba69fd47a2f50adaf5b5a8acbfe6f986a24c31c797c43a610447c85?d=identicon)[miloschuman](/maintainers/miloschuman)

---

Top Contributors

[![miloschuman](https://avatars.githubusercontent.com/u/487443?v=4)](https://github.com/miloschuman "miloschuman (40 commits)")[![acorncom](https://avatars.githubusercontent.com/u/802505?v=4)](https://github.com/acorncom "acorncom (15 commits)")[![codermarti](https://avatars.githubusercontent.com/u/3369419?v=4)](https://github.com/codermarti "codermarti (2 commits)")

---

Tags

yiihighchartshighstock

### Embed Badge

![Health badge](/badges/miloschuman-yii-highcharts/health.svg)

```
[![Health](https://phpackages.com/badges/miloschuman-yii-highcharts/health.svg)](https://phpackages.com/packages/miloschuman-yii-highcharts)
```

###  Alternatives

[ghunti/highcharts-php

A php wrapper for highcharts and highstock javascript libraries

3772.3M5](/packages/ghunti-highcharts-php)[rmrevin/yii2-fontawesome

Asset Bundle for Yii2 with Font Awesome

1474.0M134](/packages/rmrevin-yii2-fontawesome)[kartik-v/yii2-helpers

A collection of useful helper functions for Yii Framework 2.0

883.0M29](/packages/kartik-v-yii2-helpers)[kartik-v/yii2-icons

Set of icon frameworks for use in Yii Framework 2.0

73970.3k34](/packages/kartik-v-yii2-icons)[kartik-v/yii2-datecontrol

Date control module allowing separation of formats for View and Model for Yii Framework 2.0

551.5M36](/packages/kartik-v-yii2-datecontrol)[cebe/yii2-gravatar

Gravatar Widget for Yii 2

441.8M35](/packages/cebe-yii2-gravatar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
