@splunk/visualizations 26.3.0 → 26.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/Area.config.js +1 -1
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +288 -288
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +1 -1
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +291 -291
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +1 -1
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +280 -280
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +1 -1
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +262 -260
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +1 -1
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +291 -291
  20. package/Column.js.map +1 -1
  21. package/Ellipse.js +220 -218
  22. package/Ellipse.js.map +1 -1
  23. package/Events.config.js +1 -1
  24. package/Events.config.js.map +1 -1
  25. package/Events.js +285 -283
  26. package/Events.js.map +1 -1
  27. package/FillerGauge.config.js +1 -1
  28. package/FillerGauge.config.js.map +1 -1
  29. package/FillerGauge.js +250 -248
  30. package/FillerGauge.js.map +1 -1
  31. package/Image.js +212 -210
  32. package/Image.js.map +1 -1
  33. package/Line.config.js +1 -1
  34. package/Line.config.js.map +1 -1
  35. package/Line.js +289 -289
  36. package/Line.js.map +1 -1
  37. package/LinkGraph.config.js +1 -1
  38. package/LinkGraph.config.js.map +1 -1
  39. package/LinkGraph.js +1725 -17201
  40. package/LinkGraph.js.map +1 -1
  41. package/MIGRATION.md +6 -0
  42. package/Map.config.js +1 -1
  43. package/Map.config.js.map +1 -1
  44. package/Map.js +465 -406
  45. package/Map.js.map +1 -1
  46. package/Markdown.config.js +1 -1
  47. package/Markdown.config.js.map +1 -1
  48. package/Markdown.js +281 -277
  49. package/Markdown.js.map +1 -1
  50. package/MarkerGauge.config.js +1 -1
  51. package/MarkerGauge.config.js.map +1 -1
  52. package/MarkerGauge.js +926 -922
  53. package/MarkerGauge.js.map +1 -1
  54. package/ParallelCoordinates.config.js +1 -1
  55. package/ParallelCoordinates.config.js.map +1 -1
  56. package/ParallelCoordinates.js +336 -320
  57. package/ParallelCoordinates.js.map +1 -1
  58. package/Pie.config.js +5 -1
  59. package/Pie.config.js.map +1 -1
  60. package/Pie.js +362 -330
  61. package/Pie.js.map +1 -1
  62. package/Punchcard.config.js +1 -1
  63. package/Punchcard.config.js.map +1 -1
  64. package/Punchcard.js +342 -338
  65. package/Punchcard.js.map +1 -1
  66. package/Rectangle.js +260 -256
  67. package/Rectangle.js.map +1 -1
  68. package/Sankey.config.js +1 -1
  69. package/Sankey.config.js.map +1 -1
  70. package/Sankey.js +339 -335
  71. package/Sankey.js.map +1 -1
  72. package/Scatter.config.js +1 -1
  73. package/Scatter.config.js.map +1 -1
  74. package/Scatter.js +339 -337
  75. package/Scatter.js.map +1 -1
  76. package/SingleValue.config.js +10 -2
  77. package/SingleValue.config.js.map +1 -1
  78. package/SingleValue.js +455 -427
  79. package/SingleValue.js.map +1 -1
  80. package/SingleValueBasic.js +65 -53
  81. package/SingleValueBasic.js.map +1 -1
  82. package/SingleValueIcon.config.js +10 -2
  83. package/SingleValueIcon.config.js.map +1 -1
  84. package/SingleValueIcon.js +449 -421
  85. package/SingleValueIcon.js.map +1 -1
  86. package/SingleValueRadial.config.js +11 -3
  87. package/SingleValueRadial.config.js.map +1 -1
  88. package/SingleValueRadial.js +1580 -1552
  89. package/SingleValueRadial.js.map +1 -1
  90. package/SparkLine.js +33 -33
  91. package/SparkLine.js.map +1 -1
  92. package/Table.config.js +8 -0
  93. package/Table.config.js.map +1 -1
  94. package/Table.js +366 -357
  95. package/Table.js.map +1 -1
  96. package/common/Charting.js +15 -23
  97. package/common/Charting.js.map +1 -1
  98. package/common/utils/dataUtils.js +12 -18
  99. package/common/utils/dataUtils.js.map +1 -1
  100. package/common/utils/singleValueUtils.js +23 -11
  101. package/common/utils/singleValueUtils.js.map +1 -1
  102. package/common/withDashboardViz.js +31 -27
  103. package/common/withDashboardViz.js.map +1 -1
  104. package/package.json +17 -16
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 449);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 441);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -95,32 +95,32 @@ module.exports =
95
95
  /***/ 0:
96
96
  /***/ (function(module, exports) {
97
97
 
98
- module.exports = require("react");
98
+ module.exports = require("prop-types");
99
99
 
100
100
  /***/ }),
101
101
 
102
102
  /***/ 1:
103
103
  /***/ (function(module, exports) {
104
104
 
105
- module.exports = require("prop-types");
105
+ module.exports = require("react");
106
106
 
107
107
  /***/ }),
108
108
 
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@splunk/visualization-schemas");
112
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
113
113
 
114
114
  /***/ }),
115
115
 
116
116
  /***/ 11:
117
117
  /***/ (function(module, exports) {
118
118
 
119
- module.exports = require("@splunk/visualizations-shared/numberUtils");
119
+ module.exports = require("@splunk/visualizations-shared/Message");
120
120
 
121
121
  /***/ }),
122
122
 
