Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shld-databoard-ui
Project
Project
Details
Activity
Releases
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
潘自豪 Rambo Pan
shld-databoard-ui
Commits
c65a285b
Commit
c65a285b
authored
Aug 21, 2024
by
谢章伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
柱状图整体宽度调整
parent
6123d953
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
12 deletions
+22
-12
safe-quality.vue
src/module/databoard/databoard/safe-quality.vue
+22
-12
No files found.
src/module/databoard/databoard/safe-quality.vue
View file @
c65a285b
...
@@ -274,6 +274,8 @@ export default {
...
@@ -274,6 +274,8 @@ export default {
grid
:
{
grid
:
{
containLabel
:
true
,
containLabel
:
true
,
top
:
"10%"
,
top
:
"10%"
,
left
:
"1%"
,
right
:
"1%"
,
bottom
:
'0'
bottom
:
'0'
},
},
yAxis
:
{
yAxis
:
{
...
@@ -305,6 +307,8 @@ export default {
...
@@ -305,6 +307,8 @@ export default {
grid
:
{
grid
:
{
containLabel
:
true
,
containLabel
:
true
,
top
:
"10%"
,
top
:
"10%"
,
left
:
"1%"
,
right
:
"1%"
,
bottom
:
'0'
bottom
:
'0'
},
},
yAxis
:
{
yAxis
:
{
...
@@ -336,6 +340,8 @@ export default {
...
@@ -336,6 +340,8 @@ export default {
grid
:
{
grid
:
{
containLabel
:
true
,
containLabel
:
true
,
top
:
"10%"
,
top
:
"10%"
,
left
:
"1%"
,
right
:
"1%"
,
bottom
:
'0'
bottom
:
'0'
},
},
yAxis
:
{
yAxis
:
{
...
@@ -540,17 +546,20 @@ export default {
...
@@ -540,17 +546,20 @@ export default {
getcarShipTrainCss
(){
getcarShipTrainCss
(){
return
{
return
{
type
:
'bar'
,
type
:
'bar'
,
barMinHeight
:
1
,
xAxisIndex
:
null
,
xAxisIndex
:
null
,
smooth
:
true
,
smooth
:
true
,
itemStyle
:{
itemStyle
:{
color
:
new
echarts
.
graphic
.
LinearGradient
(
color
:
function
(
params
)
{
return
params
.
value
==
0
?
'rgba(0, 0, 0, 0)'
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
// 渐变方向从上到下
0
,
0
,
0
,
1
,
// 渐变方向从上到下
[
[
{
offset
:
0
,
color
:
'#83bff6'
},
// 柱图顶部颜色
{
offset
:
0
,
color
:
'#83bff6'
},
// 柱图顶部颜色
{
offset
:
0.5
,
color
:
'#188df0'
},
// 柱图中间颜色
{
offset
:
0.5
,
color
:
'#188df0'
},
// 柱图中间颜色
{
offset
:
1
,
color
:
'#188df0'
}
// 柱图底部颜色
{
offset
:
1
,
color
:
'#188df0'
}
// 柱图底部颜色
]
]
),
);
},
borderRadius
:[
3
,
3
,
3
,
3
]
,
borderRadius
:[
3
,
3
,
3
,
3
]
,
},
},
label
:{
label
:{
...
@@ -559,8 +568,8 @@ export default {
...
@@ -559,8 +568,8 @@ export default {
formatter
:
'{c}吨'
,
formatter
:
'{c}吨'
,
color
:
'#FFFFFF'
,
color
:
'#FFFFFF'
,
},
},
barWidth
:
'
3
0%'
,
barWidth
:
'
4
0%'
,
barGap
:
'
1
0%'
,
barGap
:
'
5
0%'
,
emphasis
:
{
emphasis
:
{
focus
:
'series'
focus
:
'series'
},
},
...
@@ -588,8 +597,8 @@ export default {
...
@@ -588,8 +597,8 @@ export default {
position
:
'top'
,
position
:
'top'
,
color
:
'#FFFFFF'
,
color
:
'#FFFFFF'
,
},
},
barWidth
:
'
3
0%'
,
barWidth
:
'
4
0%'
,
barGap
:
'
2
0%'
,
barGap
:
'
5
0%'
,
emphasis
:
{
emphasis
:
{
focus
:
'series'
focus
:
'series'
},
},
...
@@ -645,6 +654,7 @@ export default {
...
@@ -645,6 +654,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
let
a
=
0
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
let
peopleDom
=
this
.
$refs
.
people
;
let
peopleDom
=
this
.
$refs
.
people
;
this
.
people
=
echarts
.
init
(
peopleDom
);
this
.
people
=
echarts
.
init
(
peopleDom
);
...
...
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