<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<!--<script type="text/javascript" src="jquery.js"></script>-->
<script type="text/javascript" src="js/echarts.js"></script>
<body>
<div id="main" style="width: 600px;height:400px;"></div>
</body>
</html>
<script type="text/javascript">
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById('main'));
function randomData() {
now = new Date(+now + oneDay);
value = value + Math.random() * 21 - 10;
return {
name: now.toString(),
value: [
[now.getFullYear(), now.getMonth() + 1, now.getDate()].join('/'),
Math.round(value)
]
}
}
var data = [];
echarts实现动态折线图
最新推荐文章于 2024-06-11 07:55:51 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)