1.从官网下载js http://echarts.baidu.com/download.html
2.导入到你的项目中
<script type="text/javascript" src="<%=request.getContextPath()%>/EchatsJs/echarts.js"></script>
3.给图表新建一个盒子/容器
<div id="main" style="width: 600px;height: 400px"></div>
4.初始化容器
<script type="text/javascript">
var myChart=echarts.init(document.getElementById("main"));
</script>
5.给你的容器加点东西x轴y轴、标题
myChart.setOption({
title:{
text:'echarts入门示例'
},
legend:{
data:['销量']
},
xAxis:{
data:[“一月”,“二月”,“三月”