<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>line</title>
<!-- 引入 echarts.js -->
<script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>
</head>
<body>
<!-- 为ECharts准备一个具备大小(宽高)的Dom -->
<div class="row">
<div id="app" style="width: 800px;height:300px;"></div>
<div id="main2" style="width: 800px;height:300px;"></div>
</div>
<script type="text/javascript">
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById('app'));
option = {
title: {
text: '动态数据'
动态折线图
最新推荐文章于 2024-06-13 18:52:50 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)