react-native-gifted-charts 1.0.12 → 1.0.13
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": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "The most complete library for Bar, Line, Area, Pie, Donut and Stacked Bar 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
|
@@ -45,6 +45,7 @@ type PropTypes = {
|
|
|
45
45
|
yAxisThickness?: number;
|
|
46
46
|
yAxisColor?: ColorValue;
|
|
47
47
|
yAxisLabelContainerStyle?: any;
|
|
48
|
+
horizontalRulesStyle?: any;
|
|
48
49
|
yAxisTextStyle?: any;
|
|
49
50
|
yAxisLabelWidth?: number;
|
|
50
51
|
hideYAxisText?: Boolean;
|
|
@@ -362,6 +363,7 @@ export const BarChart = (props: PropTypes) => {
|
|
|
362
363
|
const yAxisColor = props.yAxisColor || 'black';
|
|
363
364
|
const yAxisTextStyle = props.yAxisTextStyle;
|
|
364
365
|
const yAxisLabelContainerStyle = props.yAxisLabelContainerStyle;
|
|
366
|
+
const horizontalRulesStyle = props.horizontalRulesStyle;
|
|
365
367
|
const showFractionalValues = props.showFractionalValues || false;
|
|
366
368
|
const yAxisLabelWidth = props.yAxisLabelWidth || 35;
|
|
367
369
|
const hideYAxisText = props.hideYAxisText || false;
|
|
@@ -632,6 +634,7 @@ export const BarChart = (props: PropTypes) => {
|
|
|
632
634
|
: props.width || totalWidth + 11,
|
|
633
635
|
},
|
|
634
636
|
yAxisSide === 'right' && {transform: [{rotateY: '180deg'}]},
|
|
637
|
+
horizontalRulesStyle,
|
|
635
638
|
]}>
|
|
636
639
|
<View
|
|
637
640
|
style={[
|
package/src/LineChart/index.tsx
CHANGED
|
@@ -143,6 +143,7 @@ type propTypes = {
|
|
|
143
143
|
yAxisThickness?: number;
|
|
144
144
|
yAxisColor?: ColorValue;
|
|
145
145
|
yAxisLabelContainerStyle?: any;
|
|
146
|
+
horizontalRulesStyle?: any;
|
|
146
147
|
yAxisTextStyle?: any;
|
|
147
148
|
showFractionalValues?: Boolean;
|
|
148
149
|
roundToDigits?: number;
|
|
@@ -1213,6 +1214,7 @@ export const LineChart = (props: propTypes) => {
|
|
|
1213
1214
|
const yAxisColor = props.yAxisColor || 'black';
|
|
1214
1215
|
const yAxisTextStyle = props.yAxisTextStyle;
|
|
1215
1216
|
const yAxisLabelContainerStyle = props.yAxisLabelContainerStyle;
|
|
1217
|
+
const horizontalRulesStyle = props.horizontalRulesStyle;
|
|
1216
1218
|
const showFractionalValues = props.showFractionalValues || false;
|
|
1217
1219
|
const yAxisLabelWidth = props.yAxisLabelWidth || 35;
|
|
1218
1220
|
const hideYAxisText = props.hideYAxisText || false;
|
|
@@ -1476,6 +1478,7 @@ export const LineChart = (props: propTypes) => {
|
|
|
1476
1478
|
width: (props.width ? props.width : totalWidth) + 15,
|
|
1477
1479
|
},
|
|
1478
1480
|
yAxisSide === 'right' && {transform: [{rotateY: '180deg'}]},
|
|
1481
|
+
horizontalRulesStyle,
|
|
1479
1482
|
]}>
|
|
1480
1483
|
<View
|
|
1481
1484
|
style={[
|