Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
戒酒的李白
2024-07-03 13:24:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1d2fab3115bbf040996ba780bf36cd30deb17c9e
1d2fab31
1 parent
5468d64e
【ipChar.html】ip地图页面初步框架
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
0 deletions
views/page/templates/ipChar.html
views/page/templates/ipChar.html
0 → 100644
View file @
1d2fab3
{% 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 %}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment