forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstats.html
More file actions
117 lines (117 loc) · 3.3 KB
/
stats.html
File metadata and controls
117 lines (117 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{# Copyright The IETF Trust 2017, All Rights Reserved #}
{% extends "base.html" %}
{% load origin %}
{% load ietf_filters static django_bootstrap5 %}
{% block title %}Release Statistics{% endblock %}
{% block pagehead %}{% endblock %}
{% block content %}
{% origin %}
<h1>Release Statistics</h1>
<div id="coverage-chart"></div>
<script id="coverage-data">
var coverageChartConf = {
chart: {
type: 'line',
},
credits: {
enabled: false
},
exporting: {
fallbackToExportServer: false
},
legend: {
align: "right",
verticalAlign: "middle",
layout: "vertical",
enabled: true
},
plotOptions: {
line: {
marker: {
enabled: false
},
animation: false
}
},
title: {
text: 'Test coverage'
},
xAxis: {
type: 'datetime',
title: {
text: 'Release date'
},
},
units: [
[ 'day', [1]],
[ 'week', [1]],
[ 'month', [1, 3, 6]],
[ 'year', null ]
],
yAxis: {
min: 0,
title: {
text: 'Test coverage'
},
labels: {
formatter: function() {
return this.value*100+"%";
}
}
},
series: {{ coverage_chart_data }}
};
</script>
<div id="frequency-chart"></div>
<script id="frequency-data">
var frequencyChartConf = {
chart: {
type: 'column',
},
credits: {
enabled: false
},
exporting: {
fallbackToExportServer: false
},
legend: {
align: "right",
verticalAlign: "middle",
layout: "vertical",
enabled: true
},
plotOptions: {
column: {
animation: false
}
},
title: {
text: 'Releases per year'
},
xAxis: {
type: 'category',
title: {
text: 'Year'
},
},
yAxis: {
min: 0,
title: {
text: 'Number of releases'
}
},
series: {{ frequency_chart_data }}
};
</script>
{% endblock %}
{% block js %}
<script src="{% static 'ietf/js/highcharts-highcharts.js' %}"></script>
<script src="{% static 'ietf/js/highcharts-exporting.js' %}"></script>
<script src="{% static 'ietf/js/highcharts-offline-exporting.js' %}"></script>
<script>
$(document).ready(function () {
Highcharts.chart('coverage-chart', window.coverageChartConf);
Highcharts.chart('frequency-chart', window.frequencyChartConf);
});
</script>
{% endblock %}