3 declare(strict_types=1);
35 int $presentation_mode
49 $chart->setSize(
"400",
"200");
50 $chart->setAutoResize(
true);
52 $chart_data = $chart->getDataInstance();
55 $chart_data->addPiePoint(
61 $chart->addData($chart_data);
65 $legend->setContainer($pie_legend_id);
66 $chart->setLegend($legend);
81 $tpl->
setVariable(
"PERC_ANSWER_RESULT", $pbar->render());
99 "poll_results_pie_" . $this->ref_id
111 return htmlspecialchars(
113 ENT_QUOTES | ENT_SUBSTITUTE,
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
specialCharsAsEntities(string $string)
const SHOW_RESULTS_AS_PIECHART
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setVariable($variable, $value='')
Sets a variable value.
renderPieChart(ilTemplate $tpl, ilPollResultsHandler $results)
renderBarChart(ilTemplate $tpl, ilPollResultsHandler $results)
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
render(ilTemplate $tpl, ilPollResultsHandler $results, int $presentation_mode)
getAnswerPercentage(int $id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstanceByType(int $a_type, string $a_id)