Commit 129f4267 authored by 曹雷's avatar 曹雷

feat: 优化样式

parent ce205e92
...@@ -279,7 +279,8 @@ ...@@ -279,7 +279,8 @@
} }
}, },
xAxis: { xAxis: {
type: 'value' type: 'value',
minInterval: 1
}, },
series: [{ series: [{
data: [120, 200, 150, 80, 70, 110, 130], data: [120, 200, 150, 80, 70, 110, 130],
...@@ -392,15 +393,6 @@ ...@@ -392,15 +393,6 @@
name: element, name: element,
type: 'bar', type: 'bar',
stack: 'total', stack: 'total',
label: {
show: true,
formatter: function(params) {
if (params.value > 0) {
return params.value
}
return '';
}
},
emphasis: { emphasis: {
focus: 'series' focus: 'series'
}, },
...@@ -428,7 +420,8 @@ ...@@ -428,7 +420,8 @@
containLabel: true containLabel: true
}, },
xAxis: { xAxis: {
type: 'value' type: 'value',
minInterval: 1
}, },
yAxis: { yAxis: {
type: 'category', type: 'category',
...@@ -486,6 +479,7 @@ ...@@ -486,6 +479,7 @@
} }
} }
}, },
legend: {},
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
...@@ -505,6 +499,7 @@ ...@@ -505,6 +499,7 @@
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
minInterval: 1
// axisLine: { // axisLine: {
// // show: false,//不显示坐标轴线 // // show: false,//不显示坐标轴线
// lineStyle: { // lineStyle: {
...@@ -610,7 +605,8 @@ ...@@ -610,7 +605,8 @@
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
}, },
yAxis: { yAxis: {
type: 'value' type: 'value',
minInterval: 1
}, },
series: [{ series: [{
data: [150, 230, 224, 218, 135, 147, 260], data: [150, 230, 224, 218, 135, 147, 260],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment