2020-01-21 06:35:58 +00:00
|
|
|
{% extends "stats/base.html" %}
|
|
|
|
{% block media %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<style>
|
|
|
|
.chart {
|
|
|
|
margin: 10px 0;
|
|
|
|
}
|
|
|
|
</style>
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block chart_body %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<h3>{{ _('Submission Statistics') }}</h3>
|
|
|
|
<div id="status-counts" class="chart">
|
|
|
|
<canvas width="400" height="300"></canvas>
|
|
|
|
</div>
|
2020-01-21 06:35:58 +00:00
|
|
|
|
2023-01-27 23:11:10 +00:00
|
|
|
<h3>{{ _('Submissions by Language') }}</h3>
|
|
|
|
<div id="lang-all" class="chart">
|
|
|
|
<canvas width="400" height="300"></canvas>
|
|
|
|
</div>
|
2020-01-21 06:35:58 +00:00
|
|
|
|
2023-01-27 23:11:10 +00:00
|
|
|
<h3>{{ _('AC Submissions by Language') }}</h3>
|
|
|
|
<div id="lang-ac" class="chart">
|
|
|
|
<canvas width="400" height="300"></canvas>
|
|
|
|
</div>
|
2020-01-21 06:35:58 +00:00
|
|
|
|
2023-01-27 23:11:10 +00:00
|
|
|
<h3>{{ _('Language AC Rate') }}</h3>
|
|
|
|
<div id="ac-rate" class="chart">
|
|
|
|
<canvas><canvas>
|
2020-01-21 06:35:58 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block bodyend %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
|
|
Chart.defaults.global.scaleFontFamily =
|
|
|
|
Chart.defaults.global.tooltipFontFamily =
|
|
|
|
Chart.defaults.global.tooltipTitleFontFamily =
|
|
|
|
$('body').css('font-family');
|
|
|
|
draw_pie_chart({{ data_all }}, $('#lang-all'));
|
|
|
|
draw_pie_chart({{ lang_ac }}, $('#lang-ac'));
|
|
|
|
draw_pie_chart({{ status_counts }}, $('#status-counts'));
|
|
|
|
draw_bar_chart({{ ac_rate }}, $('#ac-rate'));
|
|
|
|
});
|
|
|
|
</script>
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|