plot icon indicating copy to clipboard operation
plot copied to clipboard

data reduction (Douglas Peucker)

Open TheRedSpy15 opened this issue 2 years ago • 2 comments

I am currently using MPAndroidChart, but this library seems much more practical for my needs and do plan on switching over to it

However, the biggest downfall of what I'm currently using is the lack of data reduction. Which makes the chart look very weird when you have tens of thousands of points on a device as small as a phone.

is there such a feature with this library or could one be added?

TheRedSpy15 avatar Oct 22 '21 05:10 TheRedSpy15

The library offers scroll in X-axis. So if you have thousand data points, then the graph will be scrollable in the X-axis. You can try running the sample app and tweak the DataPoints (https://github.com/Madrapps/plot/blob/main/sample/src/main/java/com/madrapps/sample/linegraph/DataPoints.kt) to see how your data is rendered in the component. Let me know once you try this. We can talk further.

thsaravana avatar Oct 22 '21 10:10 thsaravana

Hello, thank you for responding

that sounds exactly like what MPAndroidChart does, it doesn't exactly come off as the cleanest look for my users. And most of them don't need to actually see that much data, they just need to get a good understanding of it. Hence the reduction

TheRedSpy15 avatar Oct 22 '21 13:10 TheRedSpy15