-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
33 lines (31 loc) · 873 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React from 'react';
import { SafeAreaView, View } from 'react-native';
import { BarChart, LineChart } from 'react-native-graph-kit';
import { data } from './constants';
import { ApplicationStyles, Colors } from './theme';
const App = () => {
return (
<SafeAreaView style={ApplicationStyles.screen}>
<View style={ApplicationStyles.chartContainer}>
<BarChart
chartData={data}
barWidth={30}
barGap={70}
horizontalGridLineColor={Colors.grey}
initialDistance={5}
chartHeight={300}
yAxisMax={1000}
/>
</View>
<View style={ApplicationStyles.chartContainer}>
<LineChart
yAxisMax={1000}
chartData={data}
xAxisLength={80}
initialDistance={30}
/>
</View>
</SafeAreaView>
);
};
export default App;