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 7bc0cdd9
authored
Jun 30, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_v1.0.0' of
http://192.168.3.233:8090/gh/data-view
into dev_v1.0.0
2 parents
c249a32b
9804231b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
src/components/LineChart.vue
src/components/LineChart.vue
View file @
7bc0cdd
...
...
@@ -114,6 +114,20 @@ export default {
this
.
getRankList
(
this
.
moveAttr
.
dataIndex
,
this
.
rankFlag
+
'List'
)
})
// 绑定点击事件
this
[
this
.
domId
].
getZr
().
on
(
'mouseover'
,
(
params
)
=>
{
const
pointInPixel
=
[
params
.
offsetX
,
params
.
offsetY
]
if
(
this
[
this
.
domId
].
containPixel
(
'grid'
,
pointInPixel
))
{
var
xIndex
=
this
[
this
.
domId
].
convertFromPixel
({
seriesIndex
:
0
},
[
params
.
offsetX
,
params
.
offsetY
])[
0
]
/* 事件处理代码书写位置 */
this
.
moveAttr
.
dataIndex
=
xIndex
this
.
getRankList
(
this
.
moveAttr
.
dataIndex
,
this
.
rankFlag
+
'List'
)
}
})
// 移除图表
this
[
this
.
domId
].
on
(
'globalout'
,
()
=>
{
this
.
chartAction
()
...
...
@@ -145,8 +159,6 @@ export default {
this
.
chartAction
()
this
.
getRankList
(
0
)
// this.autoMove()
},
handleRankChange
(
value
)
{
...
...
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