-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgostatsvn.html
49 lines (47 loc) · 1.24 KB
/
gostatsvn.html
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
<script src="http://s0.qhimg.com/lib/jquery/183.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
<script>
$(function () {
var chart = $('#container').highcharts({
title: {
text: '代码量统计',
x: -20 //center
},
subtitle: {
text: 'Source: haosou.com',
x: -20
},
xAxis:
function(){
var xaxis = JSON.parse({{ .xaxis | printf "%s"}});
return xaxis;
}()
,
yAxis: {
title: {
text: '行'
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
tooltip: {
valueSuffix: ' 行'
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth: 0
},
series: function(){
var series = JSON.parse({{ .series | printf "%s"}});
return series.series;
}()
});
});
</script>