@splunk/visualizations 26.2.1 → 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 (150) hide show
  1. package/Area.config.js +92 -595
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +296 -801
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +93 -562
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +299 -770
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +84 -483
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +286 -687
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +77 -202
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +272 -400
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +93 -600
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +299 -808
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +82 -200
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +233 -356
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +62 -283
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +326 -530
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +91 -220
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +267 -401
  32. package/FillerGauge.js.map +1 -1
  33. package/Image.config.js +61 -157
  34. package/Image.config.js.map +1 -1
  35. package/Image.js +217 -327
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +92 -607
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +297 -814
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +75 -257
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +1755 -17415
  44. package/LinkGraph.js.map +1 -1
  45. package/MIGRATION.md +6 -0
  46. package/Map.config.js +128 -1123
  47. package/Map.config.js.map +1 -1
  48. package/Map.js +470 -782
  49. package/Map.js.map +1 -1
  50. package/Markdown.config.js +62 -189
  51. package/Markdown.config.js.map +1 -1
  52. package/Markdown.js +272 -401
  53. package/Markdown.js.map +1 -1
  54. package/MarkerGauge.config.js +138 -298
  55. package/MarkerGauge.config.js.map +1 -1
  56. package/MarkerGauge.js +309 -470
  57. package/MarkerGauge.js.map +1 -1
  58. package/ParallelCoordinates.config.js +72 -192
  59. package/ParallelCoordinates.config.js.map +1 -1
  60. package/ParallelCoordinates.js +333 -442
  61. package/ParallelCoordinates.js.map +1 -1
  62. package/Pie.config.js +77 -241
  63. package/Pie.config.js.map +1 -1
  64. package/Pie.js +336 -471
  65. package/Pie.js.map +1 -1
  66. package/Punchcard.config.js +72 -306
  67. package/Punchcard.config.js.map +1 -1
  68. package/Punchcard.js +356 -583
  69. package/Punchcard.js.map +1 -1
  70. package/Rectangle.config.js +211 -347
  71. package/Rectangle.config.js.map +1 -1
  72. package/Rectangle.js +371 -509
  73. package/Rectangle.js.map +1 -1
  74. package/Sankey.config.js +72 -214
  75. package/Sankey.config.js.map +1 -1
  76. package/Sankey.js +343 -475
  77. package/Sankey.js.map +1 -1
  78. package/Scatter.config.js +86 -464
  79. package/Scatter.config.js.map +1 -1
  80. package/Scatter.js +1118 -1493
  81. package/Scatter.js.map +1 -1
  82. package/SingleValue.config.js +124 -411
  83. package/SingleValue.config.js.map +1 -1
  84. package/SingleValue.js +522 -789
  85. package/SingleValue.js.map +1 -1
  86. package/SingleValueBasic.js +73 -61
  87. package/SingleValueBasic.js.map +1 -1
  88. package/SingleValueIcon.config.js +123 -380
  89. package/SingleValueIcon.config.js.map +1 -1
  90. package/SingleValueIcon.js +508 -745
  91. package/SingleValueIcon.js.map +1 -1
  92. package/SingleValueRadial.config.js +121 -385
  93. package/SingleValueRadial.config.js.map +1 -1
  94. package/SingleValueRadial.js +1642 -1885
  95. package/SingleValueRadial.js.map +1 -1
  96. package/SparkLine.js +39 -39
  97. package/SparkLine.js.map +1 -1
  98. package/Table.config.js +82 -496
  99. package/Table.config.js.map +1 -1
  100. package/Table.js +416 -825
  101. package/Table.js.map +1 -1
  102. package/common/Charting.js +37 -57
  103. package/common/Charting.js.map +1 -1
  104. package/common/DocExampleWithVizSandbox.js +21 -21
  105. package/common/DocExampleWithVizSandbox.js.map +1 -1
  106. package/common/EventsDoc.js +18 -18
  107. package/common/EventsDoc.js.map +1 -1
  108. package/common/GaugeMajorTicks.js +4 -4
  109. package/common/GaugeMajorTicks.js.map +1 -1
  110. package/common/GaugeValueMarker.js +2 -2
  111. package/common/GaugeValueMarker.js.map +1 -1
  112. package/common/OptionsDoc.js +4 -4
  113. package/common/OptionsDoc.js.map +1 -1
  114. package/common/OverviewDoc.js +39 -40
  115. package/common/OverviewDoc.js.map +1 -1
  116. package/common/SplunkVisualization.js +2 -2
  117. package/common/SplunkVisualization.js.map +1 -1
  118. package/common/SplunkVisualizationApi.js +2 -2
  119. package/common/SplunkVisualizationApi.js.map +1 -1
  120. package/common/ThemesDoc.js +19 -19
  121. package/common/ThemesDoc.js.map +1 -1
  122. package/common/chartingUtils.js +2 -2
  123. package/common/chartingUtils.js.map +1 -1
  124. package/common/gaugeUtils.js +10 -10
  125. package/common/gaugeUtils.js.map +1 -1
  126. package/common/shapeUtils.js +10 -10
  127. package/common/shapeUtils.js.map +1 -1
  128. package/common/utils/configUtils.js +25 -155
  129. package/common/utils/configUtils.js.map +1 -1
  130. package/common/utils/dataUtils.js +87 -105
  131. package/common/utils/dataUtils.js.map +1 -1
  132. package/common/utils/featureFlagUtils.js +4 -4
  133. package/common/utils/featureFlagUtils.js.map +1 -1
  134. package/common/utils/hocUtils.js +2 -2
  135. package/common/utils/hocUtils.js.map +1 -1
  136. package/common/utils/mapUtils.js +51 -54
  137. package/common/utils/mapUtils.js.map +1 -1
  138. package/common/utils/singleValueUtils.js +30 -18
  139. package/common/utils/singleValueUtils.js.map +1 -1
  140. package/common/utils/testHelper.js +7 -36
  141. package/common/utils/testHelper.js.map +1 -1
  142. package/common/utils/trellisUtils.js +7 -6
  143. package/common/utils/trellisUtils.js.map +1 -1
  144. package/common/utils/urlUtils.js +2 -2
  145. package/common/utils/urlUtils.js.map +1 -1
  146. package/common/withDashboardViz.js +93 -101
  147. package/common/withDashboardViz.js.map +1 -1
  148. package/package.json +48 -50
  149. package/common/utils/layoutUtils.js +0 -115
  150. package/common/utils/layoutUtils.js.map +0 -1
