PHPackages                             code-works/yii-c3js - 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. [Framework](/categories/framework)
4. /
5. code-works/yii-c3js

ActiveLibrary[Framework](/categories/framework)

code-works/yii-c3js
===================

c2.js adapter for the Yii Framework

v1.0.0(10y ago)017MITJavaScript

Since Jun 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/code-works/yii-c3js)[ Packagist](https://packagist.org/packages/code-works/yii-c3js)[ RSS](/packages/code-works-yii-c3js/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Yii c3.js Widget
================

[](#yii-c3js-widget)

[![Latest Stable Version](https://camo.githubusercontent.com/76b3b9fb7d606b0551d4d061173fd85f0e011d4ab8f31844c2d774af462222fa/68747470733a2f2f706f7365722e707567782e6f72672f636f64652d776f726b732f7969692d63336a732f762f737461626c652e706e67)](https://packagist.org/packages/code-works/yii-c3js)[![Total Downloads](https://camo.githubusercontent.com/70c6c619481e579d9393cac16bb8c7942d4fa7d09de2f41e1bc00cdefc168ad5/68747470733a2f2f706f7365722e707567782e6f72672f636f64652d776f726b732f7969692d63336a732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/code-works/yii-c3js)[![License](https://camo.githubusercontent.com/193723496478d40b40e6b0d42858d004feb13b723c20502f7cb3b50742608eac/68747470733a2f2f706f7365722e707567782e6f72672f636f64652d776f726b732f7969692d63336a732f6c6963656e73652e706e67)](https://packagist.org/packages/code-works/yii-c3js)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4b9cb158767ea7123044a1e85f398f87fe5573dd76aec8f191e202996f559e94/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f64652d776f726b732f7969692d63336a732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/code-works/yii-c3js/?branch=master)

Easily add [C3.js](http://http://c3js.org//) graphs to your Yii application.

Links
-----

[](#links)

- [Home page](https://github.com/code-works/yii-c3js)
- [C3.js demos](http://c3js.org/examples.html)
- [Report a bug](https://github.com/code-works/yii-c3js/issues)

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.c3js.C3JsWidget', array(
    'options' => array(
        'title' => array(
            'text' => "My Chart"
        ),
        'data' => array(
            'columns' => array(
                array('data1', 30, 200, 100, 400, 150, 250)
            ),
        )
    )
));
?>
```

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

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

```

*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/).

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3657d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f1c04c704fe176589b3555776991bf4ffa6ec9f4efe99bc06d1324f9384f7b5?d=identicon)[Tak0r](/maintainers/Tak0r)

---

Top Contributors

[![teian](https://avatars.githubusercontent.com/u/611264?v=4)](https://github.com/teian "teian (3 commits)")

---

Tags

yiic3c3js

### Embed Badge

![Health badge](/badges/code-works-yii-c3js/health.svg)

```
[![Health](https://phpackages.com/badges/code-works-yii-c3js/health.svg)](https://phpackages.com/packages/code-works-yii-c3js)
```

###  Alternatives

[yiisoft/yii

Yii Web Programming Framework

4.8k5.9M268](/packages/yiisoft-yii)[yiisoft/yii2-queue

Yii2 Queue Extension which supports queues based on DB, Redis, RabbitMQ, Beanstalk, SQS, and Gearman

1.1k11.1M165](/packages/yiisoft-yii2-queue)[omnilight/yii2-scheduling

Scheduling extension for Yii2 framework

3181.1M8](/packages/omnilight-yii2-scheduling)[yiisoft/yii2-coding-standards

Yii PHP Framework Version 2 - Coding standard tools

1821.2M178](/packages/yiisoft-yii2-coding-standards)[yiisoft/db

Database abstraction layer and query builder

215523.3k44](/packages/yiisoft-db)[yiisoft/strings

Yii Strings Helper

512.8M43](/packages/yiisoft-strings)

PHPackages © 2026

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