代码编辑器:
1
2
<meta charset="utf-8" />
3
<title>Highcharts 基础教程 | 简单教程(www.twle.cn)</title>
4
<script src="https://cdn.hcharts.cn/highcharts/highcharts.js"></script>
5
<div id="container" style="width: 500px; height: 400px; margin: 0 auto"></div>
6
<script>
7
var title = {
8
text: '对数图表范例'
9
};
10
var subtitle = {
11
text: '来源: 简单教程 ( www.twle.cn )'
12
};
13
var xAxis = {
14
tickInterval: 1
15
};
16
var yAxis = {
17
type: 'logarithmic',
18
minorTickInterval: 0.1