デモ ページの例では、2 つのチャート ( http://www.highcharts.com/stock/demo/candlestick-and-volume ) で価格と出来高を示しています。
それらを 1 つのチャートだけに表示することは可能ですか?
ありがとう。
アップデート:
わかりました、ここにあります: http://jsfiddle.net/eAFJ3/3/ :
$('#container').highcharts('StockChart', {
rangeSelector: {
enabled: false
},
scrollbar: {
enabled: false
},
navigator: {
enabled: false
},
title: {
text: 'AAPL Historical'
},
yAxis: [{
title: {
text: 'OHLC'
},
lineWidth: 2
},
{
title: {
text: 'Volume',
style: {
color: "#DDD"
}
},
gridLineWidth: 0,
opposite: true
}],
tooltip: {
shared: true
},
series: [{
type: 'column',
name: 'Volume',
data: volume,
yAxis: 1,
color: '#DDD',
dataGrouping: {
units: groupingUnits
}
}, {
type: 'candlestick',
name: 'AAPL',
data: ohlc,
yAxis: 0,
dataGrouping: {
units: groupingUnits
}
}]
});
チャートの構成方法を理解するには時間がかかります... 2 つの Y 軸を定義し、ボリューム xAxis をシリーズ配列の最初の軸として配置する必要があります。それ以外の場合は、ろうそくの上にレンダリングされます。