react-native-animated-charts icon indicating copy to clipboard operation
react-native-animated-charts copied to clipboard

Label not returning zeroes

Open Ulisses1478 opened this issue 4 years ago • 2 comments

When data has zeroes label returns undefined and the dot won't show on the right location when the angle get too steeper like this Screenshot from 2021-01-06 12-15-02 Screenshot from 2021-01-06 12-16-01

[{"x": 1610550427.05901, "y": 0}, {"x": 1610464027.060391, "y": 0}, {"x": 1610377627.061678, "y": 0}, {"x": 1610291227.062755, "y": 0}, {"x": 1610204827.063811, "y": 0}, {"x": 1610118427.064869, "y": 0}, {"x": 1610032027.066217, "y": 0}, {"x": 1609945627.067359, "y": 500}]

Steps to reproduce:

  1. Use simplifyData with the array provided above simplifyData(data, 1, true)
  2. Use 95% of the screen width (a card in my case)
  3. Now the angle is to high and the dot is not in the right place

Ulisses1478 avatar Jan 06 '21 15:01 Ulisses1478

same problem

jaroslav009 avatar Jan 11 '21 13:01 jaroslav009

Hi and thanks, Can you try the new version?

osdnk avatar Mar 12 '21 16:03 osdnk