@splunk/visualizations 26.0.0 → 26.1.1

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 (152) hide show
  1. package/Area.config.js +103 -19
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +646 -243
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +105 -21
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +653 -237
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +95 -21
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +635 -229
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +66 -15
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +589 -211
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +104 -19
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +666 -239
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +83 -18
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +444 -156
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +101 -19
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +792 -322
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +97 -28
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +786 -390
  32. package/FillerGauge.js.map +1 -1
  33. package/Image.config.js +63 -19
  34. package/Image.config.js.map +1 -1
  35. package/Image.js +439 -164
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +107 -23
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +841 -456
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +73 -23
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +653 -230
  44. package/LinkGraph.js.map +1 -1
  45. package/MIGRATION.md +1082 -0
  46. package/Map.config.js +244 -99
  47. package/Map.config.js.map +1 -1
  48. package/Map.js +1223 -612
  49. package/Map.js.map +1 -1
  50. package/Markdown.config.js +71 -21
  51. package/Markdown.config.js.map +1 -1
  52. package/Markdown.js +477 -202
  53. package/Markdown.js.map +1 -1
  54. package/MarkerGauge.config.js +80 -22
  55. package/MarkerGauge.config.js.map +1 -1
  56. package/MarkerGauge.js +819 -418
  57. package/MarkerGauge.js.map +1 -1
  58. package/ParallelCoordinates.config.js +73 -19
  59. package/ParallelCoordinates.config.js.map +1 -1
  60. package/ParallelCoordinates.js +870 -491
  61. package/ParallelCoordinates.js.map +1 -1
  62. package/Pie.config.js +76 -23
  63. package/Pie.config.js.map +1 -1
  64. package/Pie.js +643 -233
  65. package/Pie.js.map +1 -1
  66. package/Punchcard.config.js +82 -30
  67. package/Punchcard.config.js.map +1 -1
  68. package/Punchcard.js +863 -387
  69. package/Punchcard.js.map +1 -1
  70. package/Rectangle.config.js +86 -20
  71. package/Rectangle.config.js.map +1 -1
  72. package/Rectangle.js +449 -159
  73. package/Rectangle.js.map +1 -1
  74. package/Sankey.config.js +85 -23
  75. package/Sankey.config.js.map +1 -1
  76. package/Sankey.js +895 -349
  77. package/Sankey.js.map +1 -1
  78. package/Scatter.config.js +97 -23
  79. package/Scatter.config.js.map +1 -1
  80. package/Scatter.js +639 -234
  81. package/Scatter.js.map +1 -1
  82. package/SingleValue.config.js +95 -25
  83. package/SingleValue.config.js.map +1 -1
  84. package/SingleValue.js +1198 -656
  85. package/SingleValue.js.map +1 -1
  86. package/SingleValueBasic.js +287 -226
  87. package/SingleValueBasic.js.map +1 -1
  88. package/SingleValueIcon.config.js +93 -23
  89. package/SingleValueIcon.config.js.map +1 -1
  90. package/SingleValueIcon.js +991 -522
  91. package/SingleValueIcon.js.map +1 -1
  92. package/SingleValueRadial.config.js +100 -27
  93. package/SingleValueRadial.config.js.map +1 -1
  94. package/SingleValueRadial.js +1185 -624
  95. package/SingleValueRadial.js.map +1 -1
  96. package/SparkLine.js +127 -68
  97. package/SparkLine.js.map +1 -1
  98. package/Table.config.js +74 -21
  99. package/Table.config.js.map +1 -1
  100. package/Table.js +827 -329
  101. package/Table.js.map +1 -1
  102. package/common/Charting.js +152 -69
  103. package/common/Charting.js.map +1 -1
  104. package/common/ChartingApi.js +25 -14
  105. package/common/ChartingApi.js.map +1 -1
  106. package/common/DocExampleWithVizSandbox.js +530 -0
  107. package/common/DocExampleWithVizSandbox.js.map +1 -0
  108. package/common/EventsDoc.js +139 -104
  109. package/common/EventsDoc.js.map +1 -1
  110. package/common/GaugeMajorTicks.js +79 -69
  111. package/common/GaugeMajorTicks.js.map +1 -1
  112. package/common/GaugeValueMarker.js +54 -45
  113. package/common/GaugeValueMarker.js.map +1 -1
  114. package/common/OptionsDoc.js +178 -87
  115. package/common/OptionsDoc.js.map +1 -1
  116. package/common/OverviewDoc.js +530 -68
  117. package/common/OverviewDoc.js.map +1 -1
  118. package/common/SplunkVisualization.js +47 -20
  119. package/common/SplunkVisualization.js.map +1 -1
  120. package/common/SplunkVisualizationApi.js +15 -9
  121. package/common/SplunkVisualizationApi.js.map +1 -1
  122. package/common/ThemesDoc.js +57 -44
  123. package/common/ThemesDoc.js.map +1 -1
  124. package/common/chartingUtils.js +52 -20
  125. package/common/chartingUtils.js.map +1 -1
  126. package/common/docUtils.js +139 -7
  127. package/common/docUtils.js.map +1 -1
  128. package/common/gaugeUtils.js +185 -102
  129. package/common/gaugeUtils.js.map +1 -1
  130. package/common/shapeUtils.js +28 -16
  131. package/common/shapeUtils.js.map +1 -1
  132. package/common/utils/configUtils.js +50 -15
  133. package/common/utils/configUtils.js.map +1 -1
  134. package/common/utils/dataUtils.js +8 -3
  135. package/common/utils/dataUtils.js.map +1 -1
  136. package/common/utils/hocUtils.js +4 -2
  137. package/common/utils/hocUtils.js.map +1 -1
  138. package/common/utils/layoutUtils.js +2 -1
  139. package/common/utils/layoutUtils.js.map +1 -1
  140. package/common/utils/mapUtils.js +288 -128
  141. package/common/utils/mapUtils.js.map +1 -1
  142. package/common/utils/singleValueUtils.js +242 -197
  143. package/common/utils/singleValueUtils.js.map +1 -1
  144. package/common/utils/testHelper.js +10 -1
  145. package/common/utils/testHelper.js.map +1 -1
  146. package/common/utils/trellisUtils.js +62 -1
  147. package/common/utils/trellisUtils.js.map +1 -1
  148. package/common/utils/urlUtils.js +3 -1
  149. package/common/utils/urlUtils.js.map +1 -1
  150. package/common/withDashboardViz.js +389 -192
  151. package/common/withDashboardViz.js.map +1 -1
  152. package/package.json +18 -26
