Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ec-report-refactor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lihuizhen
ec-report-refactor
Commits
00d82801
Commit
00d82801
authored
May 06, 2022
by
leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:map tooltip display
parent
c2472302
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
BarMixMap.vue
components/BarMixMap/BarMixMap.vue
+15
-3
No files found.
components/BarMixMap/BarMixMap.vue
View file @
00d82801
...
...
@@ -12,6 +12,7 @@
import
uniEcCanvas
from
'@/uni-ec-canvas/uni-ec-canvas'
import
echartElementData
from
'@/mixins/echartElementData.js'
import
{
geoCoordMapList
}
from
'@/uni-ec-canvas/geoCoordMap.js'
import
{
DATAZOOM_DEFAULT
}
from
'@/mixins/zoomConfig.js'
let
chart
=
null
export
default
{
name
:
"BarMixMap"
,
...
...
@@ -74,7 +75,7 @@
...
this
.
elementInfo
.
option
.
yAxis
,
data
:
this
.
dealSeriesData
(
series
).
categories
},
dataZoom
:
this
.
elementInfo
.
dataZoom
&&
this
.
elementInfo
.
dataZoom
.
show
?
this
.
elementInfo
.
dataZoom
:
[
],
dataZoom
:
this
.
elementInfo
.
dataZoom
&&
this
.
elementInfo
.
dataZoom
.
show
?
[{...
this
.
elementInfo
.
dataZoom
,...
DATAZOOM_DEFAULT
}]
:
[{
show
:
false
}
],
series
:
{
id
:
'associate'
,
type
:
'bar'
,
...
...
@@ -128,6 +129,17 @@
},
visualMap
:
this
.
elementInfo
.
option
.
visualMap
.
show
?
[
this
.
elementInfo
.
option
.
visualMap
]
:
[],
animationDurationUpdate
:
1000
,
tooltip
:
{
show
:
this
.
elementInfo
.
option
.
dataset
.
show
,
trigger
:
'item'
,
formatter
:
(
value
)
=>
{
if
(
this
.
elementInfo
.
option
.
dataset
.
formatter
)
{
return
this
.
$u
.
common
.
converFunction
(
this
.
elementInfo
.
option
.
dataset
.
formatter
,
value
)
}
else
{
return
`
${
value
.
data
.
name
}
:
${
value
.
data
.
value
[
2
]}
`
}
}
},
series
:
[{
id
:
'associate'
,
type
:
'map'
,
...
...
@@ -149,12 +161,12 @@
},
label
:
{
show
:
this
.
elementInfo
.
option
.
dataset
.
show
,
position
:
'
right
'
,
position
:
'
inside
'
,
formatter
:
(
value
)
=>
{
if
(
this
.
elementInfo
.
option
.
dataset
.
formatter
)
{
return
this
.
$u
.
common
.
converFunction
(
this
.
elementInfo
.
option
.
dataset
.
formatter
,
value
)
}
else
{
return
this
.
elementInfo
.
option
.
dataset
.
show
?
`
${
value
.
data
.
name
}
:
${
value
.
data
.
value
[
2
]}
`
:
value
.
data
.
name
return
this
.
elementInfo
.
option
.
dataset
.
show
?
value
.
data
.
name
:
""
}
},
fontSize
:
this
.
elementInfo
.
option
.
dataset
.
fontSize
,
...
...
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