| | |
| | | components: {}, |
| | | data() { |
| | | //这里存放数据 |
| | | return { myChart }; |
| | | return { myChart:null }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | |
| | | let option = { |
| | | title: { |
| | | text: '各项目总体进度', |
| | | top:15, |
| | | textStyle: { |
| | | color: '#fff', |
| | | }, |
| | |
| | | { |
| | | name: '各项目总体进度', |
| | | type: 'pie', |
| | | radius: ['40%', '70%'], |
| | | radius: ['40%', '68%'], |
| | | roseType: 'radius', |
| | | color: ['#03effb', '#00bec4', '#3a82ab'], |
| | | avoidLabelOverlap: false, |
| | |
| | | //@import url(); 引入公共css类 |
| | | .echart44_box { |
| | | padding: 20px; |
| | | // background: rgba(0, 0, 0, 0.6); |
| | | } |
| | | #echart44 { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | #echart44 { |
| | | width: calc(100% - 40px); |
| | | height: calc(100% - 40px); |
| | | } |
| | | </style> |