indiespirit / react-native-chart-kit

📊React Native Chart Kit: Line Chart, Bezier Line Chart, Progress Ring, Bar chart, Pie chart, Contribution graph (heatmap)
https://expo.io/@indiespirit/react-native-chart-kit
MIT License
2.85k stars 658 forks source link

Can't plot anything other than evenly spaced out data points? #686

Open 1mike12 opened 1 year ago

1mike12 commented 1 year ago

From everything I've seen, the data prop only accepts a 1 dimensional array of Y values, (or an array of 1 dimensional values in the case of multiple lines).

The implication then is that this chart cannot plot anything that's not uniformly spaced out data. What if wanted to plot something like a weight graph, where the X axis is the date, and Y the weight. The user isn't going to chart something every single day.

[[date: 1, weight 100], [date:15, weight: 102], [date:17, weight: 95]...]

is this pretty much not possible with this library?