Note : This Library is under BETA and does not support in landscape mode (BUG)
yarn add react-native-funnel-chart
npm i react-native-funnel-chart
| Props | Type | Description |
|---|---|---|
| data | Array |
Required. Array of Data |
| backgroundColor | String |
Background Color Hex |
| height | Number |
Height of the chart, > 150 |
| lineColor | String |
Color the Line and Dot after Label |
| space | Number |
Space Between Data |
| fontSize | Number |
Font Size of Label Text |
| textColor | String |
Label Text Color |
| fontFamily | String |
Label Text FontFamily |
import FunnelChart from 'react-native-funnel-chart';
const demo_data = [
{
label: 'Unique Website Visits',
value: '13589',
color: '#9b46ff40',
},
{
label: 'Programme Details Section Visits',
value: '8855',
color: '#9b46ff80',
},
{
label: 'Attempts to Register',
value: '8453',
color: '#9b46ff60',
},
{
label: 'Successful Registrations',
value: '10586',
color: '#9b46ff',
},
];
<FunnelChart
animated
data={demo_data}
backgroundColor={'#000'}
height={200}
lineColor={'#fff'}
space={3}
fontSize={12}
textColor={'#fff'}
/>


