Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
上
上药订单生命周期升级
Project overview
Project overview
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
sph
上药订单生命周期升级
Commits
10f014a5
Commit
10f014a5
authored
Mar 30, 2021
by
琉璃丶c
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改echarts的endvalue算法第一版
parent
24252609
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
src/components/EchartsView.vue
src/components/EchartsView.vue
+15
-4
No files found.
src/components/EchartsView.vue
View file @
10f014a5
...
...
@@ -49,6 +49,16 @@ export default {
let
_this
=
this
let
layout
=
document
.
getElementById
(
'
chartView
'
)
let
chart
=
echarts
.
init
(
layout
)
// let endValue = 10 - Math.ceil(this.xList.length / 100)
// if (endValue
<=
0
)
{
// endValue = 5
// }
let
endValue
=
_this
.
xList
.
length
while
(
endValue
>
10
)
{
endValue
=
endValue
/
6
}
console
.
log
(
_this
.
xList
.
length
,
endValue
)
let
options
=
{
// animation: false,
color
:
'
#02a7f0
'
,
...
...
@@ -59,7 +69,7 @@ export default {
xAxisIndex
:
[
0
],
filterMode
:
'
none
'
,
start
:
0
,
end
:
2
,
end
:
endValue
,
zoomLock
:
true
}
],
...
...
@@ -94,7 +104,8 @@ export default {
}
},
axisLabel
:
{
color
:
'
#999999
'
color
:
'
#999999
'
// ,
// interval: 1
},
axisTick
:
{
alignWithLabel
:
true
...
...
@@ -110,8 +121,8 @@ export default {
},
axisLabel
:
{
color
:
'
#999999
'
,
formatter
:
'
{value} ℃
'
,
interval
:
0.5
formatter
:
'
{value} ℃
'
//
,
//
interval: 0.5
},
splitLine
:
{
lineStyle
:
{
...
...
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