react-native-wagmi-charts
Version:
A sweet candlestick chart for React Native
16 lines (14 loc) • 339 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getDomain = getDomain;
function getDomain(rows) {
'worklet';
if (rows.length === 0) return [0, 0];
const values = rows.map(({
value
}) => value);
return [Math.min(...values), Math.max(...values)];
}
//# sourceMappingURL=getDomain.js.map