package/Bar.config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright © 2018 Splunk Inc.
2
+ * Copyright © 2024 Splunk Inc.
3
3
  * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
4
  * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
5
  */
@@ -114,6 +114,7 @@ Object.defineProperty(exports, "__esModule", {
114
114
  });
115
115
  exports.VizBehavior = void 0;
116
116
  var VizBehavior;
117
+
117
118
  (function (VizBehavior) {
118
119
  /**
119
120
  * Dynamic Options Behavior.
@@ -133,6 +134,7 @@ var VizBehavior;
133
134
  * missing.
134
135
  * @type {string}
135
136
  */
137
+
136
138
  VizBehavior["PLACEHOLDER"] = "placeholder";
137
139
  VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
138
140
  VizBehavior["TRELLIS"] = "trellis";
@@ -152,24 +154,33 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
152
154
 
153
155
 
154
156
  var _toConsumableArray = __webpack_require__(1);
157
+
155
158
  var _defineProperty = __webpack_require__(7);
159
+
156
160
  var __rest = this && this.__rest || function (s, e) {
157
161
  var t = {};
162
+
158
163
  for (var p in s) {
159
164
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
160
165
  }
166
+
161
167
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
162
168
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
163
169
  }
164
170
  return t;
165
171
  };
172
+
166
173
  Object.defineProperty(exports, "__esModule", {
167
174
  value: true
168
175
  });
169
176
  exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
177
+
170
178
  var lodash_1 = __webpack_require__(6);
179
+
171
180
  var schemaUtils_1 = __webpack_require__(3);
181
+
172
182
  var VizBehavior_1 = __webpack_require__(2);
183
+
173
184
  var dynamicOptionsDSLType = {
174
185
  type: 'string',
175
186
  pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
@@ -179,20 +190,22 @@ var dynamicOptionsDSLType = {
179
190
  * @param optionsSchema a visualization's options schema
180
191
  * @returns an updated options schema that additionally allows strings starting with > for each option
181
192
  */
193
+
182
194
  function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
183
195
  var enhancedOptionsSchema = {};
184
196
  Object.keys(optionsSchema).forEach(function (key) {
185
197
  var _a = optionsSchema[key],
186
- title = _a.title,
187
- description = _a.description,
188
- readOnly = _a.readOnly,
189
- writeOnly = _a.writeOnly,
190
- examples = _a.examples,
191
- defaultValue = _a.default,
192
- type = _a.type,
193
- properties = _a.properties,
194
- patternProperties = _a.patternProperties,
195
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
198
+ title = _a.title,
199
+ description = _a.description,
200
+ readOnly = _a.readOnly,
201
+ writeOnly = _a.writeOnly,
202
+ examples = _a.examples,
203
+ defaultValue = _a.default,
204
+ type = _a.type,
205
+ properties = _a.properties,
206
+ patternProperties = _a.patternProperties,
207
+ remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
208
+
196
209
  var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
197
210
  title: title
198
211
  }), description !== undefined && {
@@ -206,12 +219,14 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
206
219
  }), defaultValue !== undefined && {
207
220
  default: defaultValue
208
221
  });
222
+
209
223
  if (type === 'object') {
210
224
  enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
211
225
  type: type
212
226
  }), properties && {
213
227
  properties: enhanceOptionsSchemaWithDynamicOptions(properties)
214
228
  });
