Skip to content

Commit 36f4273

Browse files
committed
Add template missing from previous commit
- Legacy-Id: 12895
1 parent 33e9577 commit 36f4273

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<h3>{{ stats_title }}</h3>
2+
3+
<div id="chart"></div>
4+
5+
<script>
6+
var chartConf = {
7+
chart: {
8+
type: 'line',
9+
},
10+
plotOptions: {
11+
line: {
12+
marker: {
13+
enabled: false
14+
},
15+
animation: false
16+
}
17+
},
18+
legend: {
19+
align: "right",
20+
verticalAlign: "middle",
21+
layout: "vertical",
22+
enabled: true
23+
},
24+
title: {
25+
text: '{{ stats_title|escapejs }}'
26+
},
27+
xAxis: {
28+
tickInterval: 1,
29+
title: {
30+
text: 'Year'
31+
}
32+
},
33+
yAxis: {
34+
min: 0,
35+
title: {
36+
text: 'Authors active in year'
37+
}
38+
},
39+
tooltip: {
40+
formatter: function () {
41+
var s = '<b>' + this.x + '</b>';
42+
43+
$.each(this.points, function () {
44+
s += '<br/>' + this.series.name + ': ' + this.y;
45+
});
46+
47+
return s;
48+
},
49+
shared: true
50+
},
51+
series: {{ chart_data }}
52+
};
53+
</script>

0 commit comments

Comments
 (0)