react-native-graph icon indicating copy to clipboard operation
react-native-graph copied to clipboard

The graph is not drawing outliers

Open eduardborges opened this issue 2 years ago • 2 comments

Screen Shot 2022-06-11 at 11 48 29 AM

Both charts have the same exact data; the one above (react-native-graph) is not drawing the outliers. I checked onPointSelected, and the data is correct. The problem is with the line.

eduardborges avatar Jun 11 '22 09:06 eduardborges

Valid - that's because we do some rounding/averaging in this library. This should probably be considered though, I mean we could force draw a point for every pixel even if it's multiple...

mrousavy avatar Jun 13 '22 07:06 mrousavy

Maybe the latest changes from versions 0.2.0 and above could be helpful to you. You can define a smoothing prop there, that sets how much smoothing should be applied.

chrispader avatar Sep 12 '22 16:09 chrispader

@chrispader

These changes don't seem like they exist anymore?

https://github.com/margelo/react-native-graph/pull/55

bewallyt avatar Jun 15 '23 19:06 bewallyt

Yeah, they were removed in #62 :( . And that was exactly what we needed. Any other option to draw outliers?

vm-agnislav avatar Dec 11 '23 16:12 vm-agnislav