Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import { View } from 'react-native';
- import { VictoryPie } from 'victory-native';
- import styles from './styles';
- const graphicData = [{ y: 10 }, { y: 50 }, { y: 40 }];
- const graphicColor = ['#388087', '#6fb3b8', '#badfe7'];
- function Home() {
- return (
- <View style={styles.container}>
- <VictoryPie
- animate={{ easing: 'exp' }}
- data={graphicData}
- width={250}
- height={250}
- colorScale={graphicColor}
- innerRadius={50}
- />
- </View>
- );
- }
- export default Home;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement