@@ -122,7 +90,7 @@
@@ -166,22 +134,22 @@ export default {
series: [
{
type: 'bar',
- data: [35, 140, 300, 420]
+ data: [35, 140, 300, 420],
+ itemStyle: {
+ color: '#6A63E8'
+ },
+ barWidth: 30 //柱图宽度
}
]
})
var myChart1 = echarts.init(document.getElementById('Inventory1'))
myChart1.setOption({
- title: {
- left: 'center'
- },
tooltip: {
trigger: 'item',
formatter: '{a}
{b} : {c} ({d}%)'
},
legend: {
- left: 'center',
- top: 'bottom'
+ top: '40px'
},
series: [
{
@@ -194,7 +162,8 @@ export default {
{ value: 15, name: '安格斯牛' },
{ value: 10, name: '黄牛' },
{ value: 5, name: '荷斯坦牛' }
- ]
+ ],
+ top: '70px'
}
]
})
@@ -216,7 +185,12 @@ export default {
'82010000997'
]
},
- yAxis: { type: 'value' },
+ yAxis: {
+ type: 'value',
+ axisLine: {
+ show: false
+ }
+ },
series: [
{
// name: '销量',
@@ -224,7 +198,20 @@ export default {
data: [
255.85, 252.16, 259.69, 250.76, 264.34, 255.24, 260.27, 238.7
],
- areaStyle: {}
+ areaStyle: {},
+ areaStyle: {
+ normal: {
+ color: '#DADFFB' //改变区域颜色
+ }
+ },
+ itemStyle: {
+ normal: {
+ color: '#6A63E8', //改变折线点的颜色
+ lineStyle: {
+ color: '#6A63E8' //改变折线颜色
+ }
+ }
+ }
}
]
})
@@ -244,10 +231,10 @@ export default {
name: '占比',
type: 'pie',
radius: '55%',
- center: ['50%', '60%'],
+ center: ['50%', '50%'],
data: [
- { value: 25, name: '低风险' },
- { value: 75, name: '高风险' }
+ { value: 25, name: '低风险', itemStyle: { color: '#5CAAF8' } },
+ { value: 75, name: '高风险', itemStyle: { color: '#E8556F' } }
],
emphasis: {
itemStyle: {
@@ -269,22 +256,26 @@ export default {
font-weight: bold;
padding-left: 12px;
padding-top: 10px;
- margin-bottom: 8px;
+ margin-bottom: 2px;
+ font-size: 20px;
}
.layouts {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
+ width: 100%;
+ overflow: hidden;
.layouts > .layoutsdiv {
- width: 47.5%;
+ width: 47.86%;
margin-top: 10px;
background: white;
padding: 18px 14px 18px 16px;
- border-radius: 2px;
+ border-radius: 6px;
}
.tile {
border-bottom: 1px solid #29272718;
- padding-bottom: 10px;
+ padding-bottom: 18px;
+ padding-top: 6px;
font-weight: 600;
color: rgb(49, 49, 49);
margin-bottom: 20px;
@@ -323,15 +314,16 @@ export default {
padding-top: 30px;
.tabs {
width: 80%;
- border: 1px solid #a6c5ee;
+ border: 1px solid #89d7b2;
display: flex;
justify-content: space-between;
- color: #468ce7;
- background: #f2f6fb;
+ color: #89d7b2;
+ background: #f2fffa;
margin-top: 26px;
+ font-size: 14px;
}
.tabs div {
- border: 1px solid #a6c5ee;
+ border: 1px solid #89d7b2;
text-align: center;
width: 60%;
padding: 8px 16px 8px 16px;
@@ -343,13 +335,56 @@ export default {
justify-content: center;
align-items: center;
}
+ .newstyle {
+ display: flex;
+ font-weight: bold;
+ width: 100%;
+ justify-content: space-around;
+ padding-bottom: 20px;
+ position: relative;
+ margin-top: -38px;
+ }
+ .yzz {
+ width: 35%;
+ text-align: center;
+ }
+ .rightstyle {
+ display: flex;
+ font-weight: bold;
+ width: 104%;
+ justify-content: space-around;
+ margin-top: -40px;
+ padding-bottom: 20px;
+ }
+ .text {
+ display: flex;
+ font-weight: bold;
+ width: 104%;
+ justify-content: space-around;
+ padding-top: 40px;
+ }
}
@media (max-width: 1669px) {
+ .text {
+ padding-top: 10px !important;
+ margin-bottom: 30px;
+ }
+ .rightstyle {
+ padding-bottom: 0px !important;
+ margin-top: 0px !important;
+ width: 99% !important;
+ }
+ .yzz {
+ width: 26% !important;
+ }
+ .newstyle {
+ margin-top: -22px !important;
+ }
.layouts > .layoutsdiv {
width: 47% !important;
}
.chartstyle {
- height: 380px !important;
+ height: 340px !important;
}
.chartstylepc {
height: 380px !important;