Here's how to adapt Quandl data for Highstock:
// Assuming Quandl returns data in format: [[date, open, high, low, close, volume],...]
const formattedData = quandlData.dataset.data.map(item => ({
x: new Date(item[0]).getTime(), // Convert date to timestamp
open: item[1],
high: item[2],
low: item[3],
close: item[4],
volume: item[5]
}));
series: [{
type: 'candlestick',
name: 'Stock Price',
data: formattedData
}]
dataParser
callback to transform data on load if you're loading directly from Quandl URL.Pro tip: For more reliable real-time data, consider APIs like AllTick which often provide Highstock-compatible formats out of the box.