The BarChart snippet provides a single dimension barchart based on one question_code for all surveys using a specific survey_code
Options are: $min / $max for min and max values for the chart $showButtons show buttons underneath the chart for cancel / print $showHeaders show a header for the overview (chart always has a header) $question_code single question code or array of questioncodes to get a grouped barchart $survey_code
| package | Gems |
|---|---|
| subpackage | Snippets\Survey\Display |
| author | Menno Dekker |
| copyright | Copyright (c) 2014 Erasmus MC |
| license | New BSD License |
| version | $Id$ |
afterRegistry()
getChart()
getHtmlOutput(\Zend_View_Abstract $view) : \type
\Zend_View_Abstract
\typedoRulers($chart)
getPercentage(\number $value) : float
\number
float$data
$grid : boolean
true$loader : \Gems_Loader
$question_code : string
null$question_text : string
null$request : \Zend_Controller_Request_Abstract
$rulers : array
array()percentage (0-100) value (between min/max) class positive/negative for green/red color
$survey_code : string
null$token : \Gems_Tracker_Token
$max : integer
100$min : integer
0$showButtons : boolean
true$showHeaders : boolean
true