I have a series and an SMA 200:
Code: Select all
series: [{
type: 'candlestick',
name: chart.symbol,
id: chart.symbol,
data: data.futures_data,
lineWidth: 1,
// pointWidth: 2.0,
// pointPadding: 0.2
},
{
type: 'sma',
color: 'rgba(0, 160, 0, .7)',
lineWidth: 1,
linkedTo: chart.symbol,
params: {
period: 200
},
enableMouseTracking: false
}
Code: Select all
yAxis: [
{ // Primary Y Axis
labels: {
x: 70,
format: numberFormat,
}
}]
I do not want to scale the Y Axis with the SMA 200. If it falls outside of the chart that is fine.
So, how can I set the Y Axis so that it only uses the candlesticks to automatically scale?
I tried manually setting the Y Axis within the load event using
Code: Select all
this.yAxis[0].setExtremes