2017 © Pedro Peláez
 

yii2-extension yii2-sparkline

A wrapper for Jquery Sparkline in Yii2

image

mrlco/yii2-sparkline

A wrapper for Jquery Sparkline in Yii2

  • Wednesday, July 13, 2016
  • by mrlco
  • Repository
  • 1 Watchers
  • 1 Stars
  • 148 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 35 % Grown

The README.md

yii2-sparkline

A wrapper for Jquery Sparkline in Yii2, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

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

or add, (*4)

"mrlco/yii2-sparkline": "*"

to the require section of your composer.json file., (*5)

Usage

Remember to include the Sparkline.php where ever you need:, (*6)

    use mrlco\sparkline\Sparkline;

And in your view:, (*7)

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

The Versions

13/07 2016

dev-master

9999999-dev

A wrapper for Jquery Sparkline in Yii2

  Sources   Download

BSD-3

The Requires

 

yii2 sparkline

13/07 2016

1.0.0

1.0.0.0

A wrapper for Jquery Sparkline in Yii2

  Sources   Download

BSD-3

The Requires

 

yii2 sparkline