@@ -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 = 104);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 103);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -430,19 +430,21 @@ var largestTriangleThreeBuckets = function largestTriangleThreeBuckets(data, thr
430
430
  */
431
431
 
432
432
 
433
- var strictlyCoerceYColumn = function strictlyCoerceYColumn(column) {
434
- // Splunk charting allows for numbers in formats such as negative hex that
433
+ var strictlyCoerceYColumn = function strictlyCoerceYColumn(column, options) {
434
+ var isNullCoercionEnabled = options.nullValueDisplay === 'zero'; // Splunk charting allows for numbers in formats such as negative hex that
435
435
  // Number() does not support and also allows loose coercion of hex numbers (but not other formats)
436
436
  // We want to identify columns which contain at least one value that can be loosely coerced
437
+
437
438
  var canLooselyCoerceSomeValues = column.findIndex(function (value) {
438
- return (0, numberUtils_1.startsWithNumber)("".concat(value));
439
+ return (0, numberUtils_1.startsWithNumber)("".concat(value)) || isNullCoercionEnabled && value === null;
439
440
  }) >= 0; // If not all values in column can be strictly coerced to a number, we do not downsample
440
441
 
441
442
  var coercedColumn = [];
442
443
  var canDownsampleColumn = !column.some(function (value) {
443
- var coercedValue = Number(value); // if it can't be parsed or isn't safe, fail
444
+ var coercedValue = Number(value);
445
+ var coerceValueToZero = isNullCoercionEnabled && value === null; // if it can't be parsed or isn't safe, fail
444
446
 
445
- if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number') {
447
+ if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number' && !coerceValueToZero) {
446
448
  return true;
447
449
  } // save value and continue to next
448
450
 
@@ -523,8 +525,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
523
525
  dataSources = _ref3.dataSources,
524
526
  selectChartEvent = _ref3.selectChartEvent,
525
527
  width = _ref3.width,
526
- xField = _ref3.xField,
527
- y2Fields = _ref3.y2Fields;
528
+ xField = _ref3.xField;
528
529
 
529
530
  var _a, _b, _c;
530
531
 
@@ -561,14 +562,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
561
562
  });
562
563
  var lastIndex = fullSeries.findIndex(function (x) {
563
564
  return downsampledSeries[endXIndex] === x;
564
- }); // For charts with categorical x-axis (charts with an xField that isn't _time), do not support
565
- // re-calculating downsampling threshold if the chart is zoomed in until SPL-259458 is fixed
566
- // Also do not support re-calculating downsampling threshold for zoomed-in charts with y2
567
- // until SPL-259611 is fixed
568
-
569
- if (xField !== '_time' || (y2Fields === null || y2Fields === void 0 ? void 0 : y2Fields.length)) {
570
- return firstIndex === 0 && lastIndex === fullSeries.length - 1 ? width : null;
571
- }
565
+ });
572
566
 
