source: node_modules/recharts/lib/state/selectors/combiners/combineActiveLabel.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 607 bytes
RevLine 
[a762898]1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.combineActiveLabel = void 0;
7var _DataUtils = require("../../../util/DataUtils");
8var combineActiveLabel = (tooltipTicks, activeIndex) => {
9 var _tooltipTicks$n;
10 var n = Number(activeIndex);
11 if ((0, _DataUtils.isNan)(n) || activeIndex == null) {
12 return undefined;
13 }
14 return n >= 0 ? tooltipTicks === null || tooltipTicks === void 0 || (_tooltipTicks$n = tooltipTicks[n]) === null || _tooltipTicks$n === void 0 ? void 0 : _tooltipTicks$n.value : undefined;
15};
16exports.combineActiveLabel = combineActiveLabel;
Note: See TracBrowser for help on using the repository browser.