$.post("/p6aKp.html",{},function(data){ var myChart = echarts.init(document.getElementById('main')); var option = JSON.parse(data); myChart.setOption(option); });
<div id="main" style="width: 600px;height:400px;"></div>