| Server IP : 138.197.176.125 / Your IP : 216.73.216.41 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/AppointmentScheduler-Don/modules/Surveys/tpls/Reports/ |
Upload File : |
<table style="width: 25%" class="table table-bordered">
<tr>
<th>{$mod.LBL_RESPONSE_ANSWER}</th>
<th>{$mod.LBL_RESPONSE_COUNT}</th>
</tr>
{foreach from=$question.responses item=response}
<tr>
<td>{$response.label}</td>
<td>{$response.count}</td>
</tr>
{/foreach}
</table>
<canvas width="600" height="300" id='{$question.id}Chart' class=''></canvas>
<script>
{literal}
$(document).ready(function () {
var chartData = {/literal}{$question.chartData|@json_encode}{literal};
var chartLabels = {/literal}{$question.chartLabels|@json_encode}{literal};
new RGraph.Pie({
id: '{/literal}{$question.id}{literal}Chart',
data: chartData,
options: {
title: '{/literal}{$question.name}{literal}',
textSize: 10,
titleSize: 10,
colors: ['#f08377', '#534d64', '#778591', '#bfcad3', '#d8f5ee'],
tooltips: function (ind) {
return chartLabels[ind] + " - " + chartData[ind];
},
tooltipsEvent: 'onmousemove',
labels: chartLabels,
}
}).draw();
});
{/literal}
</script>