Highcharts 将绘图线添加到两个highstock窗格之一
xAxis上的以下plotLine对象正在向两个窗格中添加线 如何使此代码仅在第一个窗格中添加一行?不影响其他窗格 同样的事情也发生在绘图带上 谢谢 这是密码Highcharts 将绘图线添加到两个highstock窗格之一,highcharts,highstock,Highcharts,Highstock,xAxis上的以下plotLine对象正在向两个窗格中添加线 如何使此代码仅在第一个窗格中添加一行?不影响其他窗格 同样的事情也发生在绘图带上 谢谢 这是密码 xAxis: { plotLines: [{ value: 1180656000000, color: 'green', dashStyle: 'shortdash',
xAxis: {
plotLines: [{
value: 1180656000000,
color: 'green',
dashStyle: 'shortdash',
width: 2,
label: {
text: 'prerinse'
}
}, {
value: 1256227606000,
color: 'red',
dashStyle: 'shortdash',
width: 2,
label: {
text: 'postrinse'
}
}]
},
yAxis: [{
title: {
text: 'OHLC',
},
height: 200,
lineWidth: 2
}, {
title: {
text: 'Volume'
},
top: 300,
height: 100,
plotLines: [{value:500}],
offset: 0,
lineWidth: 2
}],
series: [{
type: 'candlestick',
name: 'AAPL',
data: ohlc,
dataGrouping: {
units: groupingUnits
}
}, {
type: 'column',
name: 'Volume',
data: volume,
yAxis: 1,
dataGrouping: {
units: groupingUnits
}
系列:[{
键入:“烛台”,
名称:“AAPL”,
资料来源:ohlc,
数据分组:{
单位:分组单位
}
},
{
键入:“列”,
名称:'newline',
数据:新数据,
yAxis:1,我需要xAxis上的绘图线只影响一个窗格,而不是同时影响两个窗格
series: [{
type: 'candlestick',
name: 'AAPL',
data: ohlc,
dataGrouping: {
units: groupingUnits
}
},
{
type: 'column',
name: 'newline',
data: newdata,
yAxis: 1, <-This
dataGrouping: {
units: groupingUnits
},
{
type: 'column',
name: 'Volume',
data: volume,
yAxis: 1,
dataGrouping: {
units: groupingUnits
}