react-native-gifted-charts 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-gifted-charts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"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.",
|
|
5
5
|
"main": "src/index.tsx",
|
|
6
6
|
"files": [
|
package/src/BarChart/index.tsx
CHANGED
|
@@ -217,7 +217,7 @@ export const BarChart = (props: PropTypes) => {
|
|
|
217
217
|
}
|
|
218
218
|
horizSections.push({
|
|
219
219
|
value: props.yAxisLabelTexts
|
|
220
|
-
? props.yAxisLabelTexts[i] ?? value.toString()
|
|
220
|
+
? props.yAxisLabelTexts[noOfSections - i] ?? value.toString()
|
|
221
221
|
: value.toString(),
|
|
222
222
|
});
|
|
223
223
|
}
|
package/src/LineChart/index.tsx
CHANGED
|
@@ -290,7 +290,7 @@ export const LineChart = (props: propTypes) => {
|
|
|
290
290
|
}
|
|
291
291
|
horizSections.push({
|
|
292
292
|
value: props.yAxisLabelTexts
|
|
293
|
-
? props.yAxisLabelTexts[i] ?? value.toString()
|
|
293
|
+
? props.yAxisLabelTexts[noOfSections - i] ?? value.toString()
|
|
294
294
|
: value.toString(),
|
|
295
295
|
});
|
|
296
296
|
}
|