NDOJ/templates/stats/language.html

46 lines
1.3 KiB
HTML
Raw Normal View History

2020-01-21 06:35:58 +00:00
{% extends "stats/base.html" %}
{% block media %}
<style>
.chart {
margin: 10px 0;
}
</style>
{% endblock %}
{% block chart_body %}
<h3>{{ _('Submission Statistics') }}</h3>
<div id="status-counts" class="chart">
<canvas width="400" height="300"></canvas>
</div>
<h3>{{ _('Submissions by Language') }}</h3>
<div id="lang-all" class="chart">
<canvas width="400" height="300"></canvas>
</div>
<h3>{{ _('AC Submissions by Language') }}</h3>
<div id="lang-ac" class="chart">
<canvas width="400" height="300"></canvas>
</div>
<h3>{{ _('Language AC Rate') }}</h3>
<div id="ac-rate" class="chart">
<canvas><canvas>
</div>
{% endblock %}
{% block bodyend %}
<script type="text/javascript">
$(function () {
Chart.defaults.global.scaleFontFamily =
Chart.defaults.global.tooltipFontFamily =
Chart.defaults.global.tooltipTitleFontFamily =
$('body').css('font-family');
2022-09-22 22:33:14 +00:00
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'));
2020-01-21 06:35:58 +00:00
});
</script>
{% endblock %}