|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
854 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.combineStackedData = void 0;
|
|---|
| 7 | var _getStackSeriesIdentifier = require("../../../util/stacks/getStackSeriesIdentifier");
|
|---|
| 8 | var combineStackedData = (stackGroups, barSettings) => {
|
|---|
| 9 | var stackSeriesIdentifier = (0, _getStackSeriesIdentifier.getStackSeriesIdentifier)(barSettings);
|
|---|
| 10 | if (!stackGroups || stackSeriesIdentifier == null || barSettings == null) {
|
|---|
| 11 | return undefined;
|
|---|
| 12 | }
|
|---|
| 13 | var {
|
|---|
| 14 | stackId
|
|---|
| 15 | } = barSettings;
|
|---|
| 16 | if (stackId == null) {
|
|---|
| 17 | return undefined;
|
|---|
| 18 | }
|
|---|
| 19 | var stackGroup = stackGroups[stackId];
|
|---|
| 20 | if (!stackGroup) {
|
|---|
| 21 | return undefined;
|
|---|
| 22 | }
|
|---|
| 23 | var {
|
|---|
| 24 | stackedData
|
|---|
| 25 | } = stackGroup;
|
|---|
| 26 | if (!stackedData) {
|
|---|
| 27 | return undefined;
|
|---|
| 28 | }
|
|---|
| 29 | return stackedData.find(sd => sd.key === stackSeriesIdentifier);
|
|---|
| 30 | };
|
|---|
| 31 | exports.combineStackedData = combineStackedData; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.