ecomfe/echarts-liquidfill

我的为啥在页面上渲染不出来呀

sunleithin opened this issue · 1 comments

<script> import echarts from 'echarts'; import 'echarts-liquidfill'; export default { name:'Home', data() { return { } }, created(){ this.liquidFill(); }, mounted() {//在这个生命周期中初始化 this.liquidFill(); }, methods: { liquidFill (){//方法 var myChart = echarts.init(document.getElementById('main')); var option = { series: [{ type: 'liquidFill', data: [0.6] }] }; myChart.setOption(option); } } } <script> <style scoped> </style>

看控制台错误