Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
data-view
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 77e67c21
authored
Jun 30, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
折线图-默认和移除
1 parent
d1aabe1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
src/components/LineChart.vue
src/components/LineChart.vue
View file @
77e67c2
...
...
@@ -124,25 +124,21 @@ export default {
// 鼠标划入
this
[
this
.
domId
].
on
(
'mouseover'
,
data
=>
{
this
.
moveAttr
.
series
Index
=
data
.
dataIndex
this
.
getRankList
(
this
.
moveAttr
.
series
Index
,
this
.
rankFlag
+
'List'
)
this
.
moveAttr
.
data
Index
=
data
.
dataIndex
this
.
getRankList
(
this
.
moveAttr
.
data
Index
,
this
.
rankFlag
+
'List'
)
})
// 鼠标划出
this
[
this
.
domId
].
on
(
'mouseout'
,
()
=>
{
console
.
log
(
'0000000000'
)
setTimeout
(()
=>
{
this
.
chartAction
()
},
1000
)
// 移除图表
this
[
this
.
domId
].
on
(
'globalout'
,
()
=>
{
this
.
chartAction
()
})
},
chartAction
(
type
)
{
console
.
log
(
this
.
moveAttr
,
'???/cwq'
)
this
[
this
.
domId
].
dispatchAction
({
type
:
type
||
'showTip'
,
seriesIndex
:
this
.
moveAttr
.
seriesIndex
,
dataIndex
:
this
.
moveAttr
.
dataIndex
seriesIndex
:
+
this
.
moveAttr
.
seriesIndex
,
dataIndex
:
+
this
.
moveAttr
.
dataIndex
})
},
...
...
@@ -169,7 +165,7 @@ export default {
handleRankChange
(
value
)
{
this
.
rankFlag
=
value
this
.
getRankList
(
this
.
moveAttr
.
series
Index
,
this
.
rankFlag
+
'List'
)
this
.
getRankList
(
this
.
moveAttr
.
data
Index
,
this
.
rankFlag
+
'List'
)
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment