Highcharts 標示區曲線圖;Highcharts 對數圖表;Highcharts 時間間隔圖表
阿新 • • 發佈:2017-11-28
near have 2.0 series mst point har etime ddl
Highcharts 標示區曲線圖
配置
使用 yAxis.plotBands 屬性來配置標示區。區間範圍使用 ‘from‘ 和 ‘to‘ 屬性。顏色設置使用 ‘color‘ 屬性。標簽樣式使用 ‘label‘ 屬性。
配置信息:
var yAxis = {
title: {
text: ‘Wind speed (m/s)‘
},
min: 0,
minorGridLineWidth: 0,
gridLineWidth: 0,
alternateGridColor: null,
plotBands: [{ // Light air
from: 0.3,
to: 1.5,
color: ‘rgba(68, 170, 213, 0.1)‘,
label: {
text: ‘Light air‘,
style: {
color: ‘#606060‘
}
}
}, { // Light breeze
from: 1.5,
to: 3.3,
color: ‘rgba(0, 0, 0, 0)‘,
label: {
text: ‘Light breeze‘,
style: {
color: ‘#606060‘
}
}
}, { // Gentle breeze
from: 3.3,
to: 5.5,
color: ‘rgba(68, 170, 213, 0.1)‘,
label: {
text: ‘Gentle breeze‘,
style: {
color: ‘#606060‘
}
}
}, { // Moderate breeze
from: 5.5,
to: 8,
color: ‘rgba(0, 0, 0, 0)‘,
label: {
text: ‘Moderate breeze‘,
style: {
color: ‘#606060‘
}
}
}, { // Fresh breeze
from: 8,
to: 11,
color: ‘rgba(68, 170, 213, 0.1)‘,
label: {
text: ‘Fresh breeze‘,
style: {
color: ‘#606060‘