import React from 'react'; import { View, StyleSheet } from 'react-native'; import { BarChart, LineChart, PieChart } from './src'; const App = () => { // const lineData = [ // {value: 40, text: 'Jan', textShiftX: 8, textShiftY: -10}, // {value: 80, text: 'Feb'}, // {value: 170, text: 'Mar', textFontSize: 16, textColor: 'blue'}, // {value: 90, text: 'Apr'}, // {value: 190, text: 'May'}, // ]; // const lineData2 = [ // {value: 30, text: 'Jan', textShiftX: 8}, // {value: 40, text: 'Feb'}, // {value: 60, text: 'Mar'}, // {value: 70, text: 'Apr'}, // {value: 100, text: 'May'}, // ]; const data = [ { value: 15, label: 'Jan', showVerticalLine: true }, { value: 40, label: 'Feb', verticalLineColor: 'red', showVerticalLine: true, verticalLineThickness: StyleSheet.hairlineWidth }, { value: 10, label: 'Mar', showDataPoint: true, dataPointShape: 'rectangular', dataPointHeight: 20, dataPointWidth: 20, }, { value: 30, label: 'Apr', showVerticalLine: true, showDataPoint: true }, ]; const stackData = [ { stacks: [{ value: 10, color: 'red' }, { value: 20, color: 'blue', marginBottom: 1 }], label: 'Jan' }, { stacks: [{ value: 14, color: 'red' }, { value: 18, color: 'blue', marginBottom: 1 }], label: 'Feb' }, { stacks: [{ value: 7, color: 'red' }, { value: 11, color: 'green', marginBottom: 1 }, { value: 10, color: 'blue', marginBottom: 1 }], label: 'Mar' } ]; return ( {/* */} {/* */} {/* Hello */} {/* */} {/* */} {/* */} {/* */} {/* */} {/* */} {/* */} ); }; export default App;