chart 配置
将 chart 的 spacingBottom 属性设置为 30。表示图表间的间隔区间。
var chart = {
type: \'area\',
spacingBottom: 30
};
实例
文件名:highcharts_area_missing.htm
<html>
<head>
<meta charset="UTF-8" />
<title>Highcharts 教程 | 菜鸟教程(runoob.com)</title>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
</head>
<body>
<div id="container" style="width: 550px; height: 400px; margin: 0 auto"></div>
<script language="javascript">
$(document).ready(function() {
var chart = {
type: \'area\',
spacingBottom: 30
};
var title = {
text: \'Fruit consumption *\'
};
var subtitle = {
text: \'* Jane\\\'s banana consumption is unknown\',
floating: true,
align: \'right\',
verticalAlign: \'bottom\',
y: 15
};
var legend = {
layout: \'vertical\',
align: \'left\',
verticalAlign: \'top\',
x: 150,
y: 100,
floating: true,
borderWidth: 1,
backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || \'#FFFFFF\'
};
var xAxis = {
categories: [\'Apples\', \'Pears\', \'Oranges\', \'Bananas\', \'Grapes\', \'Plums\', \'Strawberries\', \'Raspberries\']
};
var yAxis = {