Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
WidgetUI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WuFeiyang
WidgetUI
Commits
edbde80b
Commit
edbde80b
authored
Dec 30, 2019
by
WuFeiyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重载修复x轴同步bug
parent
a7ecd84c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
11 deletions
+34
-11
src/components/WaveView/setBasicParams.vue
src/components/WaveView/setBasicParams.vue
+34
-11
No files found.
src/components/WaveView/setBasicParams.vue
View file @
edbde80b
...
@@ -458,8 +458,6 @@ export default class setBasicParams extends Vue {
...
@@ -458,8 +458,6 @@ export default class setBasicParams extends Vue {
var
getConfig
=
this
.
getConfig
;
var
getConfig
=
this
.
getConfig
;
var
updateConfig
=
this
.
updateConfig
;
var
updateConfig
=
this
.
updateConfig
;
var
pathProcessor
=
this
.
pathProcessor
var
pathProcessor
=
this
.
pathProcessor
var
zoom_xmax
=
this
.
temp
.
dataTimeAxis
[
this
.
nowDotNum
-
1
];
var
zoom_xmax
=
this
.
temp
.
dataTimeAxis
[
this
.
nowDotNum
-
1
];
var
zoom_xmin
=
this
.
temp
.
dataTimeAxis
[
0
];
var
zoom_xmin
=
this
.
temp
.
dataTimeAxis
[
0
];
var
zoom_ymax
=
this
.
temp
.
data
[
this
.
nowDotNum
-
1
];
var
zoom_ymax
=
this
.
temp
.
data
[
this
.
nowDotNum
-
1
];
...
@@ -486,10 +484,14 @@ export default class setBasicParams extends Vue {
...
@@ -486,10 +484,14 @@ export default class setBasicParams extends Vue {
console
.
log
(
"
d
"
);
console
.
log
(
"
d
"
);
console
.
log
(
data
);
console
.
log
(
data
);
if
(
!
data
[
"
xaxis.autorange
"
]
&&
(
data
[
"
xaxis.range[0]
"
]
||
data
[
"
xaxis
"
])
)
{
if
(
!
data
[
"
xaxis.autorange
"
]
&&
(
data
[
"
xaxis.range[0]
"
]
||
data
[
"
xaxis
"
])
)
{
var
nowZoom_xmin
;
var
nowZoom_xmin
;
var
nowZoom_xmax
;
var
nowZoom_xmax
;
if
(
data
[
"
xaxis
"
])
if
(
data
[
"
xaxis
"
])
{
{
console
.
log
(
"
x
"
);
console
.
log
(
"
x
"
);
...
@@ -588,6 +590,26 @@ export default class setBasicParams extends Vue {
...
@@ -588,6 +590,26 @@ export default class setBasicParams extends Vue {
y
:
temp
.
data
y
:
temp
.
data
}
}
];
];
console
.
log
(
"
data_update
"
);
console
.
log
(
data_update
);
var
myplot
=
this
.
wave
;
var
yRange
=
myplot
.
layout
.
yaxis
.
range
;
console
.
log
(
yRange
);
if
(
!
data
[
"
yaxis
"
]
&&!
data
[
"
yaxis.range[0]
"
])
{
var
layout_update
=
{
xaxis
:
{
range
:
[
nowZoom_xmin
,
nowZoom_xmax
]
},
yaxis
:
{
range
:
[
yRange
[
0
],
yRange
[
1
]]
},
annotations
:
this
.
annotations
};
}
else
{
var
layout_update
=
{
var
layout_update
=
{
xaxis
:
{
xaxis
:
{
range
:
[
nowZoom_xmin
,
nowZoom_xmax
]
range
:
[
nowZoom_xmin
,
nowZoom_xmax
]
...
@@ -597,6 +619,7 @@ export default class setBasicParams extends Vue {
...
@@ -597,6 +619,7 @@ export default class setBasicParams extends Vue {
},
},
annotations
:
this
.
annotations
annotations
:
this
.
annotations
};
};
}
createChannelChart
(
this
.
myPlot
,
data_update
,
layout_update
);
createChannelChart
(
this
.
myPlot
,
data_update
,
layout_update
);
this
.
zoom
();
this
.
zoom
();
...
...
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