|
@@ -56,10 +56,10 @@ export default {
|
|
|
|
|
|
var myChart = window.echarts.init(dom);
|
|
|
|
|
|
- let hysyEchart// 柱状图的宽度,y是x的一半
|
|
|
+ // 柱状图的宽度,y是x的一半
|
|
|
const offsetX = 10
|
|
|
const offsetY = 5
|
|
|
- let colorList = ["RGBA(30, 111, 181, 1)", "RGBA(30, 111, 181, 1)", "RGBA(29, 128, 64, 1)", "RGBA(133, 48, 52, 1)", "RGBA(121, 62, 147, 1)"]
|
|
|
+ let colorList = ["RGBA(30, 111, 181, 0.8)", "RGBA(149, 101, 24, 0.8)", "RGBA(29, 128, 64, 0.8)", "RGBA(133, 48, 52, 0.8)", "RGBA(121, 62, 147, 0.8)"]
|
|
|
|
|
|
// 绘制左侧面
|
|
|
const CubeLeft = echarts.graphic.extendShape({
|
|
@@ -152,11 +152,6 @@ export default {
|
|
|
let option = {
|
|
|
//你的代码
|
|
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
|
- grid: {
|
|
|
- // bottom: "200%",
|
|
|
- // top: "%",
|
|
|
- containLabel: true,
|
|
|
- },
|
|
|
legend: {
|
|
|
show: false,
|
|
|
right: 30,
|
|
@@ -182,8 +177,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
grid: {
|
|
|
- top: '20%',
|
|
|
- left: '3%',
|
|
|
+ top: '30%',
|
|
|
+ // left: '3%',
|
|
|
right: '3%',
|
|
|
bottom: '5%',
|
|
|
containLabel: true
|
|
@@ -191,21 +186,21 @@ export default {
|
|
|
xAxis: {
|
|
|
type: 'category',
|
|
|
data: dataX,
|
|
|
+ axisTick:{
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
axisLine: {
|
|
|
show: true,
|
|
|
+
|
|
|
lineStyle: {
|
|
|
width: 1,
|
|
|
- color: 'rgba(239, 247, 253, .1)'
|
|
|
+ color: 'rgba(239, 247, 253, .7)'
|
|
|
}
|
|
|
},
|
|
|
- axisTick: {
|
|
|
- show: false
|
|
|
- },
|
|
|
axisLabel: {
|
|
|
fontSize: 12,
|
|
|
- color: '#E7FCFF',
|
|
|
- margin: 1
|
|
|
- }
|
|
|
+ color: '#fff',
|
|
|
+ },
|
|
|
},
|
|
|
yAxis: [
|
|
|
{
|
|
@@ -218,7 +213,7 @@ export default {
|
|
|
fontSize: 12
|
|
|
},
|
|
|
axisLine: {
|
|
|
- show: true,
|
|
|
+ show: false,
|
|
|
lineStyle: {
|
|
|
width: 1,
|
|
|
color: 'rgba(239, 247, 253, .1)'
|
|
@@ -241,36 +236,6 @@ export default {
|
|
|
// max: Math.ceil(Math.max.apply(null, dataX) / 5) * 5,
|
|
|
// interval: Math.ceil(Math.max.apply(null, dataX) / 5)
|
|
|
},
|
|
|
- {
|
|
|
- type: 'value',
|
|
|
- name: '%',
|
|
|
- nameGap: 30,
|
|
|
- nameTextStyle: {
|
|
|
- color: '#ffffff',
|
|
|
- fontWeight: 400,
|
|
|
- fontSize: 16
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- show: false,
|
|
|
- lineStyle: {
|
|
|
- width: 1,
|
|
|
- color: 'rgba(239, 247, 253, .1)'
|
|
|
- }
|
|
|
- },
|
|
|
- splitLine: {
|
|
|
- show: false,
|
|
|
- lineStyle: {
|
|
|
- color: 'rgba(239, 247, 253, .1)'
|
|
|
- }
|
|
|
- },
|
|
|
- axisTick: {
|
|
|
- show: false
|
|
|
- },
|
|
|
- axisLabel: {
|
|
|
- fontSize: 16,
|
|
|
- color: '#E7FCFF'
|
|
|
- }
|
|
|
- }
|
|
|
],
|
|
|
series: [
|
|
|
{
|
|
@@ -468,9 +433,9 @@ export default {
|
|
|
}
|
|
|
|
|
|
#hysyEchart {
|
|
|
- left: 1rem;
|
|
|
+ left: -2rem;
|
|
|
top: 0.5rem;
|
|
|
- width: 26rem;
|
|
|
+ width: 28rem;
|
|
|
height: 11.5rem;
|
|
|
}
|
|
|
|