Merge pull request #25 from Abhinandan-Kushwaha/development

Development
This commit is contained in:
Abhinandan Kushwaha 2021-10-11 05:10:43 +05:30 committed by GitHub
commit d5b098f4c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "react-native-gifted-charts",
"version": "0.1.8",
"version": "0.1.9",
"description": "The most complete library for Bar, Line, Area, Pie and Donut charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.",
"main": "src/index.tsx",
"files": [

View File

@ -217,7 +217,7 @@ export const BarChart = (props: PropTypes) => {
}
horizSections.push({
value: props.yAxisLabelTexts
? props.yAxisLabelTexts[i] ?? value.toString()
? props.yAxisLabelTexts[noOfSections - i] ?? value.toString()
: value.toString(),
});
}

View File

@ -290,7 +290,7 @@ export const LineChart = (props: propTypes) => {
}
horizSections.push({
value: props.yAxisLabelTexts
? props.yAxisLabelTexts[i] ?? value.toString()
? props.yAxisLabelTexts[noOfSections - i] ?? value.toString()
: value.toString(),
});
}