Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
常超
founder_vue
Commits
3fb03412
Commit
3fb03412
authored
Apr 19, 2023
by
liyuhang19990520
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
警犬
parent
a6dff93e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
dist.zip
+0
-0
src/views/dataJq/components/JobDog.vue
+4
-4
src/views/dataJq/components/StudDog.vue
+7
-4
No files found.
dist.zip
View file @
3fb03412
No preview for this file type
src/views/dataJq/components/JobDog.vue
View file @
3fb03412
...
...
@@ -316,7 +316,7 @@ export default {
};
myChart
.
setOption
(
option
);
},
getLineCharts
(
xLabel
,
series
,
dom
,
color
)
{
getLineCharts
(
xLabel
,
series
,
dom
,
color
,
title
)
{
if
(
!
dom
)
return
;
let
myChart
=
this
.
$echarts
.
init
(
dom
);
let
option
=
{
...
...
@@ -324,7 +324,7 @@ export default {
trigger
:
"axis"
,
},
title
:
{
text
:
"年龄段和性别分布"
,
text
:
title
,
top
:
"5%"
,
left
:
"2%"
,
textStyle
:
{
...
...
@@ -585,7 +585,7 @@ export default {
"#FF9626"
,
"#27C346"
,
"#3C7EFF"
,
]);
]
,
'年龄段和等级分布'
);
}
});
},
...
...
@@ -626,7 +626,7 @@ export default {
self
.
getLineCharts
(
xData
,
series
,
self
.
$refs
.
age_sex
,
[
"#FF9626"
,
"#24A2FF"
,
]);
]
,
'年龄段和性别分布'
);
}
});
},
...
...
src/views/dataJq/components/StudDog.vue
View file @
3fb03412
...
...
@@ -56,7 +56,7 @@ export default {
},
methods
:
{
getLineCharts
(
xLabel
,
series
,
dom
,
color
,
title
)
{
if
(
!
dom
)
return
;
if
(
!
dom
)
return
;
let
myChart
=
this
.
$echarts
.
init
(
dom
);
let
option
=
{
tooltip
:
{
...
...
@@ -206,7 +206,7 @@ export default {
//漏斗图
getSourceDis
(
data
)
{
let
dom
=
this
.
$refs
.
dog_source
;
if
(
!
dom
)
return
;
if
(
!
dom
)
return
;
let
myChart
=
this
.
$echarts
.
init
(
dom
);
let
option
=
{
tooltip
:
{
...
...
@@ -350,9 +350,10 @@ export default {
//饼图
getVarietyDis
(
data
)
{
let
totalNum
=
0
;
console
.
log
(
data
,
222
);
data
.
map
((
item
)
=>
(
totalNum
+=
item
.
value
));
let
dom
=
this
.
$refs
.
dog_breed
;
if
(
!
dom
)
return
;
if
(
!
dom
)
return
;
let
myChart
=
this
.
$echarts
.
init
(
dom
);
let
option
=
{
title
:
{
...
...
@@ -366,7 +367,9 @@ export default {
color
:
"#97A3B7"
,
fontWeight
:
"100"
,
},
subtext
:
"124"
,
subtext
:
data
.
reduce
(
function
(
total
,
value
)
{
return
total
+
value
.
value
;
},
0
),
subtextStyle
:
{
align
:
"left"
,
fontSize
:
32
,
...
...
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