229
+
215
230
  if (patternProperties) {
216
231
  var enhancedPatternProperties = {};
217
232
  Object.keys(patternProperties).forEach(function (opt) {
@@ -229,6 +244,7 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
229
244
  });
230
245
  return enhancedOptionsSchema;
231
246
  }
247
+
232
248
  exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
233
249
  /**
234
250
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
@@ -237,11 +253,14 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
237
253
  * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
238
254
  * and containing `open: false` for all editor panels in editorConfig
239
255
  */
256
+
240
257
  function enhanceConfig(vizConfig) {
241
258
  var enhancedConfig = Object.assign({}, vizConfig);
259
+
242
260
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
243
261
  enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
244
262
  }
263
+
245
264
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
246
265
  return Object.assign(Object.assign({}, config), {
247
266
  open: config.open || false
@@ -249,6 +268,7 @@ function enhanceConfig(vizConfig) {
249
268
  });
250
269
  return enhancedConfig;
251
270
  }
271
+
252
272
  exports.enhanceConfig = enhanceConfig;
253
273
  /**
254
274
  * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
@@ -256,6 +276,7 @@ exports.enhanceConfig = enhanceConfig;
256
276
  * @param vizConfig a Visualization Config
257
277
  * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
258
278
  */
279
+
259
280
  function uncollapseEditorConfig(vizConfig) {
260
281
  var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
261
282
  editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
@@ -265,13 +286,16 @@ function uncollapseEditorConfig(vizConfig) {
265
286
  });
266
287
  return editorPanelUncollapsedConfig;
267
288
  }
289
+
268
290
  exports.uncollapseEditorConfig = uncollapseEditorConfig;
291
+
269
292
  function isDynamicOption(option) {
270
293
  return option && typeof option === 'string' && option.trim().startsWith('>') || false;
271
294
  }
272
- exports.isDynamicOption = isDynamicOption;
273
- // private helpers to improve readability of getInitialPreset
295
+
296
+ exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
274
297
  // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
