react-native-graph
react-native-graph copied to clipboard
Feat: Graph range + Improve createGraphPath function
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.
Is this ready for review?
@mrousavy Ready for review! This PR is directly linked to #17, as the horizontalPadding and verticalPadding props are respected in the new createGraphPath function.