完整代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="echarts.js"></script>
</head>
<body>
<div id="main" style="width: 600px;height:400px;"></div>
<script type="text/javascript">
var myChart = echarts.init(document.getElementById('main'));
var option = {
title: {
text: '历年不同级别会员数量变化趋势',
left: 'center',
},
legend: {
top:'6',
right: '0',
data: ['普通会员', 'vip会员']
},
toolbox:{
top:'30',
right: '10%',
show:true,
featu