react-native-gifted-charts 1.3.18 → 1.3.19
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/README.md +0 -9
- package/package.json +1 -1
- package/src/Components/BarAndLineChartsWrapper/renderHorizSections.tsx +3 -0
- package/src/Components/common/Pointer.tsx +1 -1
- package/src/LineChart/index.tsx +664 -414
- package/src/LineChart/types.ts +2 -0
- package/src/PieChart/index.tsx +4 -2
- package/src/PieChart/main.tsx +2 -2
- package/src/todos.md +0 -2
- package/src/utils/index.tsx +35 -1
- package/src/utils/types.ts +32 -0
package/README.md
CHANGED
|
@@ -98,15 +98,6 @@ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the
|
|
|
98
98
|
|
|
99
99
|
## [Release notes 🎉](release-notes/release-notes.md)
|
|
100
100
|
|
|
101
|
-
## Common issues
|
|
102
|
-
|
|
103
|
-
| Issue | Solution |
|
|
104
|
-
| ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
105
|
-
| BarChart- [Value and section line don't match](https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/issues/35) | [Comment](https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/issues/35#issuecomment-972673281) by the owner |
|
|
106
|
-
| Setting `height`, `maxValue`, `stepValue`, `stepHeight`, or `noOfSections` breaks the chart | Please make sure that<br/> `maxValue = noOfSections * stepValue;` <br/>is followed. [See this](https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/issues/71) |
|
|
107
|
-
|
|
108
|
-
## To-dos
|
|
109
|
-
|
|
110
101
|
[To do list](./src/todos.md)
|
|
111
102
|
|
|
112
103
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-gifted-charts",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.19",
|
|
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": [
|
|
@@ -113,6 +113,7 @@ export const renderHorizSections = (props: horizSectionPropTypes) => {
|
|
|
113
113
|
yAxisLabelPrefix: secondaryYAxis?.yAxisLabelPrefix ?? yAxisLabelPrefix,
|
|
114
114
|
yAxisLabelSuffix: secondaryYAxis?.yAxisLabelSuffix ?? yAxisLabelSuffix,
|
|
115
115
|
hideOrigin: secondaryYAxis?.hideOrigin ?? hideOrigin,
|
|
116
|
+
formatYLabel: secondaryYAxis?.formatYLabel,
|
|
116
117
|
};
|
|
117
118
|
|
|
118
119
|
const {maxItem, minItem} = computeMaxAndMinItems(
|
|
@@ -370,6 +371,7 @@ export const renderHorizSections = (props: horizSectionPropTypes) => {
|
|
|
370
371
|
yAxisLabelPrefix,
|
|
371
372
|
yAxisLabelSuffix,
|
|
372
373
|
roundToDigits,
|
|
374
|
+
formatYLabel,
|
|
373
375
|
} = secondaryYAxisConfig;
|
|
374
376
|
return getLabelTextUtil(
|
|
375
377
|
val,
|
|
@@ -380,6 +382,7 @@ export const renderHorizSections = (props: horizSectionPropTypes) => {
|
|
|
380
382
|
yAxisLabelPrefix,
|
|
381
383
|
yAxisLabelSuffix,
|
|
382
384
|
roundToDigits ?? AxesAndRulesDefaults.roundToDigits,
|
|
385
|
+
formatYLabel,
|
|
383
386
|
);
|
|
384
387
|
};
|
|
385
388
|
|
|
@@ -26,7 +26,7 @@ export const Pointer = props => {
|
|
|
26
26
|
style={{
|
|
27
27
|
height: pointerHeight || pointerRadius * 2,
|
|
28
28
|
width: pointerWidth || pointerRadius * 2,
|
|
29
|
-
marginTop: pointerItemLocal
|
|
29
|
+
marginTop: pointerItemLocal?.pointerShiftY || 0,
|
|
30
30
|
backgroundColor: pointerColorLocal,
|
|
31
31
|
borderRadius: pointerRadius || 0,
|
|
32
32
|
}}
|