/*Echarts*/
function getLine(dataName, dataList) {
var myChart = echarts.init(document.getElementById('main'));
var option = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: dataName
},
yAxis: {
type: 'value'
},
series: [{
data: dataList,
type: 'line'
}]
};
myChart.setOption(option);
window.addEventListener("resize", function () {
myChart.resize();
});
}