Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3d99b5ab
authored
Mar 07, 2022
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
数字隐藏
parent
e75b9463
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
57 deletions
js/vis/index.js
js/vis/index.js
View file @
3d99b5ab
...
...
@@ -15,59 +15,6 @@
return
this
;
},
maps
:
function
()
{
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'map'
));
var
option
=
{
tooltip
:
{
// show: false //不显示提示标签
formatter
:
'{b}'
,
//提示标签格式
backgroundColor
:
"#ff7f50"
,
//提示标签背景颜色
textStyle
:
{
color
:
"#fff"
}
//提示标签字体颜色
},
series
:
[{
type
:
'map'
,
mapType
:
'china'
,
label
:
{
normal
:
{
show
:
false
,
//显示省份标签
textStyle
:
{
color
:
"#c71585"
}
//省份标签字体颜色
},
emphasis
:
{
//对应的鼠标悬浮效果
show
:
true
,
textStyle
:
{
color
:
"#800080"
}
}
},
itemStyle
:
{
normal
:
{
borderWidth
:
.
5
,
//区域边框宽度
borderColor
:
'#009fe8'
,
//区域边框颜色
areaColor
:
"#fff"
,
//区域颜色
},
emphasis
:
{
borderWidth
:
.
5
,
borderColor
:
'#4b0082'
,
areaColor
:
"#ffdead"
,
}
},
data
:
[{
}
//福建为选中状态
]
}],
};
myChart
.
setOption
(
option
);
myChart
.
on
(
'mouseover'
,
function
(
params
)
{
var
dataIndex
=
params
.
dataIndex
;
console
.
log
(
params
);
});
},
map
:
function
()
{
$
.
ajax
({
...
...
@@ -330,7 +277,7 @@
barWidth
:
25
,
label
:
{
normal
:
{
show
:
tru
e
,
show
:
fals
e
,
position
:
'top'
,
color
:
'#96bcf6'
}
...
...
@@ -385,7 +332,7 @@
barWidth
:
25
,
label
:
{
normal
:
{
show
:
tru
e
,
show
:
fals
e
,
position
:
'top'
,
color
:
'#96bcf6'
}
...
...
@@ -447,7 +394,7 @@
barWidth
:
13
,
label
:
{
normal
:
{
show
:
tru
e
,
show
:
fals
e
,
position
:
'right'
,
color
:
'#96bcf6'
}
...
...
@@ -509,7 +456,7 @@
barWidth
:
13
,
label
:
{
normal
:
{
show
:
tru
e
,
show
:
fals
e
,
position
:
'right'
,
color
:
'#96bcf6'
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment