mirror of
https://github.com/status-im/react-native-gifted-charts.git
synced 2025-02-23 09:08:13 +00:00
Made Y axis Label texts a separate Array
This commit is contained in:
parent
9dbf7a3c9c
commit
93d4093fca
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-gifted-charts",
|
"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.",
|
"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",
|
"main": "src/index.tsx",
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -217,7 +217,7 @@ export const BarChart = (props: PropTypes) => {
|
|||||||
}
|
}
|
||||||
horizSections.push({
|
horizSections.push({
|
||||||
value: props.yAxisLabelTexts
|
value: props.yAxisLabelTexts
|
||||||
? props.yAxisLabelTexts[i] ?? value.toString()
|
? props.yAxisLabelTexts[noOfSections - i] ?? value.toString()
|
||||||
: value.toString(),
|
: value.toString(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -290,7 +290,7 @@ export const LineChart = (props: propTypes) => {
|
|||||||
}
|
}
|
||||||
horizSections.push({
|
horizSections.push({
|
||||||
value: props.yAxisLabelTexts
|
value: props.yAxisLabelTexts
|
||||||
? props.yAxisLabelTexts[i] ?? value.toString()
|
? props.yAxisLabelTexts[noOfSections - i] ?? value.toString()
|
||||||
: value.toString(),
|
: value.toString(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user