Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
graph
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李伟@五瓣科技
graph
Commits
34798fcc
Commit
34798fcc
authored
Jul 05, 2022
by
wenli.huang@wuban.net.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
d28b3ca0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
22 deletions
+20
-22
App.js
src/App.js
+20
-22
No files found.
src/App.js
View file @
34798fcc
...
@@ -40,8 +40,6 @@ class App extends Component {
...
@@ -40,8 +40,6 @@ class App extends Component {
var
mintime
=
moment
(
data
.
result
.
AxisX
.
BlockTime
/
1000000
)
var
mintime
=
moment
(
data
.
result
.
AxisX
.
BlockTime
/
1000000
)
// console.log(mintime,'mintime')
// console.log(mintime.unix()*1000000000,'最小值')
var
markline
=
data
.
result
.
AxisX
.
TopAxisX
.
map
(
item
=>
{
var
markline
=
data
.
result
.
AxisX
.
TopAxisX
.
map
(
item
=>
{
return
[
return
[
...
@@ -297,26 +295,26 @@ class App extends Component {
...
@@ -297,26 +295,26 @@ class App extends Component {
}
}
},
},
//
dataZoom: [
dataZoom
:
[
//
{
{
//
// height:20,
// height:20,
//
type: "slider",
type
:
"
slider
"
,
//
show: true,
show
:
true
,
//
xAxisIndex: [0],
xAxisIndex
:
[
0
],
//
left: '5%',
left
:
'
5%
'
,
//
bottom:-1,
bottom
:
-
1
,
//
start: 0,
start
:
0
,
//
end: 80
end
:
80
//
},
},
//
{
{
//
type: "inside", // 支持内部鼠标滚动平移
type
:
"
inside
"
,
// 支持内部鼠标滚动平移
//
start: 0,
start
:
0
,
//
end: 5,
end
:
5
,
//
zoomOnMouseWheel: false, // 关闭滚轮缩放
zoomOnMouseWheel
:
false
,
// 关闭滚轮缩放
//
moveOnMouseWheel: true, // 开启滚轮平移
moveOnMouseWheel
:
true
,
// 开启滚轮平移
//
moveOnMouseMove: true // 鼠标移动能触发数据窗口平移
moveOnMouseMove
:
true
// 鼠标移动能触发数据窗口平移
//
}
}
//
],
],
toolbox
:
{
toolbox
:
{
feature
:
{
feature
:
{
dataZoom
:
{}
dataZoom
:
{}
...
...
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