
| Current Path : /var/www/html1/bbp/web/modules/contrib/visitors/templates/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/bbp/web/modules/contrib/visitors/templates/visitors_jqplot.html.twig |
<div id="visitors_chart" style="width: {{ width }}px; height: {{ height }}px;"></div>
{{ attach_library('visitors/jqplot.pointLabels') }}
{{ attach_library('visitors/jqplot.categoryAxisRenderer') }}
{{ attach_library('visitors/jqplot.barRenderer') }}
{{ attach_library('visitors/jquery.jqplot') }}
<script type="text/javascript">
jQuery(document).ready(function($){
var s = [{{ y | raw }}];
var ticks = [{{ x | raw }}];
$.jqplot('visitors_chart', [s], {
width: {{ width }},
height: {{ height }},
seriesDefaults: {
renderer: $.jqplot.BarRenderer,
pointLabels: { show: true }
},
axes: {
xaxis: {
renderer: $.jqplot.CategoryAxisRenderer,
ticks: ticks
}
}
});
});
</script>