2017 © Pedro Peláez
 

yii2-extension yii2-sparkline

Yii2 jQuery Sparkline widget

image

machour/yii2-sparkline

Yii2 jQuery Sparkline widget

  • Sunday, November 15, 2015
  • by machour
  • Repository
  • 3 Watchers
  • 1 Stars
  • 3,973 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 23 % Grown

The README.md

The jQuery sparkline assets and widget for Yii2., (*1)

Installation

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

Either run, (*3)

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

or add, (*4)

"machour/yii2-sparkline": "*"

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

Usage

Once the extension is installed, use the widget this way:, (*6)

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

This would produce the following sparkline: Sparkline example, (*7)

This documentation is available online, (*8)

The Versions

15/11 2015

dev-master

9999999-dev

Yii2 jQuery Sparkline widget

  Sources   Download

MIT

The Requires

 

extension yii2 charts sparkline

15/11 2015

1.0.0

1.0.0.0

Yii2 jQuery Sparkline widget

  Sources   Download

MIT

The Requires

 

extension yii2 charts sparkline