src/components/echart33.vue
@@ -10,7 +10,7 @@ components: {}, data() { //这里存放数据 return { myChart }; return { myChart:null }; }, mounted() { this.lineChart(); @@ -24,6 +24,7 @@ let option = { title: { text: '项目耗时', top:15, textStyle: { color: '#fff', }, @@ -35,7 +36,8 @@ }, }, legend: { right: '0', right: 0, top:37, textStyle: { color: '#fff', }, @@ -135,10 +137,11 @@ //@import url(); 引入公共css类 .echart6_box { padding: 20px; // background: rgba(0, 0, 0, 0.6); } #echart6 { width: 100%; height: 100%; } #echart6 { width: calc(100% - 40px); height: calc(100% - 40px); } </style>