dev-master
9999999-devAn widget to create polls and to wrap google chart for Yii Framework 2
BSD-2-Clause
The Requires
by Mykola Vantukh
yii2 widget poll poll-widget yii2-poll-widget
Wallogit.com
2017 © Pedro Peláez
An widget to create polls and to wrap google chart for Yii Framework 2
Poll and google charts widget for yii2, (*1)
The Poll and google charts widget for the Yii2 framework allows you to create custom polls and draw google charts for them ., (*2)
Installing, (*3)
The preferred way to install this extension is through composer., (*4)
Either run, (*5)
php composer.phar require "vkolya/poll-and-charts":"dev-master"
or add, (*6)
"vkolya/poll-and-charts":"dev-master"
to the require section of your application's composer.json file., (*7)
Usage, (*8)
At first, import widget classes in view file where you want create poll, (*9)
use vkolya\poll\myPoll; Then invoke the widget and specify the name of the poll and the response options, (*10)
echo myPoll::widget([
'visualization' => 'PieChart',
'pullName' => 'What framework do you know ?',
'answerOptions'=>
[
'Laravel',
'Yii2',
'Symfony',
],
'diagrammsOptions' => array(title => 'Frameworks',
height => 300,
width => 450,
),
])
, (*11)
An widget to create polls and to wrap google chart for Yii Framework 2
BSD-2-Clause
yii2 widget poll poll-widget yii2-poll-widget