123
- /***/ 113:
123
+ /***/ 112:
124
124
  /***/ (function(module, exports) {
125
125
 
126
126
  module.exports = require("d3-scale");
@@ -130,25 +130,18 @@ module.exports = require("d3-scale");
130
130
  /***/ 12:
131
131
  /***/ (function(module, exports) {
132
132
 
133
- module.exports = require("@splunk/visualizations-shared/Message");
134
-
135
- /***/ }),
136
-
137
- /***/ 13:
138
- /***/ (function(module, exports) {
139
-
140
133
  module.exports = require("@babel/runtime/helpers/defineProperty");
141
134
 
142
135
  /***/ }),
143
136
 
144
- /***/ 14:
137
+ /***/ 13:
145
138
  /***/ (function(module, exports) {
146
139
 
147
140
  module.exports = require("@splunk/themes/variables");
148
141
 
149
142
  /***/ }),
150
143
 
151
- /***/ 15:
144
+ /***/ 14:
152
145
  /***/ (function(module, exports, __webpack_require__) {
153
146
 
154
147
  "use strict";
@@ -159,9 +152,9 @@ Object.defineProperty(exports, "__esModule", {
159
152
  });
160
153
  exports.downsampleDataSources = exports.calculateDownsamplingThreshold = exports.calculateThresholdOnRangeSelect = exports.isDownsamplingEnabledForViz = exports.convertToArrOfObjects = void 0;
161
154
 
162
- var numberUtils_1 = __webpack_require__(11);
155
+ var numberUtils_1 = __webpack_require__(10);
163
156
 
164
- var interfaces_1 = __webpack_require__(40); // TODO: utilize this fn in ParallelCoordinates
157
+ var interfaces_1 = __webpack_require__(39); // TODO: utilize this fn in ParallelCoordinates
165
158
 
166
159
 
167
160
  var convertToArrOfObjects = function convertToArrOfObjects(columns, fields) {
@@ -296,19 +289,21 @@ var largestTriangleThreeBuckets = function largestTriangleThreeBuckets(data, thr
296
289
  */
297
290
 
298
291
 
299
- var strictlyCoerceYColumn = function strictlyCoerceYColumn(column) {
300
- // Splunk charting allows for numbers in formats such as negative hex that
292
+ var strictlyCoerceYColumn = function strictlyCoerceYColumn(column, options) {
293
+ var isNullCoercionEnabled = options.nullValueDisplay === 'zero'; // Splunk charting allows for numbers in formats such as negative hex that
301
294
  // Number() does not support and also allows loose coercion of hex numbers (but not other formats)
302
295
  // We want to identify columns which contain at least one value that can be loosely coerced
296
+
303
297
  var canLooselyCoerceSomeValues = column.findIndex(function (value) {
304
- return (0, numberUtils_1.startsWithNumber)("".concat(value));
298
+ return (0, numberUtils_1.startsWithNumber)("".concat(value)) || isNullCoercionEnabled && value === null;
305
299
  }) >= 0; // If not all values in column can be strictly coerced to a number, we do not downsample
306
300
 
307
301
  var coercedColumn = [];
308
302
  var canDownsampleColumn = !column.some(function (value) {
309
- var coercedValue = Number(value); // if it can't be parsed or isn't safe, fail
303
+ var coercedValue = Number(value);
304
+ var coerceValueToZero = isNullCoercionEnabled && value === null; // if it can't be parsed or isn't safe, fail
310
305
 
311
- if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number') {
306
+ if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number' && !coerceValueToZero) {
312
307
  return true;
313
308
  } // save value and continue to next
314
309
 
@@ -389,8 +384,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
389
384
  dataSources = _ref3.dataSources,
390
385
  selectChartEvent = _ref3.selectChartEvent,
391
386
  width = _ref3.width,
392
- xField = _ref3.xField,
393
- y2Fields = _ref3.y2Fields;
387
+ xField = _ref3.xField;
394
388
 
395
389
  var _a, _b, _c;
396
390
 
@@ -427,14 +421,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
427
421
  });
428
422
  var lastIndex = fullSeries.findIndex(function (x) {
429
423
  return downsampledSeries[endXIndex] === x;
430
- }); // For charts with categorical x-axis (charts with an xField that isn't _time), do not support
431
- // re-calculating downsampling threshold if the chart is zoomed in until SPL-259458 is fixed
432
- // Also do not support re-calculating downsampling threshold for zoomed-in charts with y2
433
- // until SPL-259611 is fixed
434
-
435
- if (xField !== '_time' || (y2Fields === null || y2Fields === void 0 ? void 0 : y2Fields.length)) {
436
- return firstIndex === 0 && lastIndex === fullSeries.length - 1 ? width : null;
437
- }
424
+ });
438
425
 
439
426
  if (firstIndex >= 0 && lastIndex >= 0 && firstIndex <= lastIndex) {
440
427
  return (0, exports.calculateThresholdOnRangeSelect)({
@@ -484,7 +471,7 @@ var isColumnStrictlyIncreasing = function isColumnStrictlyIncreasing(column, fie
484
471
  */
485
472
 
486
473
 
487
- var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes) {
474
+ var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes, options) {
488
475
  var xColumn = [];
489
476
  var yColumns = [];
490
477
  var canDownsample = !ds.data.fields.some(function (field, index) {
@@ -498,7 +485,7 @@ var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, x
498
485
  if (fieldName === xField) {
499
486
  xColumn = strictlyCoerceXColumn(column, fieldType);
500
487
  } else if (yFields.has(fieldName)) {
501
- var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index]),
488
+ var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index], options),
502
489
  coercedColumn = _strictlyCoerceYColum.coercedColumn,
503
490
  canLooselyCoerceSomeValues = _strictlyCoerceYColum.canLooselyCoerceSomeValues,
504
491
  canDownsampleColumn = _strictlyCoerceYColum.canDownsampleColumn; // do not perform downsampling if a column can possibly be displayed but cannot
@@ -588,7 +575,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
588
575
  return dataSources;
589
576
  }
590
577
 
591
- var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes),
578
+ var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes, options),
592
579
  xColumn = _tryToCoerceAllDispla.xColumn,
593
580
  yColumns = _tryToCoerceAllDispla.yColumns;
594
581
 
@@ -625,41 +612,41 @@ exports.downsampleDataSources = downsampleDataSources;
625
612
 
626
613
  /***/ }),
627
614
 
628
- /***/ 16:
615
+ /***/ 15:
629
616
  /***/ (function(module, exports) {
630
617
 
631
618
  module.exports = require("@splunk/visualizations-shared/colorUtils");
632
619
 
633
620
  /***/ }),
634
621
 
635
- /***/ 17:
622
+ /***/ 16:
636
623
  /***/ (function(module, exports) {
637
624
 
638
625
  module.exports = require("@splunk/visualization-encoding/Options");
639
626
 
640
627
  /***/ }),
641
628
 
642
- /***/ 18:
629
+ /***/ 17:
643
630
  /***/ (function(module, exports, __webpack_require__) {
644
631
 
645
632
  "use strict";
646
633
 
647
634
 
648
- var _slicedToArray = __webpack_require__(6);
635
+ var _slicedToArray = __webpack_require__(5);
649
636
 
650
637
  Object.defineProperty(exports, "__esModule", {
651
638
  value: true
652
639
  });
653
640
 
654
- var React = __webpack_require__(0);
641
+ var React = __webpack_require__(1);
655
642
 
656
643
  var styled_components_1 = __webpack_require__(4);
657
644
 
658
- var style_1 = __webpack_require__(19);
645
+ var style_1 = __webpack_require__(18);
659
646
 
660
- var colorUtils_1 = __webpack_require__(16);
647
+ var colorUtils_1 = __webpack_require__(15);
661
648
 
662
- var SizeAwareWrapper_1 = __webpack_require__(26);
649
+ var SizeAwareWrapper_1 = __webpack_require__(25);
663
650
 
664
651
  var Item = styled_components_1.default.div.attrs(function (_ref) {
665
652
  var width = _ref.width;
@@ -730,7 +717,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
730
717
 
731
718
  return React.createElement(FixSizeItem, {
732
719
  "data-test": "fix-size-item",
733
- "data-splunk-visualization-version": "26.3.0 - a1ef240a6",
720
+ "data-splunk-visualization-version": "26.4.0 - 04078274d",
734
721
  width: width,
735
722
  height: height,
736
723
  backgroundColor: backgroundColor
@@ -752,28 +739,21 @@ exports.default = withFixedSizeContainer;
752
739
 
753
740
  /***/ }),
754
741
 
755
- /***/ 183:
756
- /***/ (function(module, exports) {
757
-
758
- module.exports = require("@mdhnpm/rgb-hex-converter");
759
-
760
- /***/ }),
761
-
762
- /***/ 19:
742
+ /***/ 18:
763
743
  /***/ (function(module, exports) {
764
744
 
765
745
  module.exports = require("@splunk/visualizations-shared/style");
766
746
 
767
747
  /***/ }),
768
748
 
769
- /***/ 2:
749
+ /***/ 181:
770
750
  /***/ (function(module, exports) {
771
751
 
772
- module.exports = require("@splunk/ui-utils/i18n");
752
+ module.exports = require("@mdhnpm/rgb-hex-converter");
773
753
 
774
754
  /***/ }),
775
755
 
776
- /***/ 20:
756
+ /***/ 19:
777
757
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
778
758
 
779
759
  "use strict";
@@ -809,17 +789,17 @@ __webpack_require__.r(__webpack_exports__);
809
789
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; });
810
790
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; });
811
791
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
812
- /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
792
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
813
793
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
814
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
794
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
815
795
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
816
- /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11);
796
+ /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
817
797
  /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
818
- /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74);
798
+ /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
819
799
  /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
820
- /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36);
800
+ /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35);
821
801
  /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
822
- /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70);
802
+ /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(69);
823
803
  /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
824
804
 
825
805
 
