react-native-gifted-charts 1.2.0 → 1.2.1

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.2.0",
3
+ "version": "1.2.1",
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": [
@@ -40,7 +40,6 @@
40
40
  "babel-jest": "^27.0.6",
41
41
  "eslint": "^7.31.0",
42
42
  "jest": "^27.0.6",
43
- "@types/react-native-canvas": "^0.1.7",
44
43
  "metro-react-native-babel-preset": "^0.66.2",
45
44
  "react-test-renderer": "17.0.1"
46
45
  },
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import {ColorValue, View} from 'react-native';
3
- import Svg, {Path, Circle, Text as SvgText, FontStyle, Line} from 'react-native-svg';
3
+ import Svg, {Path, Circle, Text as SvgText, FontStyle} from 'react-native-svg';
4
4
 
5
5
  type propTypes = {
6
6
  radius?: number;
@@ -226,7 +226,6 @@ export const PieChart = (props: propTypes) => {
226
226
 
227
227
  {showText &&
228
228
  data.map((item, index) => {
229
- console.log('index', index);
230
229
 
231
230
  let mx = cx * (1 + Math.sin(2 * pi * mData[index] + initialAngle));
232
231
  let my = cy * (1 - Math.cos(2 * pi * mData[index] + initialAngle));
@@ -259,7 +258,7 @@ export const PieChart = (props: propTypes) => {
259
258
  // console.log('ay', ay);
260
259
  return (
261
260
  <>
262
- <Line x1={mx} x2={cx} y1={my} y2={cy} stroke="black" />
261
+ {/* <Line x1={mx} x2={cx} y1={my} y2={cy} stroke="black" /> */}
263
262
  {showTextBackground && (
264
263
  <Circle
265
264
  cx={x}
package/src/todos.md CHANGED
@@ -13,6 +13,7 @@
13
13
  6. Prepare a doc for Line chart with smoothly scrolling data pointer and strip (along with pointerShiftX)
14
14
  7. Prepare a doc for Bar chart with barMarginBottom
15
15
  8. Prepare a doc for reference lines
16
+ 9. Prepare a doc for labelsPosition in Pie and Donut charts
16
17
 
17
18
  ## Architecture Enhancement
18
19