573
567
  if (firstIndex >= 0 && lastIndex >= 0 && firstIndex <= lastIndex) {
574
568
  return (0, exports.calculateThresholdOnRangeSelect)({
@@ -579,6 +573,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
579
573
  });
580
574
  }
581
575
  } catch (e) {
576
+ // eslint-disable-next-line no-console
582
577
  console.error('Error occurred while setting downsample threshold on range select event', e);
583
578
  }
584
579
 
@@ -617,7 +612,7 @@ var isColumnStrictlyIncreasing = function isColumnStrictlyIncreasing(column, fie
617
612
  */
618
613
 
619
614
 
620
- var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes) {
615
+ var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes, options) {
621
616
  var xColumn = [];
622
617
  var yColumns = [];
623
618
  var canDownsample = !ds.data.fields.some(function (field, index) {
@@ -631,7 +626,7 @@ var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, x
631
626
  if (fieldName === xField) {
632
627
  xColumn = strictlyCoerceXColumn(column, fieldType);
633
628
  } else if (yFields.has(fieldName)) {
634
- var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index]),
629
+ var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index], options),
635
630
  coercedColumn = _strictlyCoerceYColum.coercedColumn,
636
631
  canLooselyCoerceSomeValues = _strictlyCoerceYColum.canLooselyCoerceSomeValues,
637
632
  canDownsampleColumn = _strictlyCoerceYColum.canDownsampleColumn; // do not perform downsampling if a column can possibly be displayed but cannot
@@ -721,7 +716,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
721
716
  return dataSources;
722
717
  }
723
718
 
724
- var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes),
719
+ var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes, options),
725
720
  xColumn = _tryToCoerceAllDispla.xColumn,
726
721
  yColumns = _tryToCoerceAllDispla.yColumns;
727
722
 
@@ -745,6 +740,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
745
740
  return downsampledIndices.add(downsampleIndex);
746
741
  });
747
742
  } catch (e) {
743
+ // eslint-disable-next-line no-console
748
744
  console.error("Error occurred while downsampling column ".concat(columnIndex), e);
749
745
  }
750
746
  }); // update data columns with downsampled columns
@@ -765,9 +761,8 @@ exports.downsampleDataSources = downsampleDataSources;
765
761
  Object.defineProperty(exports, "__esModule", {
766
762
  value: true
767
763
  });
768
- exports.validOutputModes = exports.validSegmentationModes = exports.validSortDirs = void 0;
764
+ exports.validOutputModes = exports.validSortDirs = void 0;
769
765
  exports.validSortDirs = ['asc', 'desc', 'none'];
770
- exports.validSegmentationModes = ['none', 'inner'];
771
766
  exports.validOutputModes = ['json_cols', 'json'];
772
767
 
773
768
  /***/ }),
@@ -861,14 +856,14 @@ __exportStar(__webpack_require__(39), exports);
861
856
 
862
857
  __exportStar(__webpack_require__(40), exports);
863
858
 
864
- __exportStar(__webpack_require__(41), exports);
865
-
866
859
  __exportStar(__webpack_require__(14), exports);
867
860
 
868
861
  __exportStar(__webpack_require__(18), exports);
869
862
 
870
863
  __exportStar(__webpack_require__(19), exports);
871
864
 
865
+ __exportStar(__webpack_require__(41), exports);
866
+
872
867
  __exportStar(__webpack_require__(42), exports);
873
868
 
874
869
  __exportStar(__webpack_require__(43), exports);
