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

Feat: Graph range + Improve createGraphPath function

Open chrispader opened this issue 3 years ago • 2 comments

Implement range prop on LinearGraph, which allows to set custom ranges for the x/y axis. ==> Allow the graph to not cover the whole canvas.

This PR also improves the createGraphPath function, so the path doesn't look flat for the case of very few data points.

chrispader avatar Jun 06 '22 19:06 chrispader

Is this ready for review?

mrousavy avatar Jun 13 '22 08:06 mrousavy

@mrousavy Ready for review! This PR is directly linked to #17, as the horizontalPadding and verticalPadding props are respected in the new createGraphPath function.

chrispader avatar Jun 13 '22 09:06 chrispader