设置标题背景颜色以及设置副标题和标题加边框,
设置边框背景和边框颜色
柱形图颜色及柱形图的宽度设置完整代码
<!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: 800px;height:600px;"></div>
<script type="text/javascript">
var myChart = echarts.init(document.getElementById('main'));
var option = {
title: {
show: true,
text: "不同城市消费总金额(单位:元)",
subtext:"瀑布图",
textAlign: "center",
textBaseline: "top",