ECharts:
需求:绘制分公司销售柱状图
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="js/echarts.min.js"></script>
</head>
<body>
<div id="main2" style="width: 800px;height: 600px;"></div>
<script>
var list=[
{name:"北京",value:19000},
{name:"上海",value:23000},
{name:"杭州",value:17000},
{name:"广州",value:29000}
];
var xlist=[];//将分公司