margelo / react-native-graph

📈 Beautiful, high-performance Graphs and Charts for React Native built with Skia
https://margelo.io
MIT License
2.04k stars 115 forks source link

Bug: Graph not shown if at least 2 points exists with same date #86

Open michaelpomogajko opened 1 year ago

michaelpomogajko commented 1 year ago

When multiple points have exactly the same date, the graph doesn't show at all.

<LineGraph 
 points={[
    {
       value: 1,
       date: new Date('2023-01-01')
    },
    {
       value: 2,
       date: new Date('2023-01-01')
    }
 ]}
...
/>
michaelpomogajko commented 1 year ago

Also for some reason this is not being rendered as well

points={[
  {
    value: 1,
    date: new Date('2023-07-16T00:00:00.000Z'),
  },
  {
    value: 2,
    date: new Date('2023-07-19T14:23:21.723Z'),
  },
  { 
    value: 3, 
    date: new Date('2023-07-19T14:23:31.384Z') 
  },
]}