Update README.md

This commit is contained in:
Abhinandan Kushwaha 2021-08-02 16:32:25 +05:30 committed by GitHub
parent 085140341e
commit 2763f84d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -20,17 +20,17 @@ You can use the Bar chart
import { BarChart, LineChart, PieChart } from "react-native-gifted-charts"; import { BarChart, LineChart, PieChart } from "react-native-gifted-charts";
// ... // ...
const data=[{value:50},{value:80},{value:90},{value:70}] const data=[ {value:50}, {value:80}, {value:90}, {value:70}]
<BarChart data={data}/> <BarChart data = {data} />
<LineChart data={data}/> <LineChart data = {data} />
<PieChart data={PieChart}/> <PieChart data = {PieChart} />
//For Area chart, just add the prop areaChart to the <LineChart/> component //For Area chart, just add the prop areaChart to the <LineChart/> component
<LineChart data={data} areaChart/> <LineChart data = {data} areaChart />
//For Donut chart, just add the prop donut to the <PieChart/> component //For Donut chart, just add the prop donut to the <PieChart/> component
<PieChart data={data} donut/> <PieChart data = {data} donut />
``` ```
## Contributing ## Contributing