MDL-55352 mod_feedback: Change series labels on multi choice rated

This commit is contained in:
Simey Lameze 2016-08-02 09:23:18 +08:00
parent b34d7e700b
commit 30452f23cb

View File

@ -198,14 +198,14 @@ class feedback_item_multichoicerated extends feedback_item_base {
array('noclean' => true, 'para' => false));
if ($val->quotient > 0) {
$strquotient = '('.$quotient.' %)';
$strquotient = ' ('.$quotient.' %)';
} else {
$strquotient = '';
}
$data['labels'][$count] = $answertext;
$data['series'][$count] = $val->answercount;
$data['series_labels'][$count] = $strquotient;
$data['series_labels'][$count] = $val->answercount . $strquotient;
$count++;
}
$chart = new \core\chart_bar();