ECharts
步骤一:引入echarts相关JS库
<script src="echarts.js"></script>
<script src="https://cdn.bootcss.com/echarts/4.1.0.rc2/extension/dataTool.min.js" type="text/javascript" charset="utf-8" async defer></script> <script src="https://cdn.bootcss.com/echarts/4.1.0.rc2/echarts.simple.min.js" type="text/javascript" charset="utf-8" async defer></script> <script src="https://cdn.bootcss.com/echarts/4.1.0.rc2/echarts.js" type="text/javascript" charset="utf-8" async defer></script> <script src="https://cdn.bootcss.com/echarts/4.1.0.rc2/echarts.common.min.js" type="text/javascript" charset="utf-8" async defer></script>步骤二:
下边JS中加入这句话:var myChart = echarts.init(document.getElementById('main'));
下边JS中末尾加入这句话:
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);中间就是demo中的JS示例代码了;
具体文件下载路径:https://i.cnblogs.com/Files.aspx