| | |
| | | components: {}, |
| | | data() { |
| | | //这里存放数据 |
| | | return { myChart }; |
| | | return { myChart: null }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | |
| | | let option = { |
| | | title: { |
| | | text: '目录分布', |
| | | top: '15', |
| | | textStyle: { |
| | | |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | |
| | | // legend: {}, |
| | | grid: { |
| | | left: '0%', |
| | | |
| | | right: '4%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | |
| | | }); |
| | | }, |
| | | }, |
| | | created() {}, |
| | | created() { }, |
| | | }; |
| | | </script> |
| | | <style lang="less" scoped> |
| | | //@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> |