Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrna authored Jul 13, 2016
1 parent b76c862 commit 3c4ae84
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
# yii2-sparkline
A wrapper for Jquery Sparkline in Yii2

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

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist mrlco/yii2-sparkline "*"
```

or add

```
"mrlco/yii2-sparkline": "*"
```

to the require section of your `composer.json` file.

Usage
-----

```php
<?= \mrlco\sparkline\Sparkline::widget([
'clientOptions' => [
'type' => 'bar',
'height' => 20,
'barColor' => '#00a65a',
],
'data' => [90, 80, 90, -70, 61, -83, 63]
]); ?>
```

0 comments on commit 3c4ae84

Please sign in to comment.