<!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('/'),
echarts实现动态折线图
最新推荐文章于 2025-06-16 15:45:40 发布