react-native-gifted-charts 1.4.40 → 1.4.41
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.
|
@@ -108,7 +108,10 @@ var RenderBars = function (props) {
|
|
|
108
108
|
barWidth) + spacing,
|
|
109
109
|
left: spacing / -2,
|
|
110
110
|
position: 'absolute',
|
|
111
|
-
height: (_a = props.xAxisLabelsHeight) !== null && _a !== void 0 ? _a : xAxisTextNumberOfLines * 18
|
|
111
|
+
height: (_a = props.xAxisLabelsHeight) !== null && _a !== void 0 ? _a : xAxisTextNumberOfLines * 18 -
|
|
112
|
+
(value < 0
|
|
113
|
+
? -xAxisLabelsVerticalShift
|
|
114
|
+
: xAxisLabelsVerticalShift),
|
|
112
115
|
bottom: top
|
|
113
116
|
? (containerHeight || 200) +
|
|
114
117
|
((_b = secondaryXAxis === null || secondaryXAxis === void 0 ? void 0 : secondaryXAxis.labelsDistanceFromXaxis) !== null && _b !== void 0 ? _b : 15)
|
|
@@ -133,7 +136,7 @@ var RenderBars = function (props) {
|
|
|
133
136
|
{
|
|
134
137
|
translateY: autoShiftLabels
|
|
135
138
|
? 0
|
|
136
|
-
: 16.5 * xAxisTextNumberOfLines +
|
|
139
|
+
: 16.5 * xAxisTextNumberOfLines + 12,
|
|
137
140
|
},
|
|
138
141
|
],
|
|
139
142
|
}
|
|
@@ -37,7 +37,9 @@ var BarAndLineChartsWrapper = function (props) {
|
|
|
37
37
|
50 -
|
|
38
38
|
overflowTop,
|
|
39
39
|
marginTop: trimYAxisAtTop ? containerHeight / 20 : 0,
|
|
40
|
-
marginBottom: (xAxisLabelsHeight !== null && xAxisLabelsHeight !== void 0 ? xAxisLabelsHeight : xAxisTextNumberOfLines * 18) -
|
|
40
|
+
marginBottom: (xAxisLabelsHeight !== null && xAxisLabelsHeight !== void 0 ? xAxisLabelsHeight : xAxisTextNumberOfLines * 18) -
|
|
41
|
+
55 -
|
|
42
|
+
xAxisLabelsVerticalShift, //This is to not let the Things that should be rendered below the chart overlap with it
|
|
41
43
|
},
|
|
42
44
|
});
|
|
43
45
|
return (_jsxs(View, { style: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-gifted-charts",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.41",
|
|
4
4
|
"description": "The most complete library for Bar, Line, Area, Pie, Donut, Stacked Bar and Population Pyramid charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|