chzappsinc / react-native-funnel-chart

React native easy to use funnel chart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Native Funnel Chart

Note : This Library is under BETA and does not support in landscape mode (BUG)

Installation

yarn add react-native-funnel-chart

npm i react-native-funnel-chart

Props

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

Example

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'}
        />

Supported By

About

React native easy to use funnel chart


Languages

Language:JavaScript 100.0%