ipChar.html
1.85 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
{% extends 'base_page.html' %}
{% block title %}
IP分析
{% endblock %}
{% block echarts %}
<script>
var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
var option;
option = {
title:{
text:'文章IP发布地址地图',
left:'center',
textStyle:{
color:"#333",
fontWeight:"bold"
}
},
tooltip:{
trigger:'item',
formatter:function(params){
return params.name + '<br>微博发布个数: ' + params.value + ' 个'
}
},
visualMap:{
min:0,
max:200,
text:['高','低'],
realtime:true,
calulable:true,
inRange:{
color:['orange','green']
}
},
series:[{
type:'map',
map:"china",
label:{
normal:{
show:true,
color:"white",
fontSize:'12'
}
},
emphasis:{
label:{
show:true
},
},
data:{{ commentRegionData | tojson }},
itemStyle:{
normal: {
areaColor:"skyblue",
borderColor:"#fff"
},
emphasis:{
areaColor: '#2b91b7'
}
},
zoom:1.4,
roam:true
}]
}
option && myChart.setOption(option);
</script>
{% endblock %}