@@ -879,8 +874,6 @@ __exportStar(__webpack_require__(45), exports);
879
874
 
880
875
  __exportStar(__webpack_require__(46), exports);
881
876
 
882
- __exportStar(__webpack_require__(47), exports);
883
-
884
877
  /***/ }),
885
878
  /* 33 */
886
879
  /***/ (function(module, exports, __webpack_require__) {
@@ -1039,17 +1032,7 @@ Object.defineProperty(exports, "__esModule", {
1039
1032
  });
1040
1033
 
1041
1034
  /***/ }),
1042
- /* 47 */
1043
- /***/ (function(module, exports, __webpack_require__) {
1044
-
1045
- "use strict";
1046
-
1047
-
1048
- Object.defineProperty(exports, "__esModule", {
1049
- value: true
1050
- });
1051
-
1052
- /***/ }),
1035
+ /* 47 */,
1053
1036
  /* 48 */,
1054
1037
  /* 49 */,
1055
1038
  /* 50 */,
@@ -1059,8 +1042,7 @@ Object.defineProperty(exports, "__esModule", {
1059
1042
  /* 54 */,
1060
1043
  /* 55 */,
1061
1044
  /* 56 */,
1062
- /* 57 */,
1063
- /* 58 */
1045
+ /* 57 */
1064
1046
  /***/ (function(module, exports, __webpack_require__) {
1065
1047
 
1066
1048
  "use strict";
@@ -1211,22 +1193,22 @@ SplunkVisualization.defaultProps = {
1211
1193
  exports.default = SplunkVisualization;
1212
1194
 
1213
1195
  /***/ }),
1214
- /* 59 */
1196
+ /* 58 */
1215
1197
  /***/ (function(module, exports) {
1216
1198
 
1217
1199
  module.exports = require("@splunk/themes/variables");
1218
1200
 
1219
1201
  /***/ }),
1202
+ /* 59 */,
1220
1203
  /* 60 */,
1221
1204
  /* 61 */,
1222
- /* 62 */,
1223
- /* 63 */
1205
+ /* 62 */
1224
1206
  /***/ (function(module, exports) {
1225
1207
 
1226
1208
  module.exports = require("@splunk/visualization-encoding/Options");
1227
1209
 
1228
1210
  /***/ }),
1229
- /* 64 */
1211
+ /* 63 */
1230
1212
  /***/ (function(module, exports, __webpack_require__) {
1231
1213
 
1232
1214
  "use strict";
@@ -1246,7 +1228,7 @@ var style_1 = __webpack_require__(29);
1246
1228
 
1247
1229
  var colorUtils_1 = __webpack_require__(16);
1248
1230
 
1249
- var SizeAwareWrapper_1 = __webpack_require__(117);
1231
+ var SizeAwareWrapper_1 = __webpack_require__(116);
1250
1232
 
1251
1233
  var Item = styled_components_1.default.div.attrs(function (_ref) {
1252
1234
  var width = _ref.width;
@@ -1317,7 +1299,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
1317
1299
 
1318
1300
  return React.createElement(FixSizeItem, {
1319
1301
  "data-test": "fix-size-item",
1320
- "data-splunk-visualization-version": "26.2.1 - 714383dbb",
1302
+ "data-splunk-visualization-version": "26.4.0 - 04078274d",
1321
1303
  width: width,
1322
1304
  height: height,
1323
1305
  backgroundColor: backgroundColor
@@ -1338,7 +1320,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
1338
1320
  exports.default = withFixedSizeContainer;
1339
1321
 
1340
1322
  /***/ }),
1341
- /* 65 */
1323
+ /* 64 */
1342
1324
  /***/ (function(module, exports, __webpack_require__) {
1343
1325
 
1344
1326
  "use strict";
@@ -1370,6 +1352,7 @@ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
1370
1352
  exports.extendStaticWrapperProps = extendStaticWrapperProps;
1371
1353
 
1372
1354
  /***/ }),
1355
+ /* 65 */,
1373
1356
  /* 66 */,
1374
1357
  /* 67 */,
1375
1358
  /* 68 */,
@@ -1407,8 +1390,7 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
1407
1390
  /* 100 */,
1408
1391
  /* 101 */,
1409
1392
  /* 102 */,
1410
- /* 103 */,
1411
- /* 104 */
1393
+ /* 103 */
1412
1394
  /***/ (function(module, exports, __webpack_require__) {
1413
1395
 
1414
1396
  "use strict";
@@ -1424,49 +1406,49 @@ var React = __webpack_require__(0);
1424
1406
 
1425
1407
  var lodash_1 = __webpack_require__(3);
1426
1408
 
1427
- var getSettingsFromThemedProps_1 = __webpack_require__(105);
1409
+ var getSettingsFromThemedProps_1 = __webpack_require__(104);
1428
1410
 
1429
- var Options_1 = __webpack_require__(63);
1411
+ var Options_1 = __webpack_require__(62);
1430
1412
 
1431
- var SanitizeProps_1 = __webpack_require__(106);
1413
+ var SanitizeProps_1 = __webpack_require__(105);
1432
1414
 
1433
1415
  var TimezoneContext_1 = __webpack_require__(28);
1434
1416
 
1435
- var moment_1 = __webpack_require__(107);
1417
+ var moment_1 = __webpack_require__(106);
1436
1418
 
1437
- var FeatureFlagContext_1 = __webpack_require__(108);
1419
+ var FeatureFlagContext_1 = __webpack_require__(107);
1438
1420
 
1439
1421
  var styled_components_1 = __webpack_require__(2);
1440
1422
 
1441
- var hocUtils_1 = __webpack_require__(109);
1423
+ var hocUtils_1 = __webpack_require__(108);
1442
1424
 
1443
- var JSONSchemaUtils_1 = __webpack_require__(110);
1425
+ var JSONSchemaUtils_1 = __webpack_require__(109);
1444
1426
 
1445
- var async_dynamic_options_evaluator_1 = __webpack_require__(111);
1427
+ var async_dynamic_options_evaluator_1 = __webpack_require__(110);
1446
1428
 
1447
- var id_1 = __webpack_require__(112);
1429
+ var id_1 = __webpack_require__(111);
1448
1430
 
1449
- var SplunkVisualization_1 = __webpack_require__(58);
1431
+ var SplunkVisualization_1 = __webpack_require__(57);
1450
1432
 
1451
1433
  var VizBehavior_1 = __webpack_require__(18);
1452
1434
 
1453
- var getSorting_1 = __webpack_require__(113);
1435
+ var getSorting_1 = __webpack_require__(112);
1454
1436
 
1455
- var getPagination_1 = __webpack_require__(114);
1437
+ var getPagination_1 = __webpack_require__(113);
1456
1438
 
1457
- var useDeepMemo_1 = __webpack_require__(115);
1439
+ var useDeepMemo_1 = __webpack_require__(114);
1458
1440
 
1459
- var MissingPropsMessage_1 = __webpack_require__(116);
1441
+ var MissingPropsMessage_1 = __webpack_require__(115);
1460
1442
 
1461
- var withEditModeCover_1 = __webpack_require__(118);
1443
+ var withEditModeCover_1 = __webpack_require__(117);
1462
1444
 
1463
- var withPlaceholder_1 = __webpack_require__(119);
1445
+ var withPlaceholder_1 = __webpack_require__(118);
1464
1446
 
1465
- var useDownsampleDataSources_1 = __webpack_require__(121);
1447
+ var useDownsampleDataSources_1 = __webpack_require__(120);
1466
1448
 
1467
1449
  var dataUtils_1 = __webpack_require__(25);
1468
1450
 
1469
- var featureFlagUtils_1 = __webpack_require__(123);
1451
+ var featureFlagUtils_1 = __webpack_require__(122);
1470
1452
  /**
1471
1453
  * hoc that wraps a pure react visualization in a Dashboard visualization
1472
1454
  * @param {DashboardVizOpts} opts
@@ -1798,55 +1780,55 @@ var withDashboardViz = function withDashboardViz(opts) {
1798
1780
  exports.default = withDashboardViz;
1799
1781
 
1800
1782
  /***/ }),
1801
- /* 105 */
1783
+ /* 104 */
1802
1784
  /***/ (function(module, exports) {
1803
1785
 
1804
1786
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1805
1787
 
1806
1788
  /***/ }),
1807
- /* 106 */
1789
+ /* 105 */
1808
1790
  /***/ (function(module, exports) {
1809
1791
 
1810
1792
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1811
1793
 
1812
1794
  /***/ }),
1813
- /* 107 */
1795
+ /* 106 */
1814
1796
  /***/ (function(module, exports) {
1815
1797
 
1816
1798
  module.exports = require("@splunk/moment");
1817
1799
 
1818
1800
  /***/ }),
1819
- /* 108 */
1801
+ /* 107 */
1820
1802
  /***/ (function(module, exports) {
1821
1803
 
1822
1804
  module.exports = require("@splunk/visualization-context/FeatureFlagContext");
1823
1805
 
1824
1806
  /***/ }),
1825
- /* 109 */
1807
+ /* 108 */
1826
1808
  /***/ (function(module, exports) {
1827
1809
 
1828
1810
  module.exports = require("@splunk/visualizations-shared/hocUtils");
1829
1811
 
1830
1812
  /***/ }),
1831
- /* 110 */
1813
+ /* 109 */
1832
1814
  /***/ (function(module, exports) {
1833
1815
 
1834
1816
  module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
1835
1817
 
1836
1818
  /***/ }),
1837
- /* 111 */
1819
+ /* 110 */
1838
1820
  /***/ (function(module, exports) {
1839
1821
 
1840
1822
  module.exports = require("@splunk/async-dynamic-options-evaluator");
1841
1823
 
1842
1824
  /***/ }),
1843
- /* 112 */
1825
+ /* 111 */
1844
1826
  /***/ (function(module, exports) {
1845
1827
 
1846
1828
  module.exports = require("@splunk/ui-utils/id");
1847
1829
 
1848
1830
  /***/ }),
1849
- /* 113 */
1831
+ /* 112 */
1850
1832
  /***/ (function(module, exports, __webpack_require__) {
1851
1833
 
1852
1834
  "use strict";
@@ -1916,7 +1898,7 @@ var getSortingParams = function getSortingParams(_ref) {
1916
1898
  exports.getSortingParams = getSortingParams;
1917
1899
 
1918
1900
  /***/ }),
1919
- /* 114 */
1901
+ /* 113 */
1920
1902
  /***/ (function(module, exports, __webpack_require__) {
1921
1903
 
1922
1904
  "use strict";
@@ -1980,7 +1962,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
1980
1962
  exports.getPaginationParams = getPaginationParams;
1981
1963
 
1982
1964
  /***/ }),
1983
- /* 115 */
1965
+ /* 114 */
1984
1966
  /***/ (function(module, exports, __webpack_require__) {
1985
1967
 
1986
1968
  "use strict";
@@ -2025,7 +2007,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
2025
2007
  exports.useDeepMemo = useDeepMemo;
2026
2008
 
2027
2009
  /***/ }),
2028
- /* 116 */
2010
+ /* 115 */
2029
2011
  /***/ (function(module, exports, __webpack_require__) {
2030
2012
 
2031
2013
  "use strict";
@@ -2044,7 +2026,7 @@ var i18n_1 = __webpack_require__(5);
2044
2026
 
2045
2027
  var Message_1 = __webpack_require__(24);
2046
2028
 
2047
- var FixedSizeContainer_1 = __webpack_require__(64);
2029
+ var FixedSizeContainer_1 = __webpack_require__(63);
2048
2030
  /**
2049
2031
  * @method isMissing
2050
2032
  * @param {any} v
@@ -2105,13 +2087,13 @@ exports.MissingPropsMessage.defaultProps = {
2105
2087
  exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
2106
2088
 
2107
2089
  /***/ }),
2108
- /* 117 */
2090
+ /* 116 */
2109
2091
  /***/ (function(module, exports) {
2110
2092
 
2111
2093
  module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
2112
2094
 
2113
2095
  /***/ }),
2114
- /* 118 */
2096
+ /* 117 */
2115
2097
  /***/ (function(module, exports, __webpack_require__) {
2116
2098
 
2117
2099
  "use strict";
@@ -2125,14 +2107,14 @@ var React = __webpack_require__(0);
2125
2107
 
2126
2108
  var styled_components_1 = __webpack_require__(2);
2127
2109
 
2128
- var hocUtils_1 = __webpack_require__(65);
2110
+ var hocUtils_1 = __webpack_require__(64);
2129
2111
 
2130
2112
  var Cover = styled_components_1.default.div.withConfig({
2131
2113
  displayName: "withEditModeCover__Cover",
2132
2114
  componentId: "sc-1gsbnxb-0"
2133
2115
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
2134
2116
  var Blocker = styled_components_1.default.div.attrs({
2135
- 'data-splunk-visualization-version': "26.2.1 - 714383dbb"
2117
+ 'data-splunk-visualization-version': "26.4.0 - 04078274d"
2136
2118
  }).withConfig({
2137
2119
  displayName: "withEditModeCover__Blocker",
2138
2120
  componentId: "sc-1gsbnxb-1"
@@ -2163,7 +2145,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
2163
2145
  exports.default = withEditModeCover;
2164
2146
 
2165
2147
  /***/ }),
2166
- /* 119 */
2148
+ /* 118 */
2167
2149
  /***/ (function(module, exports, __webpack_require__) {
2168
2150
 
2169
2151
  "use strict";
@@ -2177,13 +2159,13 @@ var React = __webpack_require__(0);
2177
2159
 
2178
2160
  var colorUtils_1 = __webpack_require__(16);
2179
2161
 
2180
- var variables_1 = __webpack_require__(59);
2162
+ var variables_1 = __webpack_require__(58);
2181
2163
 
2182
- var IconPlaceholder_1 = __webpack_require__(120);
2164
+ var IconPlaceholder_1 = __webpack_require__(119);
2183
2165
 
2184
2166
  var VizBehavior_1 = __webpack_require__(18);
2185
2167
 
2186
- var hocUtils_1 = __webpack_require__(65);
2168
+ var hocUtils_1 = __webpack_require__(64);
2187
2169
 
2188
2170
  var withPlaceholder = function withPlaceholder(Visualization) {
2189
2171
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -2227,7 +2209,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
2227
2209
  exports.default = withPlaceholder;
2228
2210
 
2229
2211
  /***/ }),
2230
- /* 120 */
2212
+ /* 119 */
2231
2213
  /***/ (function(module, exports, __webpack_require__) {
2232
2214
 
2233
2215
  "use strict";
@@ -2248,7 +2230,7 @@ var i18n_1 = __webpack_require__(5);
2248
2230
 
2249
2231
  var Message_1 = __webpack_require__(24);
2250
2232
 
2251
- var FixedSizeContainer_1 = __webpack_require__(64);
2233
+ var FixedSizeContainer_1 = __webpack_require__(63);
2252
2234
  /**
2253
2235
  * @method shouldShowIconPlaceholder
2254
2236
  * @param {object} dataSources
@@ -2319,7 +2301,7 @@ IconPlaceholder.defaultProps = {
2319
2301
  exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
2320
2302
 
2321
2303
  /***/ }),
2322
- /* 121 */
2304
+ /* 120 */
2323
2305
  /***/ (function(module, exports, __webpack_require__) {
2324
2306
 
2325
2307
  "use strict";
@@ -2339,7 +2321,10 @@ var dataUtils_1 = __webpack_require__(25);
2339
2321
 
2340
2322
  var usePrevious_1 = __webpack_require__(31);
2341
2323
 
2342
- var useGetXAndYFields_1 = __webpack_require__(122);
2324
+ var useGetXAndYFields_1 = __webpack_require__(121); // Options properties which impact/require re-downsample on change.
2325
+
2326
+
2327
+ var downsampleVizOptionProperties = ['nullValueDisplay'];
2343
2328
 
2344
2329
  var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
2345
2330
  var dataSources = _ref.dataSources,
@@ -2353,8 +2338,15 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
2353
2338
  options: options,
2354
2339
  context: context,
2355
2340
  dataSources: dataSources
2356
- });
2357
- var previousXAndYFieldsWithTypes = (0, usePrevious_1.default)(xAndYFieldsWithTypes);
2341
+ }); // Extract viz options that impact downsampling.
2342
+
2343
+ var downsampleVizOptions = (0, react_1.useMemo)(function () {
2344
+ return (0, lodash_1.pick)(options, downsampleVizOptionProperties);
2345
+ }, [options]);
2346
+ var downsampleDSOptions = (0, react_1.useMemo)(function () {
2347
+ return Object.assign(Object.assign({}, downsampleVizOptions), xAndYFieldsWithTypes);
2348
+ }, [xAndYFieldsWithTypes, downsampleVizOptions]);
2349
+ var previousDownsampleDSOptions = (0, usePrevious_1.default)(downsampleDSOptions);
2358
2350
  var previousDataSources = (0, usePrevious_1.default)(dataSources);
2359
2351
  var previousThreshold = (0, usePrevious_1.default)(threshold);
2360
2352
 
@@ -2362,7 +2354,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
2362
2354
  return isDownsamplingEnabled ? (0, dataUtils_1.downsampleDataSources)({
2363
2355
  dataSources: dataSources,
2364
2356
  threshold: threshold,
2365
- options: xAndYFieldsWithTypes
2357
+ options: downsampleDSOptions
2366
2358
  }) : dataSources;
2367
2359
  }),
2368
2360
  _ref3 = _slicedToArray(_ref2, 2),
@@ -2390,7 +2382,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
2390
2382
  return;
2391
2383
  }
2392
2384
 
2393
- if ((0, lodash_1.isEqual)(previousXAndYFieldsWithTypes, xAndYFieldsWithTypes) && previousDataSources === dataSources && previousThreshold === threshold) {
2385
+ if ((0, lodash_1.isEqual)(previousDownsampleDSOptions, downsampleDSOptions) && previousDataSources === dataSources && previousThreshold === threshold) {
2394
2386
  return;
2395
2387
  } // Debounce the downsampling so we don't have to downsample and execute DSL multiple times
2396
2388
  // while the viz is being resized
@@ -2398,17 +2390,17 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
2398
2390
 
2399
2391
  debouncedDownsampleDataSources({
2400
2392
  dataSources: dataSources,
2401
- options: xAndYFieldsWithTypes,
2393
+ options: downsampleDSOptions,
2402
2394
  threshold: threshold
2403
2395
  }); // need to detect if this runs as part of the initial render
2404
- }, [dataSources, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousXAndYFieldsWithTypes, previousDataSources, previousThreshold]);
2396
+ }, [dataSources, downsampleDSOptions, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousDataSources, previousThreshold, previousDownsampleDSOptions]);
2405
2397
  return downsampledDataSources;
2406
2398
  };
2407
2399
 
2408
2400
  exports.default = useDownsampleDataSources;
2409
2401
 
2410
2402
  /***/ }),
2411
- /* 122 */
2403
+ /* 121 */
2412
2404
  /***/ (function(module, exports, __webpack_require__) {
2413
2405
 
2414
2406
  "use strict";
@@ -2422,7 +2414,7 @@ Object.defineProperty(exports, "__esModule", {
2422
2414
 
2423
2415
  var react_1 = __webpack_require__(0);
2424
2416
 
2425
- var Options_1 = __webpack_require__(63);
2417
+ var Options_1 = __webpack_require__(62);
2426
2418
  /**
2427
2419
  * Hook that evaluates the DSL for subset of a viz's options needed to determine
2428
2420
  * its x and y fields as well as the types of all its fields.
@@ -2522,7 +2514,7 @@ var useGetXAndYFields = function useGetXAndYFields(_ref) {
2522
2514
  exports.default = useGetXAndYFields;
2523
2515
 
2524
2516
  /***/ }),
2525
- /* 123 */
2517
+ /* 122 */
2526
2518
  /***/ (function(module, exports, __webpack_require__) {
2527
2519
 
2528
2520
  "use strict";
@@ -2533,7 +2525,7 @@ Object.defineProperty(exports, "__esModule", {
2533
2525
  });
2534
2526
  exports.getFeatureFlag = void 0;
2535
2527
 
2536
- var FeatureFlags_1 = __webpack_require__(124);
2528
+ var FeatureFlags_1 = __webpack_require__(123);
2537
2529
 
2538
2530
  var getFeatureFlag = function getFeatureFlag(context, flagName) {
2539
2531
  // look for feature flag in context first
@@ -2557,7 +2549,7 @@ var getFeatureFlag = function getFeatureFlag(context, flagName) {
2557
2549
  exports.getFeatureFlag = getFeatureFlag;
2558
2550
 
2559
2551
  /***/ }),
2560
- /* 124 */
2552
+ /* 123 */
2561
2553
  /***/ (function(module, exports) {
2562
2554
 
2563
2555
  module.exports = require("@splunk/visualization-context/FeatureFlags");