point-tools/templates/Web/User/top.html.twig

22 lines
714 B
Twig

{% extends 'Web/base.html.twig' %}
{% block header_title %}Stats @ Point Tools{% endblock %}
{% block head_js %}
{{ parent() }}
<script src="{{ asset('js/lib/highcharts/highcharts.js') }}"></script>
<script src="{{ asset('js/lib/highcharts/exporting.js') }}"></script>
{% endblock %}
{% block content %}
<div id="topchart" style="min-width: 400px; height: 600px; margin: 0 auto;"></div>
<div id="eventschart" style="min-width: 400px; height: 600px; margin: 0 auto;"></div>
<script type="text/javascript">
$(function() {
{{ top_chart | hc_render('topchart') }}
{{ events_dynamic_chat | hc_render('eventschart') }}
});
</script>
{% endblock %}