I am trying to put multiple line charts showing different data in one graph but am unable to do so in react-native using react-native-svg-charts.
<View style= {{height: 200}}>
<LineChart
style={{ flex:1 }}
data={this.state.data}
svg={{ stroke: 'rgb(134, 65, 244)' }}
contentInset={{ top: 20, bottom: 20 }}
>
<Grid/>
</LineChart>
<LineChart
style={{position: 'absolute'}}
data={this.state.data1}
svg={{ stroke: 'rgb(168, 155, 50)' }}
contentInset={{ top: 20, bottom: 20 }}
>
<Grid/>
</LineChart>
</View>
The above code was what I was trying but am unable to get the correct design as I get only the first data's line chart.
Thanks!