react-native-chart
react-native-chart copied to clipboard
Line graph will crash on an empty data set
Bar graph displays as expected with no data, just an empty graph.
Line Graph throws an error. This should be easy to reproduce hopefully.
My code:
<Chart style={Style.chart} // X, Y data={[]} type="line" cornerRadius={3} verticalGridStep={1} hideHorizontalGridLines hideVerticalGridLines tightBounds showDataPoint />
As a generic FYI — I am no longer able to maintain this library. I recommend checking out victory-native as it's much more maintained.