2017 © Pedro Peláez
 

yii2-extension yii2-visualize

jQuery Visualize is a extension for Yii 2.0 framework to draw charts for presentation

image

slavkovrn/yii2-visualize

jQuery Visualize is a extension for Yii 2.0 framework to draw charts for presentation

  • Saturday, August 5, 2017
  • by slavkovrn
  • Repository
  • 0 Watchers
  • 1 Stars
  • 217 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 22 % Grown

The README.md

Visualize widget for Yii2 Framework

The extension uses visualize.jQuery.js and makes charts from php array of structure defined., (*1)

Visualize widget PHP Array generator., (*2)

Visualize widget, (*3)

Installation

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

Either run:, (*5)

composer require slavkovrn/yii2-visualize

or add, (*6)

"slavkovrn/yii2-visualize": "*"

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

Usage

Set link to extension in your view:, (*8)



= VisualizeWidget::widget([
    'id' => 'graphic',      // Id of visualize widget should be unique at page
    'class' => 'graphic',   // Class to define stile
    'name' => 'Visualize',  // Name of visualize widget
    'style' => 'light',     // Style of widget (only 'dark' or 'light' option)
    'width' => 800,         // Width of widget in pixels
    'height' => 200,        // Height of widget in pixels
    'graphic' => [          // data of chart of structure defined
        'SIN' => [
                    number_format(0,5) => sin(0),
                    number_format(Pi()/4,5) => sin(Pi()/4),
                    number_format(Pi()/2,5) => sin(Pi()/2),
                    number_format(Pi()/2+Pi()/4,5) => sin(Pi()/2+Pi()/4),
                    number_format(Pi(),5) => sin(Pi()),
                    number_format(Pi()+Pi()/4,5) => sin(Pi()+Pi()/4),
                    number_format(Pi()+Pi()/2,5) => sin(Pi()+Pi()/2),
                    number_format(Pi()+Pi()/2+Pi()/4,5) => sin(Pi()+Pi()/2+Pi()/4),
                    number_format(2*Pi(),5) => sin(2*Pi()),
                 ],
        'COS' => [
                    number_format(0,5) => cos(0),
                    number_format(Pi()/4,5) => cos(Pi()/4),
                    number_format(Pi()/2,5) => cos(Pi()/2),
                    number_format(Pi()/2+Pi()/4,5) => cos(Pi()/2+Pi()/4),
                    number_format(Pi(),5) => cos(Pi()),
                    number_format(Pi()+Pi()/4,5) => cos(Pi()+Pi()/4),
                    number_format(Pi()+Pi()/2,5) => cos(Pi()+Pi()/2),
                    number_format(Pi()+Pi()/2+Pi()/4,5) => cos(Pi()+Pi()/2+Pi()/4),
                    number_format(2*Pi(),5) => cos(2*Pi()),
                 ],
    ]
]) ?>

write comments to admin, (*9)

The Versions

05/08 2017

dev-master

9999999-dev

jQuery Visualize is a extension for Yii 2.0 framework to draw charts for presentation

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 yii 2 jquery visualize chart

05/08 2017

1.0.1

1.0.1.0

jQuery Visualize is a extension for Yii 2.0 framework to draw charts for presentation

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 yii 2 jquery visualize chart

30/07 2017

1.0.0

1.0.0.0

jQuery Visualize is a extension for Yii 2.0 framework to draw charts for presentation

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 yii 2 jquery visualize chart