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