@@ -1069,7 +1049,7 @@ var computeColors = function computeColors(props, defaultColors) {
1069
1049
  * @param {Number} props.value // The major/trend value
1070
1050
  * @param {Number} props.numberPrecision
1071
1051
  * @param {Bool} props.shouldUseThousandSeparators
1072
- * @param {Bool} props.shouldAbbreviateTrendValue
1052
+ * @param {Bool} props.shouldAbbreviateValue
1073
1053
  * @returns {Number} major or trend text
1074
1054
  */
1075
1055
 
@@ -1077,11 +1057,11 @@ var computeText = function computeText(_ref4) {
1077
1057
  var value = _ref4.value,
1078
1058
  numberPrecision = _ref4.numberPrecision,
1079
1059
  shouldUseThousandSeparators = _ref4.shouldUseThousandSeparators,
1080
- shouldAbbreviateTrendValue = _ref4.shouldAbbreviateTrendValue;
1060
+ shouldAbbreviateValue = _ref4.shouldAbbreviateValue;
1081
1061
  var text = Object(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__["isNumerial"])(value) ? Object(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__["formatNumber"])(value, numberPrecision, {
1082
1062
  useThousandSeparators: shouldUseThousandSeparators,
1083
1063
  // todo: need update formatNumber
1084
- useTrendUnits: shouldAbbreviateTrendValue
1064
+ useTrendUnits: shouldAbbreviateValue
1085
1065
  }) : value; // When text is undefined, return empty string
1086
1066
 
1087
1067
  text = text || '';
@@ -1093,19 +1073,21 @@ var computeText = function computeText(_ref4) {
1093
1073
  * @param {Number} props.majorValue
1094
1074
  * @param {Number} props.numberPrecision
1095
1075
  * @param {Bool} props.shouldUseThousandSeparators
1076
+ * @param {Bool} props.shouldAbbreviateMajorValue
1096
1077
  * @returns {String} majorText
1097
1078
  */
1098
1079
 
1099
1080
  var getMajorText = function getMajorText(_ref5) {
1100
1081
  var majorValue = _ref5.majorValue,
1101
1082
  numberPrecision = _ref5.numberPrecision,
1102
- shouldUseThousandSeparators = _ref5.shouldUseThousandSeparators;
1083
+ shouldUseThousandSeparators = _ref5.shouldUseThousandSeparators,
1084
+ shouldAbbreviateMajorValue = _ref5.shouldAbbreviateMajorValue;
1103
1085
  return computeText({
1104
1086
  value: majorValue === null ? 'N/A' : majorValue,
1105
1087
  // if majorValue is null, use `N/A`.
1106
1088
  numberPrecision: numberPrecision,
1107
1089
  shouldUseThousandSeparators: shouldUseThousandSeparators,
1108
- shouldAbbreviateTrendValue: false
1090
+ shouldAbbreviateValue: shouldAbbreviateMajorValue
1109
1091
  });
1110
1092
  };
1111
1093
  /*
@@ -1133,7 +1115,7 @@ var getTrendText = function getTrendText(_ref6) {
1133
1115
  value: value,
1134
1116
  numberPrecision: numberPrecision,
1135
1117
  shouldUseThousandSeparators: shouldUseThousandSeparators,
1136
- shouldAbbreviateTrendValue: shouldAbbreviateTrendValue
1118
+ shouldAbbreviateValue: shouldAbbreviateTrendValue
1137
1119
  });
1138
1120
  };
1139
1121
 
@@ -1277,6 +1259,7 @@ var getUnderLabel = function getUnderLabel(_ref10) {
1277
1259
  * @param {Number} props.numberPrecision
1278
1260
  * @param {Bool} props.shouldUseThousandSeparators
1279
1261
  * @param {Bool} props.shouldAbbreviateTrendValue
1262
+ * @param {Bool} props.shouldAbbreviateMajorValue
1280
1263
  * @returns {Number, Number, Number, Number} Major text, trend text, major text size, trend text size
1281
1264
  */
1282
1265
 
@@ -1291,14 +1274,16 @@ var getMajorAndTrend = function getMajorAndTrend(_ref11) {
1291
1274
  unit = _ref11.unit,
1292
1275
  numberPrecision = _ref11.numberPrecision,
1293
1276
  shouldUseThousandSeparators = _ref11.shouldUseThousandSeparators,
1294
- shouldAbbreviateTrendValue = _ref11.shouldAbbreviateTrendValue;
1277
+ shouldAbbreviateTrendValue = _ref11.shouldAbbreviateTrendValue,
1278
+ shouldAbbreviateMajorValue = _ref11.shouldAbbreviateMajorValue;
1295
1279
  var majorTextSpaceRatio = Object(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__["isNumerial"])(trendValue) && shouldShowTrend(trendDisplay) ? 0.6 : 1;
1296
1280
  var textContentWidth = width * 0.9;
1297
1281
  var textContentHeight = height * 0.9;
1298
1282
  var majorText = getMajorText({
1299
1283
  majorValue: majorValue,
1300
1284
  numberPrecision: numberPrecision,
1301
- shouldUseThousandSeparators: shouldUseThousandSeparators
1285
+ shouldUseThousandSeparators: shouldUseThousandSeparators,
1286
+ shouldAbbreviateMajorValue: shouldAbbreviateMajorValue
1302
1287
  });
1303
1288
  var majorTextFontSize = majorFontSize || getMajorFontSize({
1304
1289
  width: textContentWidth,
@@ -1424,6 +1409,7 @@ var updateVizInSmallSpace = function updateVizInSmallSpace(_ref12) {
1424
1409
  * @param {Number} props.numberPrecision
1425
1410
  * @param {Bool} props.shouldUseThousandSeparators
1426
1411
  * @param {Bool} props.shouldAbbreviateTrendValue
1412
+ * @param {Bool} props.shouldAbbreviateMajorValue
1427
1413
  * @param {Object} props.toRemoveList
1428
1414
  * @returns {Object} results
1429
1415
  * @returns {String} results.majorText
@@ -1448,6 +1434,7 @@ var computeSingleValueContent = function computeSingleValueContent(_ref13) {
1448
1434
  numberPrecision = _ref13.numberPrecision,
1449
1435
  shouldUseThousandSeparators = _ref13.shouldUseThousandSeparators,
1450
1436
  shouldAbbreviateTrendValue = _ref13.shouldAbbreviateTrendValue,
1437
+ shouldAbbreviateMajorValue = _ref13.shouldAbbreviateMajorValue,
1451
1438
  toRemoveList = _ref13.toRemoveList;
1452
1439
 
1453
1440
  var _getMajorAndTrend = getMajorAndTrend({
@@ -1461,7 +1448,8 @@ var computeSingleValueContent = function computeSingleValueContent(_ref13) {
1461
1448
  unit: unit,
1462
1449
  numberPrecision: numberPrecision,
1463
1450
  shouldUseThousandSeparators: shouldUseThousandSeparators,
1464
- shouldAbbreviateTrendValue: shouldAbbreviateTrendValue
1451
+ shouldAbbreviateTrendValue: shouldAbbreviateTrendValue,
1452
+ shouldAbbreviateMajorValue: shouldAbbreviateMajorValue
1465
1453
  }),
1466
1454
  majorText = _getMajorAndTrend.majorText,
1467
1455
  trendText = _getMajorAndTrend.trendText,
@@ -1550,6 +1538,7 @@ var minimallyTruncateStringToWidth = function minimallyTruncateStringToWidth(_re
1550
1538
  * @param {Number} props.numberPrecision
1551
1539
  * @param {Bool} props.shouldUseThousandSeparators
1552
1540
  * @param {Bool} props.shouldAbbreviateTrendValue
1541
+ * @param {Bool} props.shouldAbbreviateMajorValue,
1553
1542
  * @param {Object} props.toRemoveList
1554
1543
  * @param {Bool} props.smallViz
1555
1544
  * @returns {Object} results
@@ -1575,6 +1564,7 @@ var computeSingleValueRadialContent = function computeSingleValueRadialContent(_
1575
1564
  numberPrecision = _ref15.numberPrecision,
1576
1565
  shouldUseThousandSeparators = _ref15.shouldUseThousandSeparators,
1577
1566
  shouldAbbreviateTrendValue = _ref15.shouldAbbreviateTrendValue,
1567
+ shouldAbbreviateMajorValue = _ref15.shouldAbbreviateMajorValue,
1578
1568
  smallViz = _ref15.smallViz;
1579
1569
 
1580
1570
  var _getMajorAndTrend2 = getMajorAndTrend({
@@ -1588,7 +1578,8 @@ var computeSingleValueRadialContent = function computeSingleValueRadialContent(_
1588
1578
  unit: unit,
1589
1579
  numberPrecision: numberPrecision,
1590
1580
  shouldUseThousandSeparators: shouldUseThousandSeparators,
1591
- shouldAbbreviateTrendValue: shouldAbbreviateTrendValue
1581
+ shouldAbbreviateTrendValue: shouldAbbreviateTrendValue,
1582
+ shouldAbbreviateMajorValue: shouldAbbreviateMajorValue
1592
1583
  }),
1593
1584
  majorText = _getMajorAndTrend2.majorText,
1594
1585
  trendText = _getMajorAndTrend2.trendText,
@@ -1619,7 +1610,8 @@ var computeSingleValueRadialContent = function computeSingleValueRadialContent(_
1619
1610
  trendDisplay: trendDisplay,
1620
1611
  numberPrecision: numberPrecision,
1621
1612
  shouldUseThousandSeparators: shouldUseThousandSeparators,
1622
- shouldAbbreviateTrendValue: shouldAbbreviateTrendValue
1613
+ shouldAbbreviateTrendValue: shouldAbbreviateTrendValue,
1614
+ shouldAbbreviateMajorValue: shouldAbbreviateMajorValue
1623
1615
  });
1624
1616
 
1625
1617
  majorText = _getMajorAndTrend3.majorText;
@@ -1802,7 +1794,14 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
1802
1794
 
1803
1795
  /***/ }),
1804
1796
 
1805
- /***/ 21:
1797
+ /***/ 2:
1798
+ /***/ (function(module, exports) {
1799
+
1800
+ module.exports = require("lodash");
1801
+
1802
+ /***/ }),
1803
+
1804
+ /***/ 20:
1806
1805
  /***/ (function(module, exports, __webpack_require__) {
1807
1806
 
1808
1807
  "use strict";
@@ -1817,15 +1816,15 @@ exports.validOutputModes = ['json_cols', 'json'];
1817
1816
 
1818
1817
  /***/ }),
1819
1818
 
1820
- /***/ 22:
1819
+ /***/ 21:
1821
1820
  /***/ (function(module, exports, __webpack_require__) {
1822
1821
 
1823
1822
  "use strict";
1824
1823
 
1825
1824
 
1826
- var _classCallCheck = __webpack_require__(9);
1825
+ var _classCallCheck = __webpack_require__(8);
1827
1826
 
1828
- var _createClass = __webpack_require__(25);
1827
+ var _createClass = __webpack_require__(24);
1829
1828
 
1830
1829
  Object.defineProperty(exports, "__esModule", {
1831
1830
  value: true
@@ -1855,7 +1854,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1855
1854
 
1856
1855
  /***/ }),
1857
1856
 
1858
- /***/ 23:
1857
+ /***/ 22:
1859
1858
  /***/ (function(module, exports, __webpack_require__) {
1860
1859
 
1861
1860
  "use strict";
@@ -1884,7 +1883,7 @@ var VizCategory;
1884
1883
 
1885
1884
  /***/ }),
1886
1885
 
1887
- /***/ 24:
1886
+ /***/ 23:
1888
1887
  /***/ (function(module, exports, __webpack_require__) {
1889
1888
 
1890
1889
  "use strict";
@@ -1917,37 +1916,37 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
1917
1916
 
1918
1917
  /***/ }),
1919
1918
 
1920
- /***/ 25:
1919
+ /***/ 24:
1921
1920
  /***/ (function(module, exports) {
1922
1921
 
1923
1922
  module.exports = require("@babel/runtime/helpers/createClass");
1924
1923
 
1925
1924
  /***/ }),
1926
1925
 
1927
- /***/ 26:
1926
+ /***/ 25:
1928
1927
  /***/ (function(module, exports) {
1929
1928
 
1930
1929
  module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
1931
1930
 
1932
1931
  /***/ }),
1933
1932
 
1934
- /***/ 27:
1933
+ /***/ 26:
1935
1934
  /***/ (function(module, exports, __webpack_require__) {
1936
1935
 
1937
1936
  "use strict";
1938
1937
 
1939
1938
 
1940
- var _toConsumableArray = __webpack_require__(7);
1939
+ var _toConsumableArray = __webpack_require__(6);
1941
1940
 
1942
1941
  Object.defineProperty(exports, "__esModule", {
1943
1942
  value: true
1944
1943
  });
1945
1944
  exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
1946
1945
 
1947
- var lodash_1 = __webpack_require__(3); // included for backwards compatibility
1946
+ var lodash_1 = __webpack_require__(2); // included for backwards compatibility
1948
1947
 
1949
1948
 
1950
- var visualization_schemas_1 = __webpack_require__(10);
1949
+ var visualization_schemas_1 = __webpack_require__(9);
1951
1950
 
1952
1951
  Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
1953
1952
  enumerable: true,
@@ -2088,42 +2087,42 @@ exports.insertLayout = insertLayout;
2088
2087
 
2089
2088
  /***/ }),
2090
2089
 
2091
- /***/ 28:
2090
+ /***/ 27:
2092
2091
  /***/ (function(module, exports) {
2093
2092
 
2094
2093
  module.exports = require("@splunk/visualization-context/FeatureFlagContext");
2095
2094
 
2096
2095
  /***/ }),
2097
2096
 
2098
- /***/ 3:
2097
+ /***/ 29:
2099
2098
  /***/ (function(module, exports) {
2100
2099
 
2101
- module.exports = require("lodash");
2100
+ module.exports = require("@splunk/themes/pick");
2102
2101
 
2103
2102
  /***/ }),
2104
2103
 
2105
- /***/ 30:
2104
+ /***/ 3:
2106
2105
  /***/ (function(module, exports) {
2107
2106
 
2108
- module.exports = require("@splunk/themes/pick");
2107
+ module.exports = require("@splunk/ui-utils/i18n");
2109
2108
 
2110
2109
  /***/ }),
2111
2110
 
2112
- /***/ 31:
2111
+ /***/ 30:
2113
2112
  /***/ (function(module, exports) {
2114
2113
 
2115
2114
  module.exports = require("@splunk/ui-utils/id");
2116
2115
 
2117
2116
  /***/ }),
2118
2117
 
2119
- /***/ 32:
2118
+ /***/ 31:
2120
2119
  /***/ (function(module, exports) {
2121
2120
 
2122
2121
  module.exports = require("@splunk/visualization-context/TimezoneContext");
2123
2122
 
2124
2123
  /***/ }),
2125
2124
 
2126
- /***/ 33:
2125
+ /***/ 32:
2127
2126
  /***/ (function(module, exports, __webpack_require__) {
2128
2127
 
2129
2128
  "use strict";
@@ -2133,7 +2132,7 @@ Object.defineProperty(exports, "__esModule", {
2133
2132
  value: true
2134
2133
  });
2135
2134
 
2136
- var react_1 = __webpack_require__(0);
2135
+ var react_1 = __webpack_require__(1);
2137
2136
 
2138
2137
  function usePrevious(value) {
2139
2138
  var ref = (0, react_1.useRef)();
@@ -2147,28 +2146,28 @@ exports.default = usePrevious;
2147
2146
 
2148
2147
  /***/ }),
2149
2148
 
2150
- /***/ 34:
2149
+ /***/ 33:
2151
2150
  /***/ (function(module, exports) {
2152
2151
 
2153
2152
  module.exports = require("@splunk/visualizations-shared/hocUtils");
2154
2153
 
2155
2154
  /***/ }),
2156
2155
 
2157
- /***/ 35:
2156
+ /***/ 34:
2158
2157
  /***/ (function(module, exports) {
2159
2158
 
2160
2159
  module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
2161
2160
 
2162
2161
  /***/ }),
2163
2162
 
2164
- /***/ 36:
2163
+ /***/ 35:
2165
2164
  /***/ (function(module, exports) {
2166
2165
 
2167
2166
  module.exports = require("@splunk/visualizations-shared/propUtils");
2168
2167
 
2169
2168
  /***/ }),
2170
2169
 
2171
- /***/ 37:
2170
+ /***/ 36:
2172
2171
  /***/ (function(module, exports, __webpack_require__) {
2173
2172
 
2174
2173
  "use strict";
@@ -2179,17 +2178,17 @@ Object.defineProperty(exports, "__esModule", {
2179
2178
  });
2180
2179
  exports.shouldShowIconPlaceholder = void 0;
2181
2180
 
2182
- var React = __webpack_require__(0);
2181
+ var React = __webpack_require__(1);
2183
2182
 
2184
- var T = __webpack_require__(1);
2183
+ var T = __webpack_require__(0);
2185
2184
 
2186
- var lodash_1 = __webpack_require__(3);
2185
+ var lodash_1 = __webpack_require__(2);
2187
2186
 
2188
- var i18n_1 = __webpack_require__(2);
2187
+ var i18n_1 = __webpack_require__(3);
2189
2188
 
2190
- var Message_1 = __webpack_require__(12);
2189
+ var Message_1 = __webpack_require__(11);
2191
2190
 
2192
- var FixedSizeContainer_1 = __webpack_require__(18);
2191
+ var FixedSizeContainer_1 = __webpack_require__(17);
2193
2192
  /**
2194
2193
  * @method shouldShowIconPlaceholder
2195
2194
  * @param {object} dataSources
@@ -2261,24 +2260,24 @@ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
2261
2260
 
2262
2261
  /***/ }),
2263
2262
 
2264
- /***/ 38:
2263
+ /***/ 37:
2265
2264
  /***/ (function(module, exports, __webpack_require__) {
2266
2265
 
2267
2266
  "use strict";
2268
2267
 
2269
2268
 
2270
- var _defineProperty = __webpack_require__(13);
2269
+ var _defineProperty = __webpack_require__(12);
2271
2270
 
2272
2271
  Object.defineProperty(exports, "__esModule", {
2273
2272
  value: true
2274
2273
  });
2275
2274
  exports.getSortingParams = exports.SortParamsPropTypes = void 0;
2276
2275
 
2277
- var T = __webpack_require__(1);
2276
+ var T = __webpack_require__(0);
2278
2277
 
2279
- var lodash_1 = __webpack_require__(3);
2278
+ var lodash_1 = __webpack_require__(2);
2280
2279
 
2281
- var DataSource_1 = __webpack_require__(21);
2280
+ var DataSource_1 = __webpack_require__(20);
2282
2281
 
2283
2282
  exports.SortParamsPropTypes = T.shape({
2284
2283
  currentSortKey: T.string,
@@ -2332,7 +2331,7 @@ exports.getSortingParams = getSortingParams;
2332
2331
 
2333
2332
  /***/ }),
2334
2333
 
2335
- /***/ 39:
2334
+ /***/ 38:
2336
2335
  /***/ (function(module, exports, __webpack_require__) {
2337
2336
 
2338
2337
  "use strict";
@@ -2343,9 +2342,9 @@ Object.defineProperty(exports, "__esModule", {
2343
2342
  });
2344
2343
  exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
2345
2344
 
2346
- var T = __webpack_require__(1);
2345
+ var T = __webpack_require__(0);
2347
2346
 
2348
- var lodash_1 = __webpack_require__(3);
2347
+ var lodash_1 = __webpack_require__(2);
2349
2348
 
2350
2349
  exports.PaginatorParamsPropTypes = T.shape({
2351
2350
  isPaging: T.bool,
@@ -2397,14 +2396,7 @@ exports.getPaginationParams = getPaginationParams;
2397
2396
 
2398
2397
  /***/ }),
2399
2398
 
2400
- /***/ 4:
2401
- /***/ (function(module, exports) {
2402
-
2403
- module.exports = require("styled-components");
2404
-
2405
- /***/ }),
2406
-
2407
- /***/ 40:
2399
+ /***/ 39:
2408
2400
  /***/ (function(module, exports, __webpack_require__) {
2409
2401
 
2410
2402
  "use strict";
@@ -2439,11 +2431,13 @@ Object.defineProperty(exports, "__esModule", {
2439
2431
  value: true
2440
2432
  });
2441
2433
 
2434
+ __exportStar(__webpack_require__(40), exports);
2435
+
2442
2436
  __exportStar(__webpack_require__(41), exports);
2443
2437
 
2444
- __exportStar(__webpack_require__(42), exports);
2438
+ __exportStar(__webpack_require__(20), exports);
2445
2439
 
2446
- __exportStar(__webpack_require__(21), exports);
2440
+ __exportStar(__webpack_require__(42), exports);
2447
2441
 
2448
2442
  __exportStar(__webpack_require__(43), exports);
2449
2443
 
@@ -2455,13 +2449,13 @@ __exportStar(__webpack_require__(46), exports);
2455
2449
 
2456
2450
  __exportStar(__webpack_require__(47), exports);
2457
2451
 
2458
- __exportStar(__webpack_require__(48), exports);
2452
+ __exportStar(__webpack_require__(21), exports);
2459
2453
 
2460
- __exportStar(__webpack_require__(22), exports);
2454
+ __exportStar(__webpack_require__(7), exports);
2461
2455
 
2462
- __exportStar(__webpack_require__(8), exports);
2456
+ __exportStar(__webpack_require__(22), exports);
2463
2457
 
2464
- __exportStar(__webpack_require__(23), exports);
2458
+ __exportStar(__webpack_require__(48), exports);
2465
2459
 
2466
2460
  __exportStar(__webpack_require__(49), exports);
2467
2461
 
@@ -2473,11 +2467,16 @@ __exportStar(__webpack_require__(52), exports);
2473
2467
 
2474
2468
  __exportStar(__webpack_require__(53), exports);
2475
2469
 
2476
- __exportStar(__webpack_require__(54), exports);
2470
+ /***/ }),
2471
+
2472
+ /***/ 4:
2473
+ /***/ (function(module, exports) {
2474
+
2475
+ module.exports = require("styled-components");
2477
2476
 
2478
2477
  /***/ }),
2479
2478
 
2480
- /***/ 41:
2479
+ /***/ 40:
2481
2480
  /***/ (function(module, exports, __webpack_require__) {
2482
2481
 
2483
2482
  "use strict";
@@ -2489,7 +2488,7 @@ Object.defineProperty(exports, "__esModule", {
2489
2488
 
2490
2489
  /***/ }),
2491
2490
 
2492
- /***/ 42:
2491
+ /***/ 41:
2493
2492
  /***/ (function(module, exports, __webpack_require__) {
2494
2493
 
2495
2494
  "use strict";
@@ -2498,6 +2497,18 @@ Object.defineProperty(exports, "__esModule", {
2498
2497
  * A data structure used at runtime to wire up a visualization.
2499
2498
  */
2500
2499
 
2500
+ Object.defineProperty(exports, "__esModule", {
2501
+ value: true
2502
+ });
2503
+
2504
+ /***/ }),
2505
+
2506
+ /***/ 42:
2507
+ /***/ (function(module, exports, __webpack_require__) {
2508
+
2509
+ "use strict";
2510
+
2511
+
2501
2512
  Object.defineProperty(exports, "__esModule", {
2502
2513
  value: true
2503
2514
  });
@@ -2528,7 +2539,7 @@ Object.defineProperty(exports, "__esModule", {
2528
2539
 
2529
2540
  /***/ }),
2530
2541
 
2531
- /***/ 449:
2542
+ /***/ 441:
2532
2543
  /***/ (function(module, exports, __webpack_require__) {
2533
2544
 
2534
2545
  "use strict";
@@ -2552,13 +2563,13 @@ Object.defineProperty(exports, "__esModule", {
2552
2563
  });
2553
2564
  exports.themes = exports.computeVizProps = exports.PureParallelCoordinates = exports.config = void 0;
2554
2565
 
2555
- var PureParallelCoordinates_1 = __webpack_require__(450);
2566
+ var PureParallelCoordinates_1 = __webpack_require__(442);
2556
2567
 
2557
- var withDashboardViz_1 = __webpack_require__(55);
2568
+ var withDashboardViz_1 = __webpack_require__(54);
2558
2569
 
2559
- var config_1 = __webpack_require__(457);
2570
+ var config_1 = __webpack_require__(449);
2560
2571
 
2561
- var singleValueUtils_1 = __webpack_require__(20);
2572
+ var singleValueUtils_1 = __webpack_require__(19);
2562
2573
 
2563
2574
  exports.config = config_1.default;
2564
2575
  exports.PureParallelCoordinates = PureParallelCoordinates_1.default;
@@ -2602,25 +2613,13 @@ exports.default = viz;
2602
2613
 
2603
2614
  /***/ }),
2604
2615
 
2605
- /***/ 45:
2616
+ /***/ 442:
2606
2617
  /***/ (function(module, exports, __webpack_require__) {
2607
2618
 
2608
2619
  "use strict";
2609
2620
 
2610
2621
 
2611
- Object.defineProperty(exports, "__esModule", {
2612
- value: true
2613
- });
2614
-
2615
- /***/ }),
2616
-
2617
- /***/ 450:
2618
- /***/ (function(module, exports, __webpack_require__) {
2619
-
2620
- "use strict";
2621
-
2622
-
2623
- var _toConsumableArray = __webpack_require__(7);
2622
+ var _toConsumableArray = __webpack_require__(6);
2624
2623
 
2625
2624
  var __rest = this && this.__rest || function (s, e) {
2626
2625
  var t = {};
@@ -2639,19 +2638,19 @@ Object.defineProperty(exports, "__esModule", {
2639
2638
  value: true
2640
2639
  });
2641
2640
 
2642
- var React = __webpack_require__(0);
2641
+ var React = __webpack_require__(1);
2643
2642
 
2644
- var d3_array_1 = __webpack_require__(84);
2643
+ var d3_array_1 = __webpack_require__(83);
2645
2644
 
2646
- var d3_scale_1 = __webpack_require__(113);
2645
+ var d3_scale_1 = __webpack_require__(112);
2647
2646
 
2648
- var T = __webpack_require__(1);
2647
+ var T = __webpack_require__(0);
2649
2648
 
2650
- var i18n_1 = __webpack_require__(2);
2649
+ var i18n_1 = __webpack_require__(3);
2651
2650
 
2652
- var Message_1 = __webpack_require__(12);
2651
+ var Message_1 = __webpack_require__(11);
2653
2652
 
2654
- var ParallelCoordinatesChart_1 = __webpack_require__(451);
2653
+ var ParallelCoordinatesChart_1 = __webpack_require__(443);
2655
2654
 
2656
2655
  var PureParallelCoordinates = function PureParallelCoordinates(_a) {
2657
2656
  var props = __rest(_a, []);
@@ -2843,15 +2842,15 @@ exports.default = PureParallelCoordinates;
2843
2842
 
2844
2843
  /***/ }),
2845
2844
 
2846
- /***/ 451:
2845
+ /***/ 443:
2847
2846
  /***/ (function(module, exports, __webpack_require__) {
2848
2847
 
2849
2848
  "use strict";
2850
2849
 
2851
2850
 
2852
- var _toConsumableArray = __webpack_require__(7);
2851
+ var _toConsumableArray = __webpack_require__(6);
2853
2852
 
2854
- var _slicedToArray = __webpack_require__(6);
2853
+ var _slicedToArray = __webpack_require__(5);
2855
2854
 
2856
2855
  var __rest = this && this.__rest || function (s, e) {
2857
2856
  var t = {};
@@ -2870,21 +2869,21 @@ Object.defineProperty(exports, "__esModule", {
2870
2869
  value: true
2871
2870
  });
2872
2871
 
2873
- var React = __webpack_require__(0);
2872
+ var React = __webpack_require__(1);
2874
2873
 
2875
2874
  var styled_components_1 = __webpack_require__(4);
2876
2875
 
2877
- var d3_selection_1 = __webpack_require__(452);
2876
+ var d3_selection_1 = __webpack_require__(444);
2878
2877
 
2879
- var d3_brush_1 = __webpack_require__(453);
2878
+ var d3_brush_1 = __webpack_require__(445);
2880
2879
 
2881
- var d3_axis_1 = __webpack_require__(454);
2880
+ var d3_axis_1 = __webpack_require__(446);
2882
2881
 
2883
- var d3_drag_1 = __webpack_require__(455);
2882
+ var d3_drag_1 = __webpack_require__(447);
2884
2883
 
2885
- var rgb_hex_converter_1 = __webpack_require__(183);
2884
+ var rgb_hex_converter_1 = __webpack_require__(181);
2886
2885
 
2887
- var ParallelCoordinatesCanvas_1 = __webpack_require__(456);
2886
+ var ParallelCoordinatesCanvas_1 = __webpack_require__(448);
2888
2887
 
2889
2888
  var ChartDiv = styled_components_1.default.div.withConfig({
2890
2889
  displayName: "ParallelCoordinatesChart__ChartDiv",
@@ -3213,35 +3212,35 @@ exports.default = ParallelCoordinatesChart;
3213
3212
 
3214
3213
  /***/ }),
3215
3214
 
3216
- /***/ 452:
3215
+ /***/ 444:
3217
3216
  /***/ (function(module, exports) {
3218
3217
 
3219
3218
  module.exports = require("d3-selection");
3220
3219
 
3221
3220
  /***/ }),
3222
3221
 
3223
- /***/ 453:
3222
+ /***/ 445:
3224
3223
  /***/ (function(module, exports) {
3225
3224
 
3226
3225
  module.exports = require("d3-brush");
3227
3226
 
3228
3227
  /***/ }),
3229
3228
 
3230
- /***/ 454:
3229
+ /***/ 446:
3231
3230
  /***/ (function(module, exports) {
3232
3231
 
3233
3232
  module.exports = require("d3-axis");
3234
3233
 
3235
3234
  /***/ }),
3236
3235
 
3237
- /***/ 455:
3236
+ /***/ 447:
3238
3237
  /***/ (function(module, exports) {
3239
3238
 
3240
3239
  module.exports = require("d3-drag");
3241
3240
 
3242
3241
  /***/ }),
3243
3242
 
3244
- /***/ 456:
3243
+ /***/ 448:
3245
3244
  /***/ (function(module, exports, __webpack_require__) {
3246
3245
 
3247
3246
  "use strict";
@@ -3264,9 +3263,9 @@ Object.defineProperty(exports, "__esModule", {
3264
3263
  value: true
3265
3264
  });
3266
3265
 
3267
- var React = __webpack_require__(0);
3266
+ var React = __webpack_require__(1);
3268
3267
 
3269
- var rgb_hex_converter_1 = __webpack_require__(183);
3268
+ var rgb_hex_converter_1 = __webpack_require__(181);
3270
3269
 
3271
3270
  var ParallelCoordinatesCanvas = function ParallelCoordinatesCanvas(_a) {
3272
3271
  var props = __rest(_a, []);
@@ -3402,7 +3401,7 @@ exports.default = ParallelCoordinatesCanvas;
3402
3401
 
3403
3402
  /***/ }),
3404
3403
 
3405
- /***/ 457:
3404
+ /***/ 449:
3406
3405
  /***/ (function(module, exports, __webpack_require__) {
3407
3406
 
3408
3407
  "use strict";
@@ -3412,25 +3411,25 @@ Object.defineProperty(exports, "__esModule", {
3412
3411
  value: true
3413
3412
  });
3414
3413
 
3415
- var i18n_1 = __webpack_require__(2);
3414
+ var i18n_1 = __webpack_require__(3);
3416
3415
 
3417
- var visualization_schemas_1 = __webpack_require__(10);
3416
+ var visualization_schemas_1 = __webpack_require__(9);
3418
3417
 
3419
- var pick_1 = __webpack_require__(30);
3418
+ var pick_1 = __webpack_require__(29);
3420
3419
 
3421
- var variables_1 = __webpack_require__(14);
3420
+ var variables_1 = __webpack_require__(13);
3422
3421
 
3423
- var visualization_icons_1 = __webpack_require__(72);
3422
+ var visualization_icons_1 = __webpack_require__(71);
3424
3423
 
3425
- var placeholders_1 = __webpack_require__(71);
3424
+ var placeholders_1 = __webpack_require__(70);
3426
3425
 
3427
- var VizBehavior_1 = __webpack_require__(8);
3426
+ var VizBehavior_1 = __webpack_require__(7);
3428
3427
 
3429
- var configUtils_1 = __webpack_require__(27);
3428
+ var configUtils_1 = __webpack_require__(26);
3430
3429
 
3431
- var VizCategory_1 = __webpack_require__(23);
3430
+ var VizCategory_1 = __webpack_require__(22);
3432
3431
 
3433
- var BackgroundColor_1 = __webpack_require__(73);
3432
+ var BackgroundColor_1 = __webpack_require__(72);
3434
3433
 
3435
3434
  var dataContract = {
3436
3435
  requiredDataSources: [{
@@ -3611,7 +3610,7 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
3611
3610
 
3612
3611
  /***/ }),
3613
3612
 
3614
- /***/ 46:
3613
+ /***/ 45:
3615
3614
  /***/ (function(module, exports, __webpack_require__) {
3616
3615
 
3617
3616
  "use strict";
@@ -3623,7 +3622,7 @@ Object.defineProperty(exports, "__esModule", {
3623
3622
 
3624
3623
  /***/ }),
3625
3624
 
3626
- /***/ 47:
3625
+ /***/ 46:
3627
3626
  /***/ (function(module, exports, __webpack_require__) {
3628
3627
 
3629
3628
  "use strict";
@@ -3635,7 +3634,7 @@ Object.defineProperty(exports, "__esModule", {
3635
3634
 
3636
3635
  /***/ }),
3637
3636
 
3638
- /***/ 48:
3637
+ /***/ 47:
3639
3638
  /***/ (function(module, exports, __webpack_require__) {
3640
3639
 
3641
3640
  "use strict";
@@ -3647,7 +3646,7 @@ Object.defineProperty(exports, "__esModule", {
3647
3646
 
3648
3647
  /***/ }),
3649
3648
 
3650
- /***/ 49:
3649
+ /***/ 48:
3651
3650
  /***/ (function(module, exports, __webpack_require__) {
3652
3651
 
3653
3652
  "use strict";
@@ -3659,7 +3658,7 @@ Object.defineProperty(exports, "__esModule", {
3659
3658
 
3660
3659
  /***/ }),
3661
3660
 
3662
- /***/ 50:
3661
+ /***/ 49:
3663
3662
  /***/ (function(module, exports, __webpack_require__) {
3664
3663
 
3665
3664
  "use strict";
@@ -3671,7 +3670,14 @@ Object.defineProperty(exports, "__esModule", {
3671
3670
 
3672
3671
  /***/ }),
3673
3672
 
3674
- /***/ 51:
3673
+ /***/ 5:
3674
+ /***/ (function(module, exports) {
3675
+
3676
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
3677
+
3678
+ /***/ }),
3679
+
3680
+ /***/ 50:
3675
3681
  /***/ (function(module, exports, __webpack_require__) {
3676
3682
 
3677
3683
  "use strict";
@@ -3683,7 +3689,7 @@ Object.defineProperty(exports, "__esModule", {
3683
3689
 
3684
3690
  /***/ }),
3685
3691
 
3686
- /***/ 52:
3692
+ /***/ 51:
3687
3693
  /***/ (function(module, exports, __webpack_require__) {
3688
3694
 
3689
3695
  "use strict";
@@ -3695,7 +3701,7 @@ Object.defineProperty(exports, "__esModule", {
3695
3701
 
3696
3702
  /***/ }),
3697
3703
 
3698
- /***/ 53:
3704
+ /***/ 52:
3699
3705
  /***/ (function(module, exports, __webpack_require__) {
3700
3706
 
3701
3707
  "use strict";
@@ -3707,7 +3713,7 @@ Object.defineProperty(exports, "__esModule", {
3707
3713
 
3708
3714
  /***/ }),
3709
3715
 
3710
- /***/ 54:
3716
+ /***/ 53:
3711
3717
  /***/ (function(module, exports, __webpack_require__) {
3712
3718
 
3713
3719
  "use strict";
@@ -3719,65 +3725,65 @@ Object.defineProperty(exports, "__esModule", {
3719
3725
 
3720
3726
  /***/ }),
3721
3727
 
3722
- /***/ 55:
3728
+ /***/ 54:
3723
3729
  /***/ (function(module, exports, __webpack_require__) {
3724
3730
 
3725
3731
  "use strict";
3726
3732
 
3727
3733
 
3728
- var _slicedToArray = __webpack_require__(6);
3734
+ var _slicedToArray = __webpack_require__(5);
3729
3735
 
3730
3736
  Object.defineProperty(exports, "__esModule", {
3731
3737
  value: true
3732
3738
  });
3733
3739
 
3734
- var React = __webpack_require__(0);
3740
+ var React = __webpack_require__(1);
3735
3741
 
3736
- var lodash_1 = __webpack_require__(3);
3742
+ var lodash_1 = __webpack_require__(2);
3737
3743
 
3738
- var getSettingsFromThemedProps_1 = __webpack_require__(56);
3744
+ var getSettingsFromThemedProps_1 = __webpack_require__(55);
3739
3745
 
3740
- var Options_1 = __webpack_require__(17);
3746
+ var Options_1 = __webpack_require__(16);
3741
3747
 
3742
- var SanitizeProps_1 = __webpack_require__(57);
3748
+ var SanitizeProps_1 = __webpack_require__(56);
3743
3749
 
3744
- var TimezoneContext_1 = __webpack_require__(32);
3750
+ var TimezoneContext_1 = __webpack_require__(31);
3745
3751
 
3746
- var moment_1 = __webpack_require__(58);
3752
+ var moment_1 = __webpack_require__(57);
3747
3753
 
3748
- var FeatureFlagContext_1 = __webpack_require__(28);
3754
+ var FeatureFlagContext_1 = __webpack_require__(27);
3749
3755
 
3750
3756
  var styled_components_1 = __webpack_require__(4);
3751
3757
 
3752
- var hocUtils_1 = __webpack_require__(34);
3758
+ var hocUtils_1 = __webpack_require__(33);
3753
3759
 
3754
- var JSONSchemaUtils_1 = __webpack_require__(35);
3760
+ var JSONSchemaUtils_1 = __webpack_require__(34);
3755
3761
 
3756
- var async_dynamic_options_evaluator_1 = __webpack_require__(59);
3762
+ var async_dynamic_options_evaluator_1 = __webpack_require__(58);
3757
3763
 
3758
- var id_1 = __webpack_require__(31);
3764
+ var id_1 = __webpack_require__(30);
3759
3765
 
3760
- var SplunkVisualization_1 = __webpack_require__(60);
3766
+ var SplunkVisualization_1 = __webpack_require__(59);
3761
3767
 
3762
- var VizBehavior_1 = __webpack_require__(8);
3768
+ var VizBehavior_1 = __webpack_require__(7);
3763
3769
 
3764
- var getSorting_1 = __webpack_require__(38);
3770
+ var getSorting_1 = __webpack_require__(37);
3765
3771
 
3766
- var getPagination_1 = __webpack_require__(39);
3772
+ var getPagination_1 = __webpack_require__(38);
3767
3773
 
3768
- var useDeepMemo_1 = __webpack_require__(61);
3774
+ var useDeepMemo_1 = __webpack_require__(60);
3769
3775
 
3770
- var MissingPropsMessage_1 = __webpack_require__(62);
3776
+ var MissingPropsMessage_1 = __webpack_require__(61);
3771
3777
 
3772
- var withEditModeCover_1 = __webpack_require__(63);
3778
+ var withEditModeCover_1 = __webpack_require__(62);
3773
3779
 
3774
- var withPlaceholder_1 = __webpack_require__(64);
3780
+ var withPlaceholder_1 = __webpack_require__(63);
3775
3781
 
3776
- var useDownsampleDataSources_1 = __webpack_require__(65);
3782
+ var useDownsampleDataSources_1 = __webpack_require__(64);
3777
3783
 
3778
- var dataUtils_1 = __webpack_require__(15);
3784
+ var dataUtils_1 = __webpack_require__(14);
3779
3785
 
3780
- var featureFlagUtils_1 = __webpack_require__(67);
3786
+ var featureFlagUtils_1 = __webpack_require__(66);
3781
3787
  /**
3782
3788
  * hoc that wraps a pure react visualization in a Dashboard visualization
3783
3789
  * @param {DashboardVizOpts} opts
@@ -4110,48 +4116,41 @@ exports.default = withDashboardViz;
4110
4116
 
4111
4117
  /***/ }),
4112
4118
 
4113
- /***/ 56:
4119
+ /***/ 55:
4114
4120
  /***/ (function(module, exports) {
4115
4121
 
4116
4122
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
4117
4123
 
4118
4124
  /***/ }),
4119
4125
 
4120
- /***/ 57:
4126
+ /***/ 56:
4121
4127
  /***/ (function(module, exports) {
4122
4128
 
4123
4129
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
4124
4130
 
4125
4131
  /***/ }),
4126
4132
 
4127
- /***/ 58:
4133
+ /***/ 57:
4128
4134
  /***/ (function(module, exports) {
4129
4135
 
4130
4136
  module.exports = require("@splunk/moment");
4131
4137
 
4132
4138
  /***/ }),
4133
4139
 
4134
- /***/ 59:
4140
+ /***/ 58:
4135
4141
  /***/ (function(module, exports) {
4136
4142
 
4137
4143
  module.exports = require("@splunk/async-dynamic-options-evaluator");
4138
4144
 
4139
4145
  /***/ }),
4140
4146
 
4141
- /***/ 6:
4142
- /***/ (function(module, exports) {
4143
-
4144
- module.exports = require("@babel/runtime/helpers/slicedToArray");
4145
-
4146
- /***/ }),
4147
-
4148
- /***/ 60:
4147
+ /***/ 59:
4149
4148
  /***/ (function(module, exports, __webpack_require__) {
4150
4149
 
4151
4150
  "use strict";
4152
4151
 
4153
4152
 
4154
- var _classCallCheck = __webpack_require__(9);
4153
+ var _classCallCheck = __webpack_require__(8);
4155
4154
 
4156
4155
  Object.defineProperty(exports, "__esModule", {
4157
4156
  value: true
@@ -4159,11 +4158,11 @@ Object.defineProperty(exports, "__esModule", {
4159
4158
  exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
4160
4159
  /* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
4161
4160
 
4162
- var T = __webpack_require__(1);
4161
+ var T = __webpack_require__(0);
4163
4162
 
4164
- var lodash_1 = __webpack_require__(3);
4163
+ var lodash_1 = __webpack_require__(2);
4165
4164
 
4166
- var VizActionHandler_1 = __webpack_require__(22); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
4165
+ var VizActionHandler_1 = __webpack_require__(21); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
4167
4166
 
4168
4167
 
4169
4168
  exports.INITIAL_WIDTH = 250;
@@ -4297,7 +4296,14 @@ exports.default = SplunkVisualization;
4297
4296
 
4298
4297
  /***/ }),
4299
4298
 
4300
- /***/ 61:
4299
+ /***/ 6:
4300
+ /***/ (function(module, exports) {
4301
+
4302
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
4303
+
4304
+ /***/ }),
4305
+
4306
+ /***/ 60:
4301
4307
  /***/ (function(module, exports, __webpack_require__) {
4302
4308
 
4303
4309
  "use strict";
@@ -4308,9 +4314,9 @@ Object.defineProperty(exports, "__esModule", {
4308
4314
  });
4309
4315
  exports.useDeepMemo = void 0;
4310
4316
 
4311
- var react_1 = __webpack_require__(0);
4317
+ var react_1 = __webpack_require__(1);
4312
4318
 
4313
- var lodash_1 = __webpack_require__(3);
4319
+ var lodash_1 = __webpack_require__(2);
4314
4320
  /**
4315
4321
  * This hook evaluates and stores the result of a passed function and only
4316
4322
  * re-evaluates the function when passed dependencies change.
@@ -4343,7 +4349,7 @@ exports.useDeepMemo = useDeepMemo;
4343
4349
 
4344
4350
  /***/ }),
4345
4351
 
4346
- /***/ 62:
4352
+ /***/ 61:
4347
4353
  /***/ (function(module, exports, __webpack_require__) {
4348
4354
 
4349
4355
  "use strict";
@@ -4354,15 +4360,15 @@ Object.defineProperty(exports, "__esModule", {
4354
4360
  });
4355
4361
  exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
4356
4362
 
4357
- var React = __webpack_require__(0);
4363
+ var React = __webpack_require__(1);
4358
4364
 
4359
- var T = __webpack_require__(1);
4365
+ var T = __webpack_require__(0);
4360
4366
 
4361
- var i18n_1 = __webpack_require__(2);
4367
+ var i18n_1 = __webpack_require__(3);
4362
4368
 
4363
- var Message_1 = __webpack_require__(12);
4369
+ var Message_1 = __webpack_require__(11);
4364
4370
 
4365
- var FixedSizeContainer_1 = __webpack_require__(18);
4371
+ var FixedSizeContainer_1 = __webpack_require__(17);
4366
4372
  /**
4367
4373
  * @method isMissing
4368
4374
  * @param {any} v
@@ -4424,7 +4430,7 @@ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage)
4424
4430
 
4425
4431
  /***/ }),
4426
4432
 
4427
- /***/ 63:
4433
+ /***/ 62:
4428
4434
  /***/ (function(module, exports, __webpack_require__) {
4429
4435
 
4430
4436
  "use strict";
@@ -4434,18 +4440,18 @@ Object.defineProperty(exports, "__esModule", {
4434
4440
  value: true
4435
4441
  });
4436
4442
 
4437
- var React = __webpack_require__(0);
4443
+ var React = __webpack_require__(1);
4438
4444
 
4439
4445
  var styled_components_1 = __webpack_require__(4);
4440
4446
 
4441
- var hocUtils_1 = __webpack_require__(24);
4447
+ var hocUtils_1 = __webpack_require__(23);
4442
4448
 
4443
4449
  var Cover = styled_components_1.default.div.withConfig({
4444
4450
  displayName: "withEditModeCover__Cover",
4445
4451
  componentId: "sc-1gsbnxb-0"
4446
4452
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
4447
4453
  var Blocker = styled_components_1.default.div.attrs({
4448
- 'data-splunk-visualization-version': "26.3.0 - a1ef240a6"
4454
+ 'data-splunk-visualization-version': "26.4.0 - 04078274d"
4449
4455
  }).withConfig({
4450
4456
  displayName: "withEditModeCover__Blocker",
4451
4457
  componentId: "sc-1gsbnxb-1"
@@ -4477,7 +4483,7 @@ exports.default = withEditModeCover;
4477
4483
 
4478
4484
  /***/ }),
4479
4485
 
4480
- /***/ 64:
4486
+ /***/ 63:
4481
4487
  /***/ (function(module, exports, __webpack_require__) {
4482
4488
 
4483
4489
  "use strict";
@@ -4487,17 +4493,17 @@ Object.defineProperty(exports, "__esModule", {
4487
4493
  value: true
4488
4494
  });
4489
4495
 
4490
- var React = __webpack_require__(0);
4496
+ var React = __webpack_require__(1);
4491
4497
 
4492
- var colorUtils_1 = __webpack_require__(16);
4498
+ var colorUtils_1 = __webpack_require__(15);
4493
4499
 
4494
- var variables_1 = __webpack_require__(14);
4500
+ var variables_1 = __webpack_require__(13);
4495
4501
 
4496
- var IconPlaceholder_1 = __webpack_require__(37);
4502
+ var IconPlaceholder_1 = __webpack_require__(36);
4497
4503
 
4498
- var VizBehavior_1 = __webpack_require__(8);
4504
+ var VizBehavior_1 = __webpack_require__(7);
4499
4505
 
4500
- var hocUtils_1 = __webpack_require__(24);
4506
+ var hocUtils_1 = __webpack_require__(23);
4501
4507
 
4502
4508
  var withPlaceholder = function withPlaceholder(Visualization) {
4503
4509
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -4542,27 +4548,30 @@ exports.default = withPlaceholder;
4542
4548
 
4543
4549
  /***/ }),
4544
4550
 
4545
- /***/ 65:
4551
+ /***/ 64:
4546
4552
  /***/ (function(module, exports, __webpack_require__) {
4547
4553
 
4548
4554
  "use strict";
4549
4555
 
4550
4556
 
4551
- var _slicedToArray = __webpack_require__(6);
4557
+ var _slicedToArray = __webpack_require__(5);
4552
4558
 
4553
4559
  Object.defineProperty(exports, "__esModule", {
4554
4560
  value: true
4555
4561
  });
4556
4562
 
4557
- var react_1 = __webpack_require__(0);
4563
+ var react_1 = __webpack_require__(1);
4564
+
4565
+ var lodash_1 = __webpack_require__(2);
4558
4566
 
4559
- var lodash_1 = __webpack_require__(3);
4567
+ var dataUtils_1 = __webpack_require__(14);
4560
4568
 
4561
- var dataUtils_1 = __webpack_require__(15);
4569
+ var usePrevious_1 = __webpack_require__(32);
4562
4570
 
4563
- var usePrevious_1 = __webpack_require__(33);
4571
+ var useGetXAndYFields_1 = __webpack_require__(65); // Options properties which impact/require re-downsample on change.
4564
4572
 
4565
- var useGetXAndYFields_1 = __webpack_require__(66);
4573
+
4574
+ var downsampleVizOptionProperties = ['nullValueDisplay'];
4566
4575
 
4567
4576
  var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
4568
4577
  var dataSources = _ref.dataSources,
@@ -4576,8 +4585,15 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
4576
4585
  options: options,
4577
4586
  context: context,
4578
4587
  dataSources: dataSources
4579
- });
4580
- var previousXAndYFieldsWithTypes = (0, usePrevious_1.default)(xAndYFieldsWithTypes);
4588
+ }); // Extract viz options that impact downsampling.
4589
+
4590
+ var downsampleVizOptions = (0, react_1.useMemo)(function () {
4591
+ return (0, lodash_1.pick)(options, downsampleVizOptionProperties);
4592
+ }, [options]);
4593
+ var downsampleDSOptions = (0, react_1.useMemo)(function () {
4594
+ return Object.assign(Object.assign({}, downsampleVizOptions), xAndYFieldsWithTypes);
4595
+ }, [xAndYFieldsWithTypes, downsampleVizOptions]);
4596
+ var previousDownsampleDSOptions = (0, usePrevious_1.default)(downsampleDSOptions);
4581
4597
  var previousDataSources = (0, usePrevious_1.default)(dataSources);
4582
4598
  var previousThreshold = (0, usePrevious_1.default)(threshold);
4583
4599
 
@@ -4585,7 +4601,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
4585
4601
  return isDownsamplingEnabled ? (0, dataUtils_1.downsampleDataSources)({
4586
4602
  dataSources: dataSources,
4587
4603
  threshold: threshold,
4588
- options: xAndYFieldsWithTypes
4604
+ options: downsampleDSOptions
4589
4605
  }) : dataSources;
4590
4606
  }),
4591
4607
  _ref3 = _slicedToArray(_ref2, 2),
@@ -4613,7 +4629,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
4613
4629
  return;
4614
4630
  }
4615
4631
 
4616
- if ((0, lodash_1.isEqual)(previousXAndYFieldsWithTypes, xAndYFieldsWithTypes) && previousDataSources === dataSources && previousThreshold === threshold) {
4632
+ if ((0, lodash_1.isEqual)(previousDownsampleDSOptions, downsampleDSOptions) && previousDataSources === dataSources && previousThreshold === threshold) {
4617
4633
  return;
4618
4634
  } // Debounce the downsampling so we don't have to downsample and execute DSL multiple times
4619
4635
  // while the viz is being resized
@@ -4621,10 +4637,10 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
4621
4637
 
4622
4638
  debouncedDownsampleDataSources({
4623
4639
  dataSources: dataSources,
4624
- options: xAndYFieldsWithTypes,
4640
+ options: downsampleDSOptions,
4625
4641
  threshold: threshold
4626
4642
  }); // need to detect if this runs as part of the initial render
4627
- }, [dataSources, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousXAndYFieldsWithTypes, previousDataSources, previousThreshold]);
4643
+ }, [dataSources, downsampleDSOptions, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousDataSources, previousThreshold, previousDownsampleDSOptions]);
4628
4644
  return downsampledDataSources;
4629
4645
  };
4630
4646
 
@@ -4632,21 +4648,21 @@ exports.default = useDownsampleDataSources;
4632
4648
 
4633
4649
  /***/ }),
4634
4650
 
4635
- /***/ 66:
4651
+ /***/ 65:
4636
4652
  /***/ (function(module, exports, __webpack_require__) {
4637
4653
 
4638
4654
  "use strict";
4639
4655
 
4640
4656
 
4641
- var _toConsumableArray = __webpack_require__(7);
4657
+ var _toConsumableArray = __webpack_require__(6);
4642
4658
 
4643
4659
  Object.defineProperty(exports, "__esModule", {
4644
4660
  value: true
4645
4661
  });
4646
4662
 
4647
- var react_1 = __webpack_require__(0);
4663
+ var react_1 = __webpack_require__(1);
4648
4664
 
4649
- var Options_1 = __webpack_require__(17);
4665
+ var Options_1 = __webpack_require__(16);
4650
4666
  /**
4651
4667
  * Hook that evaluates the DSL for subset of a viz's options needed to determine
4652
4668
  * its x and y fields as well as the types of all its fields.
@@ -4747,7 +4763,7 @@ exports.default = useGetXAndYFields;
4747
4763
 
4748
4764
  /***/ }),
4749
4765
 
4750
- /***/ 67:
4766
+ /***/ 66:
4751
4767
  /***/ (function(module, exports, __webpack_require__) {
4752
4768
 
4753
4769
  "use strict";
@@ -4758,7 +4774,7 @@ Object.defineProperty(exports, "__esModule", {
4758
4774
  });
4759
4775
  exports.getFeatureFlag = void 0;
4760
4776
 
4761
- var FeatureFlags_1 = __webpack_require__(68);
4777
+ var FeatureFlags_1 = __webpack_require__(67);
4762
4778
 
4763
4779
  var getFeatureFlag = function getFeatureFlag(context, flagName) {
4764
4780
  // look for feature flag in context first
@@ -4783,42 +4799,75 @@ exports.getFeatureFlag = getFeatureFlag;
4783
4799
 
4784
4800
  /***/ }),
4785
4801
 
4786
- /***/ 68:
4802
+ /***/ 67:
4787
4803
  /***/ (function(module, exports) {
4788
4804
 
4789
4805
  module.exports = require("@splunk/visualization-context/FeatureFlags");
4790
4806
 
4791
4807
  /***/ }),
4792
4808
 
4793
- /***/ 7:
4809
+ /***/ 69:
4794
4810
  /***/ (function(module, exports) {
4795
4811
 
4796
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
4812
+ module.exports = require("@splunk/visualizations-shared/colorConstants");
4797
4813
 
4798
4814
  /***/ }),
4799
4815
 
4800
- /***/ 70:
4801
- /***/ (function(module, exports) {
4816
+ /***/ 7:
4817
+ /***/ (function(module, exports, __webpack_require__) {
4802
4818
 
4803
- module.exports = require("@splunk/visualizations-shared/colorConstants");
4819
+ "use strict";
4820
+
4821
+
4822
+ Object.defineProperty(exports, "__esModule", {
4823
+ value: true
4824
+ });
4825
+ exports.VizBehavior = void 0;
4826
+ var VizBehavior;
4827
+
4828
+ (function (VizBehavior) {
4829
+ /**
4830
+ * Dynamic Options Behavior.
4831
+ * This allows visualization options to be powered by data
4832
+ *
4833
+ * **Example**
4834
+ *
4835
+ * sparklineValues: ">primary|seriesByIndex(0)"
4836
+ * would configure sparklineValues with an array of data points
4837
+ * coming from the first series in the primary datasource
4838
+ *
4839
+ */
4840
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
4841
+ VizBehavior["EVENTS"] = "events";
4842
+ VizBehavior["DOWNSAMPLING"] = "downsampling";
4843
+ /**
4844
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
4845
+ * missing.
4846
+ * @type {string}
4847
+ */
4848
+
4849
+ VizBehavior["PLACEHOLDER"] = "placeholder";
4850
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
4851
+ VizBehavior["TRELLIS"] = "trellis";
4852
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
4804
4853
 
4805
4854
  /***/ }),
4806
4855
 
4807
- /***/ 71:
4856
+ /***/ 70:
4808
4857
  /***/ (function(module, exports) {
4809
4858
 
4810
4859
  module.exports = require("@splunk/visualization-icons/placeholders");
4811
4860
 
4812
4861
  /***/ }),
4813
4862
 
4814
- /***/ 72:
4863
+ /***/ 71:
4815
4864
  /***/ (function(module, exports) {
4816
4865
 
4817
4866
  module.exports = require("@splunk/visualization-icons");
4818
4867
 
4819
4868
  /***/ }),
4820
4869
 
4821
- /***/ 73:
4870
+ /***/ 72:
4822
4871
  /***/ (function(module, exports, __webpack_require__) {
4823
4872
 
4824
4873
  "use strict";
@@ -4828,14 +4877,14 @@ Object.defineProperty(exports, "__esModule", {
4828
4877
  value: true
4829
4878
  });
4830
4879
 
4831
- var i18n_1 = __webpack_require__(2);
4880
+ var i18n_1 = __webpack_require__(3);
4832
4881
 
4833
4882
  var background = function background(_ref) {
4834
4883
  var label = _ref.label,
4835
4884
  themes = _ref.themes,
4836
4885
  labelPosition = _ref.labelPosition;
4837
4886
  return [{
4838
- label: (0, i18n_1._)(label || 'Background'),
4887
+ label: (0, i18n_1._)(label || 'Background color'),
4839
4888
  option: 'backgroundColor',
4840
4889
  editor: 'editor.color',
4841
4890
  editorProps: {
@@ -4849,7 +4898,7 @@ exports.default = background;
4849
4898
 
4850
4899
  /***/ }),
4851
4900
 
4852
- /***/ 74:
4901
+ /***/ 73:
4853
4902
  /***/ (function(module, exports) {
4854
4903
 
4855
4904
  module.exports = require("@splunk/visualizations-shared/domUtils");
@@ -4857,46 +4906,13 @@ module.exports = require("@splunk/visualizations-shared/domUtils");
4857
4906
  /***/ }),
4858
4907
 
4859
4908
  /***/ 8:
4860
- /***/ (function(module, exports, __webpack_require__) {
4861
-
4862
- "use strict";
4863
-
4864
-
4865
- Object.defineProperty(exports, "__esModule", {
4866
- value: true
4867
- });
4868
- exports.VizBehavior = void 0;
4869
- var VizBehavior;
4870
-
4871
- (function (VizBehavior) {
4872
- /**
4873
- * Dynamic Options Behavior.
4874
- * This allows visualization options to be powered by data
4875
- *
4876
- * **Example**
4877
- *
4878
- * sparklineValues: ">primary|seriesByIndex(0)"
4879
- * would configure sparklineValues with an array of data points
4880
- * coming from the first series in the primary datasource
4881
- *
4882
- */
4883
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
4884
- VizBehavior["EVENTS"] = "events";
4885
- VizBehavior["DOWNSAMPLING"] = "downsampling";
4886
- /**
4887
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
4888
- * missing.
4889
- * @type {string}
4890
- */
4909
+ /***/ (function(module, exports) {
4891
4910
 
4892
- VizBehavior["PLACEHOLDER"] = "placeholder";
4893
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
4894
- VizBehavior["TRELLIS"] = "trellis";
4895
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
4911
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
4896
4912
 
4897
4913
  /***/ }),
4898
4914
 
4899
- /***/ 84:
4915
+ /***/ 83:
4900
4916
  /***/ (function(module, exports) {
4901
4917
 
4902
4918
  module.exports = require("d3-array");
@@ -4906,7 +4922,7 @@ module.exports = require("d3-array");
4906
4922
  /***/ 9:
4907
4923
  /***/ (function(module, exports) {
4908
4924
 
4909
- module.exports = require("@babel/runtime/helpers/classCallCheck");
4925
+ module.exports = require("@splunk/visualization-schemas");
4910
4926
 
4911
4927
  /***/ })
4912
4928