score:1

Accepted answer

You just need to map your csv data to the proper series data structure:

data: {
  csv: document.getElementById('csv').innerHTML,
  seriesMapping: [{
    x: 0,
    open: 1,
    high: 2,
    low: 3,
    close: 4
  }, {
    x: 0,
    y: 5
  }]
},
series: [{
  type: 'ohlc'
}, {
  type: 'line'
}]

Live demo: http://jsfiddle.net/BlackLabel/da74pokt/

API Reference: https://api.highcharts.com/highcharts/data.seriesMapping


Related Articles