Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
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 a6d848af
authored
Jun 15, 2023
by
李君
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
1859c69b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
miniProject/index/index.js
miniProject/index/index2.js
miniProject/index/index.js
View file @
a6d848a
...
@@ -249,7 +249,7 @@ Component({
...
@@ -249,7 +249,7 @@ Component({
getLineConfig
(
res
)
{
getLineConfig
(
res
)
{
let
xasix
=
res
.
xaxis
.
data
||
[]
let
xasix
=
res
.
xaxis
.
data
||
[]
let
seriesList
=
res
.
series
||
[];
let
seriesList
=
res
.
series
||
[];
let
legendData
=
[
'
路过客流'
,
'进店
客流'
,
'顾客人数'
,
'进店率'
]
let
legendData
=
[
'
进店客流'
,
'路过
客流'
,
'顾客人数'
,
'进店率'
]
seriesList
.
forEach
((
item
,
index
)
=>
{
seriesList
.
forEach
((
item
,
index
)
=>
{
if
(
index
==
3
){
if
(
index
==
3
){
item
.
yAxisIndex
=
1
item
.
yAxisIndex
=
1
...
@@ -366,7 +366,7 @@ Component({
...
@@ -366,7 +366,7 @@ Component({
}
}
}],
}],
legend
:{
legend
:{
data
:[
'
路过客流'
,
'进店
客流'
,
'顾客人数'
,
'进店率'
],
data
:[
'
进店客流'
,
'路过
客流'
,
'顾客人数'
,
'进店率'
],
// bottom: 0
// bottom: 0
},
},
color
:
[
'#FD8C5E'
,
'#6FD3FF'
,
'#BC7FF8'
,
'#4F75FF'
,
'#FF9AC1'
],
color
:
[
'#FD8C5E'
,
'#6FD3FF'
,
'#BC7FF8'
,
'#4F75FF'
,
'#FF9AC1'
],
...
...
miniProject/index/index2.js
View file @
a6d848a
...
@@ -331,7 +331,7 @@ Component({
...
@@ -331,7 +331,7 @@ Component({
let
xasix
=
res
.
xaxis
.
data
let
xasix
=
res
.
xaxis
.
data
// let legendList = res.series.map(item => item.name)
// let legendList = res.series.map(item => item.name)
let
seriesList
=
res
.
series
||
[]
let
seriesList
=
res
.
series
||
[]
let
legendData
=
[
'
路过客流'
,
'进店
客流'
,
'顾客人数'
,
'进店率'
]
let
legendData
=
[
'
进店客流'
,
'路过
客流'
,
'顾客人数'
,
'进店率'
]
seriesList
.
forEach
((
item
,
index
)
=>
{
seriesList
.
forEach
((
item
,
index
)
=>
{
if
(
index
==
3
){
if
(
index
==
3
){
item
.
yAxisIndex
=
1
item
.
yAxisIndex
=
1
...
@@ -436,7 +436,7 @@ Component({
...
@@ -436,7 +436,7 @@ Component({
}
}
}],
}],
legend
:{
legend
:{
data
:[
'
路过客流'
,
'进店
客流'
,
'顾客人数'
,
'进店率'
],
data
:[
'
进店客流'
,
'路过
客流'
,
'顾客人数'
,
'进店率'
],
// bottom: 0
// bottom: 0
},
},
color
:
[
'#FD8C5E'
,
'#6FD3FF'
,
'#BC7FF8'
,
'#4F75FF'
,
'#FF9AC1'
],
color
:
[
'#FD8C5E'
,
'#6FD3FF'
,
'#BC7FF8'
,
'#4F75FF'
,
'#FF9AC1'
],
...
...
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