echarts 畫圖報錯 this.dom.getContext is not a function;
原因:因為在初始化echarts的時候,echarts.js規定只能使用dom原生方法獲取標簽,即document.getElementById('main');
錯誤寫法:
var myCommentLineChart = echarts.init($("#comment-line"));
正確寫法:
var myCommentLineChart = echarts.init(document.getElementById('comment-line'));
