vkolya/poll-and-charts

An widget to create polls and to wrap google chart for Yii Framework 2

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 1

Type:yii2-extension

dev-master 2017-01-26 12:49 UTC

This package is not auto-updated.

Last update: 2025-06-22 04:25:25 UTC


README

Poll and google charts widget for yii2

The Poll and google charts widget for the Yii2 framework allows you to create custom polls and draw google charts for them .

Installing

The preferred way to install this extension is through composer.

Either run

php composer.phar require "vkolya/poll-and-charts":"dev-master"

or add

"vkolya/poll-and-charts":"dev-master"

to the require section of your application's composer.json file.

Usage

At first, import widget classes in view file where you want create poll

use vkolya\poll\myPoll; Then invoke the widget and specify the name of the poll and the response options

echo myPoll::widget([
     'visualization' => 'PieChart',
     'pullName' => 'What framework do you know ?',
   
     'answerOptions'=>
            [
             
        'Laravel',
        'Yii2',
        'Symfony',
             
            ],
    'diagrammsOptions' => array(title => 'Frameworks',
        height => 300,
        width => 450,
            ),
            ])