Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. import React from 'react';
  2. import { View } from 'react-native';
  3. import { VictoryPie } from 'victory-native';
  4.  
  5. import styles from './styles';
  6.  
  7. const graphicData = [{ y: 10 }, { y: 50 }, { y: 40 }];
  8. const graphicColor = ['#388087', '#6fb3b8', '#badfe7'];
  9.  
  10. function Home() {
  11. return (
  12. <View style={styles.container}>
  13. <VictoryPie
  14. animate={{ easing: 'exp' }}
  15. data={graphicData}
  16. width={250}
  17. height={250}
  18. colorScale={graphicColor}
  19. innerRadius={50}
  20. />
  21. </View>
  22. );
  23. }
  24.  
  25. export default Home;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement