I am able to add/update the bottom range selector series, with http://api.highcharts.com/highcharts#Chart.addSeries but haven't been able to figure out a way to add a line to the top candlestick graph as seen in the example here:
I would like to be able to do something like:
http://www.highcharts.com/demo/combo
But only after it is rendered, this updates the bottom rangeselector series, and does not render on top of the candlestick series, any suggestions?
var $chart = $("div#container-area").highcharts()
var translated = $chart.series[0].yData.map(function(c,i,a){
return c[3]*.8
})
var sma_line = {
type: 'spline',
name: 'sma',
data: translated,
marker: {
lineWidth: 2,
},
dataGrouping: {
units: groupingUnits
},
seriesStacking: 'normal'
}
$chart.addSeries(sma_line, true)
Related: