PHPackages                             stekky81/yii2-jqplot - 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. stekky81/yii2-jqplot

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

stekky81/yii2-jqplot
====================

Yii2 jqPlot widget renders charts and graphs based on jQuery Plotting Plugin

v1.0.4(9y ago)013JavaScriptPHP &gt;=5.4.0

Since Apr 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/stekky81/yii2-jqplot)[ Packagist](https://packagist.org/packages/stekky81/yii2-jqplot)[ RSS](/packages/stekky81-yii2-jqplot/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Yii2 jqPlot widget
==================

[](#yii2-jqplot-widget)

This extension provides [jqPlot](http://www.jqplot.com) integration for the [Yii framework 2.0](http://www.yiiframework.com).

jqPlot is a plotting and charting plugin for the jQuery Javascript framework. jqPlot produces beautiful line, bar and pie charts with many features:

- Numerous chart style options.
- Date axes with customizable formatting.
- Up to 9 Y axes.
- Rotated axis text.
- Automatic trend line computation.
- Tooltips and data point highlighting.
- Sensible defaults for ease of use.

> Computation and drawing of lines, axes, shadows even the grid itself is handled by pluggable "renderers". Not only are the plot elements customizable, plugins can expand functionality of the plot too! There are plenty of hooks into the core jqPlot code allowing for custom event handlers, creation of new plot types, adding canvases to the plot, and more!

[![Numerous line style options with 6 built in marker styles!](https://camo.githubusercontent.com/f6ef245f5f26d81bb3992e7b043fe31a3d0550d44f3c7cffc3a1c32e57b5c2a8/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f6c696e657374796c6573322e6a7067)](https://camo.githubusercontent.com/f6ef245f5f26d81bb3992e7b043fe31a3d0550d44f3c7cffc3a1c32e57b5c2a8/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f6c696e657374796c6573322e6a7067)[![Horizontal and vertical Bar charts!](https://camo.githubusercontent.com/522286c15e12a4eda47200037ef73831c9534a7102a1ddba833295153a53cda7/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f62617263686172742e6a7067)](https://camo.githubusercontent.com/522286c15e12a4eda47200037ef73831c9534a7102a1ddba833295153a53cda7/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f62617263686172742e6a7067)[![Shadow control on lines, markers, the grid, everything!](https://camo.githubusercontent.com/4af28339e6e33a362dbffcc72935628a83c9279d8e647fba95bd59adbf8aa8f9/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f736861646f77322e6a7067)](https://camo.githubusercontent.com/4af28339e6e33a362dbffcc72935628a83c9279d8e647fba95bd59adbf8aa8f9/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f736861646f77322e6a7067)

[![Drag and drop points with auto updating of data!](https://camo.githubusercontent.com/b910ae05e4b0722e28ec663b235a2a4c594d8a2882c264083a44cf8193ecc7bc/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f6472616764726f70322e6a7067)](https://camo.githubusercontent.com/b910ae05e4b0722e28ec663b235a2a4c594d8a2882c264083a44cf8193ecc7bc/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f6472616764726f70322e6a7067)[![Log Axes with flexible tick marks!](https://camo.githubusercontent.com/a8198ec2fba2fd1cfd1436a82166c8021415990d202b13b6be437b557f0b0192/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f6c6f6761786573322e6a7067)](https://camo.githubusercontent.com/a8198ec2fba2fd1cfd1436a82166c8021415990d202b13b6be437b557f0b0192/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f6c6f6761786573322e6a7067)[![Trend lines computed automatically!](https://camo.githubusercontent.com/d00b6426b0f2c29780e391fd242e30566fd515e5bbd3de7829bff8d44b8c6cbb/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f7472656e646c696e65322e6a7067)](https://camo.githubusercontent.com/d00b6426b0f2c29780e391fd242e30566fd515e5bbd3de7829bff8d44b8c6cbb/687474703a2f2f7777772e6a71706c6f742e636f6d2f696d616765732f7472656e646c696e65322e6a7067)

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

[](#installation)

Package is available on [Packagist](https://packagist.org/packages/sizeg/yii2-jqplot), you can install it using [Composer](http://getcomposer.org).

```
composer require sizeg/yii2-jqplot
```

Basic usage
-----------

[](#basic-usage)

```
echo JqPlot::widget([
    'data' => [[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]
]);
```

The following example will render a bar chart:

```
echo JqPlot::widget([
    'data' => [
        [2, 6, 7, 10],
        [7, 5, 3, 2],
        [14, 9, 3, 8],
    ],
    'clientOptions' => [
        'stackSeries' => true,
        'captureRightClick' => true,
        'seriesDefaults'  => [
            'renderer' => new JsExpression("$.jqplot.BarRenderer"),
            'rendererOptions' => [
                'highlightMouseDown' => true,
            ],
            'pointLabels' => [
                'show' => true,
            ],
        ],
        'legend' => [
            'show' => true,
            'location' => 'e',
            'placement' => 'outside',
        ]
    ]
]);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~28 days

Total

5

Last Release

3560d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ae14fe1d5855c1b364b7a68828adc1d3b3e51ba83d465446a6976162682283a?d=identicon)[stekky81](/maintainers/stekky81)

---

Top Contributors

[![sizeg](https://avatars.githubusercontent.com/u/4047591?v=4)](https://github.com/sizeg "sizeg (2 commits)")[![amelkikh](https://avatars.githubusercontent.com/u/5112566?v=4)](https://github.com/amelkikh "amelkikh (1 commits)")[![stekky81](https://avatars.githubusercontent.com/u/9198905?v=4)](https://github.com/stekky81 "stekky81 (1 commits)")

### Embed Badge

![Health badge](/badges/stekky81-yii2-jqplot/health.svg)

```
[![Health](https://phpackages.com/badges/stekky81-yii2-jqplot/health.svg)](https://phpackages.com/packages/stekky81-yii2-jqplot)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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