diff --git a/src/grid.js b/src/grid.js index ee4bf899..eb6a5785 100644 --- a/src/grid.js +++ b/src/grid.js @@ -5,7 +5,7 @@ import { G, Line } from 'react-native-svg' const Horizontal = ({ ticks = [], y, svg }) => { return ( - {ticks.map((tick) => ( + {y.ticks(ticks.length).map((tick) => ( { const Vertical = ({ ticks = [], x, svg }) => { return ( - {ticks.map((tick, index) => ( + {x.ticks(ticks.length).map((tick, index) => (