Closed chrispader closed 2 years ago
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.
range
LinearGraph
This PR also improves the createGraphPath function, so the path doesn't look flat for the case of very few data points.
createGraphPath
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.
horizontalPadding
verticalPadding
Implement
range
prop onLinearGraph
, 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.