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
133 lines (120 loc) · 2.47 KB
/
stats.html
File metadata and controls
133 lines (120 loc) · 2.47 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{# Copyright The IETF Trust 2017, All Rights Reserved #}
{% extends "base.html" %}
{% load origin %}
{% load ietf_filters static bootstrap3 %}
{% 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 'highcharts/highcharts.js' %}"></script>
<script src="{% static 'highcharts/modules/exporting.js' %}"></script>
<script src="{% static 'highcharts/modules/offline-exporting.js' %}"></script>
<script>
$(document).ready(function () {
Highcharts.chart('coverage-chart', window.coverageChartConf);
Highcharts.chart('frequency-chart', window.frequencyChartConf);
});
</script>
{% endblock %}