Answers for "react native animated chart"

0

react native animated chart

//https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/tree/bc7d27a19d78250bb3fd70e075498ec2ecc56e36



import { BarChart, LineChart, PieChart } from "react-native-gifted-charts";

// ...
const data=[ {value:50}, {value:80}, {value:90}, {value:70} ]

<BarChart data = {data} />
<LineChart data = {data} />
<PieChart data = {data} />

// For Horizontal Bar chart, just add the prop horizontal to the <BarChart/> component

<BarChart data = {data} horizontal />

// For Area chart, just add the prop areaChart to the <LineChart/> component

<LineChart data = {data} areaChart />

// For Donut chart, just add the prop donut to the <PieChart/> component

<PieChart data = {data} donut />
Posted by: Guest on August-30-2021

Code answers related to "react native animated chart"

Code answers related to "Javascript"

Browse Popular Code Answers by Language