298
+
275
299
  /**
276
300
  * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
277
301
  * if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset
@@ -280,6 +304,7 @@ exports.isDynamicOption = isDynamicOption;
280
304
  *
281
305
  * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
282
306
  */
307
+
283
308
  function hasCompatibleContexts(vizContext, presetContext) {
284
309
  var presetContextKeys = Object.keys(presetContext);
285
310
  return presetContextKeys.every(function (contextKey) {
@@ -289,6 +314,8 @@ function hasCompatibleContexts(vizContext, presetContext) {
289
314
  /**
290
315
  * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
291
316
  */
317
+
318
+
292
319
  function hasCompatibleOptions(vizOptions, presetOptions) {
293
320
  var presetOptionKeys = Object.keys(presetOptions);
294
321
  return presetOptionKeys.every(function (optionKey) {
@@ -303,18 +330,21 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
303
330
  * @param {Object} vizOptions - the current vizOptions definition
304
331
  * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
305
332
  */
333
+
334
+
306
335
  function getInitialPreset(vizContext, vizOptions, presets) {
307
336
  return presets.find(function (preset) {
308
337
  var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
309
338
  var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
310
339
  var presetContextKeys = Object.keys(presetContext);
311
- var presetOptionKeys = Object.keys(presetOptions);
312
- // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
340
+ var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
313
341
  // if not, then the preset is invalid in config.ts
342
+
314
343
  if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
315
344
  return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
316
345
  });
317
346
  }
347
+
318
348
  exports.getInitialPreset = getInitialPreset;
319
349
  /**
320
350
  * generates number precision values for a Select editor
@@ -322,6 +352,7 @@ exports.getInitialPreset = getInitialPreset;
322
352
  * @param {Number} numPrecisionValues - number of integer precision values to generate
323
353
  * @returns {{ label: string; value; string }[]} array of { label, value } tuples
324
354
  */
355
+
325
356
  function generatePrecisionValues(numPrecisionValues) {
326
357
  return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
327
358
  return {
@@ -330,6 +361,7 @@ function generatePrecisionValues(numPrecisionValues) {
330
361
  };
331
362
  });
332
363
  }
364
+
333
365
  exports.generatePrecisionValues = generatePrecisionValues;
334
366
  /**
335
367
  * insert layout in layout array, return a new layout array instead of updating the original
@@ -339,12 +371,15 @@ exports.generatePrecisionValues = generatePrecisionValues;
339
371
  * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
340
372
  * @returns {EditorLayoutConfig[][]} new editor layout with insertion
341
373
  */
374
+
342
375
  var insertLayout = function insertLayout(layout, index) {
343
376
  for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
344
377
  layoutItems[_key - 2] = arguments[_key];
345
378
  }
379
+
346
380
  return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
347
381
  };
382
+
348
383
  exports.insertLayout = insertLayout;
349
384
 
350
385
  /***/ }),
@@ -372,6 +407,7 @@ Object.defineProperty(exports, "__esModule", {
372
407
  });
373
408
  exports.VizCategory = void 0;
374
409
  var VizCategory;
410
+
375
411
  (function (VizCategory) {
376
412
  VizCategory["SINGLE_VALUE"] = "Single Value";
377
413
  VizCategory["TRENDS"] = "Trends";
@@ -421,11 +457,13 @@ module.exports = require("@splunk/visualization-icons");
421
457
  Object.defineProperty(exports, "__esModule", {
422
458
  value: true
423
459
  });
460
+
424
461
  var i18n_1 = __webpack_require__(0);
462
+
425
463
  var background = function background(_ref) {
426
464
  var label = _ref.label,
427
- themes = _ref.themes,
428
- labelPosition = _ref.labelPosition;
465
+ themes = _ref.themes,
466
+ labelPosition = _ref.labelPosition;
429
467
  return [{
430
468
  label: (0, i18n_1._)(label || 'Background'),
431
469
  option: 'backgroundColor',
@@ -436,6 +474,7 @@ var background = function background(_ref) {
436
474
  }
437
475
  }];
438
476
  };
477
+
439
478
  exports.default = background;
440
479
 
441
480
  /***/ }),
@@ -453,12 +492,16 @@ module.exports = require("@splunk/visualization-color-palettes");
453
492
 
454
493
 
455
494
  var _toConsumableArray = __webpack_require__(1);
495
+
456
496
  Object.defineProperty(exports, "__esModule", {
457
497
  value: true
458
498
  });
459
499
  exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble = exports.AxesChartDataConfigScatter = exports.AxesChartDataConfigBar = void 0;
500
+
460
501
  var i18n_1 = __webpack_require__(0);
502
+
461
503
  var configUtils_1 = __webpack_require__(4);
504
+
462
505
  var AxesChartDataConfig = {
463
506
  label: (0, i18n_1._)('Data configurations'),
464
507
  layout: [[{
@@ -591,10 +634,15 @@ exports.default = AxesChartDataConfig;
591
634
  Object.defineProperty(exports, "__esModule", {
592
635
  value: true
593
636
  });
637
+
594
638
  var i18n_1 = __webpack_require__(0);
639
+
595
640
  var pick_1 = __webpack_require__(9);
641
+
596
642
  var variables_1 = __webpack_require__(10);
643
+
597
644
  var BackgroundColor_1 = __webpack_require__(13);
645
+
598
646
  var themes = {
599
647
  defaultBackgroundColor: function defaultBackgroundColor(props) {
600
648
  return (0, pick_1.default)({
@@ -632,7 +680,9 @@ exports.default = AxesChartColorAndStyle;
632
680
  Object.defineProperty(exports, "__esModule", {
633
681
  value: true
634
682
  });
683
+
635
684
  var i18n_1 = __webpack_require__(0);
685
+
636
686
  var AxesChartLegend = {
637
687
  label: (0, i18n_1._)('Legend'),
638
688
  layout: [[{
@@ -692,12 +742,16 @@ exports.default = AxesChartLegend;
692
742
 
693
743
 
694
744
  var _toConsumableArray = __webpack_require__(1);
745
+
695
746
  Object.defineProperty(exports, "__esModule", {
696
747
  value: true
697
748
  });
698
749
  exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCommon = void 0;
750
+
699
751
  var i18n_1 = __webpack_require__(0);
752
+
700
753
  var configUtils_1 = __webpack_require__(4);
754
+
701
755
  exports.AxesChartXGridAndLabelsCommon = {
702
756
  label: (0, i18n_1._)('X-axis grid and labels'),
703
757
  layout: [[{
@@ -886,8 +940,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
886
940
  label: (0, i18n_1._)('Axis line visibility'),
887
941
  option: 'xAxisLineVisibility',
888
942
  editor: 'editor.checkbox'
889
- }],
890
- // this option is disabled for bubble and scatter
943
+ }], // this option is disabled for bubble and scatter
891
944
  // [
892
945
  // {
893
946
  // label: _('Major gridlines'),
@@ -979,7 +1032,9 @@ exports.default = AxesChartXGridAndLabels;
979
1032
  Object.defineProperty(exports, "__esModule", {
980
1033
  value: true
981
1034
  });
1035
+
982
1036
  var i18n_1 = __webpack_require__(0);
1037
+
983
1038
  var AxesChartYGridAndLabels = {
984
1039
  label: (0, i18n_1._)('Y-axis grid and labels'),
985
1040
  layout: [[{
@@ -1139,13 +1194,18 @@ exports.default = AxesChartYGridAndLabels;
1139
1194
 
1140
1195
 
1141
1196
  var _toConsumableArray = __webpack_require__(1);
1197
+
1142
1198
  Object.defineProperty(exports, "__esModule", {
1143
1199
  value: true
1144
1200
  });
1145
1201
  exports.AxesChartDataDisplayColumn = exports.AxesChartDataDisplayBar = exports.AxesChartDataDisplayLine = void 0;
1202
+
1146
1203
  var i18n_1 = __webpack_require__(0);
1204
+
1147
1205
  var lodash_1 = __webpack_require__(6);
1206
+
1148
1207
  var configUtils_1 = __webpack_require__(4);
1208
+
1149
1209
  exports.AxesChartDataDisplayLine = {
1150
1210
  label: (0, i18n_1._)('Data display'),
1151
1211
  layout: [[{
@@ -1274,7 +1334,9 @@ exports.default = AxesChartDataDisplay;
1274
1334
  Object.defineProperty(exports, "__esModule", {
1275
1335
  value: true
1276
1336
  });
1337
+
1277
1338
  var i18n_1 = __webpack_require__(0);
1339
+
1278
1340
  var axesChartY2GridAndLabels = {
1279
1341
  label: (0, i18n_1._)('Y2-axis grid and labels'),
1280
1342
  layout: [[{
@@ -1462,34 +1524,53 @@ exports.default = axesChartY2GridAndLabels;
1462
1524
 
1463
1525
 
1464
1526
  var _toConsumableArray = __webpack_require__(1);
1527
+
1465
1528
  Object.defineProperty(exports, "__esModule", {
1466
1529
  value: true
1467
1530
  });
1531
+
1468
1532
  var visualization_icons_1 = __webpack_require__(12);
1533
+
1469
1534
  var placeholders_1 = __webpack_require__(11);
1535
+
1470
1536
  var schemaUtils_1 = __webpack_require__(3);
1537
+
1471
1538
  var visualization_color_palettes_1 = __webpack_require__(14);
1539
+
1472
1540
  var i18n_1 = __webpack_require__(0);
1541
+
1473
1542
  var pick_1 = __webpack_require__(9);
1543
+
1474
1544
  var variables_1 = __webpack_require__(10);
1545
+
1475
1546
  var lodash_1 = __webpack_require__(6);
1547
+
1476
1548
  var AxesChartDataConfig_1 = __webpack_require__(16);
1549
+
1477
1550
  var AxesChartDataDisplay_1 = __webpack_require__(23);
1551
+
1478
1552
  var AxesChartXGridAndLabels_1 = __webpack_require__(19);
1553
+
1479
1554
  var AxesChartColorAndStyle_1 = __webpack_require__(17);
1555
+
1480
1556
  var AxesChartLegend_1 = __webpack_require__(18);
1557
+
1481
1558
  var AxesChartYGridAndLabels_1 = __webpack_require__(20);
1559
+
1482
1560
  var AxesChartY2GridAndLabels_1 = __webpack_require__(24);
1561
+
1483
1562
  var VizBehavior_1 = __webpack_require__(2);
1563
+
1484
1564
  var VizCategory_1 = __webpack_require__(8);
1565
+
1485
1566
  var configUtils_1 = __webpack_require__(4);
1567
+
1486
1568
  var dataContract = {
1487
1569
  requiredDataSources: [{
1488
1570
  name: 'primary',
1489
1571
  description: 'DataSource that powers the visualization'
1490
1572
  }],
1491
- optionalDataSources: [
1492
- // Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
1573
+ optionalDataSources: [// Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
1493
1574
  // {
1494
1575
  // name: 'annotation',
1495
1576
  // description: 'DataSource that populates event annotations',
@@ -1989,16 +2070,19 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
1989
2070
  /**
1990
2071
  * visualization configuration
1991
2072
  */
2073
+
1992
2074
  var config = {
1993
2075
  /**
1994
2076
  * unique viz key
1995
2077
  */
1996
2078
  key: 'splunk.bar',
2079
+
1997
2080
  /**
1998
2081
  * viz name
1999
2082
  */
2000
2083
  name: (0, i18n_1._)('Bar'),
2001
2084
  category: VizCategory_1.VizCategory.COMPARISONS,
2085
+
2002
2086
  /**
2003
2087
  * viz icon
2004
2088
  */