<script type="text/javascript">
$(document).ready(function() { var chart = $('#line1')[0];
var mychart = echarts.init(chart);
var option = {...};
mychart.setOption(option);
$(window).resize(function() { //重置容器高宽
mychart.resize();
});
});
</script>