Open alexbom opened 4 years ago
That's how it is, depending on the window size, the first n candles have no value
@rrag Sorry, didn't understand. How to fix this? In this example there is no empty values at the left side: https://codesandbox.io/s/github/rrag/react-stockcharts-examples2/tree/master/examples/CandleStickChartWithMACDIndicator But my chart has some undefined values not just empty space...
yes there is empty space on left side. Read up on MACD to understand how it is calculated. there will be undefined values in the beginning depending on what your windowSize
is
@rrag is there a way to set the window size to "whatever is currently visible"?
Hello! I can't understand, why MACD calculated not all data. Please, loot at the screenshot. All chart looks great, except left part, where children of MACD object are undefined. Data is correct, there is close value and date, but MACD is broken here. Why this happends? And why Area Chart doesn't draw at this part?
render() { const { data: initialData, currency, type, width, ratio } = this.props; const chartData = initialData.map(d => ({ date: new Date(d.x), close: d.y }));
}