@splunk/visualizations 26.2.0 → 26.3.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 (149) hide show
  1. package/Area.config.js +91 -594
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +184 -689
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +92 -561
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +184 -655
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +83 -482
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +177 -578
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +76 -201
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +173 -301
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +92 -599
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +184 -693
  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 +137 -262
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +61 -282
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +222 -428
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +90 -219
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +163 -299
  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 +130 -242
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +91 -606
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +184 -701
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +74 -256
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +17198 -24224
  44. package/LinkGraph.js.map +1 -1
  45. package/Map.config.js +128 -1123
  46. package/Map.config.js.map +1 -1
  47. package/Map.js +309 -680
  48. package/Map.js.map +1 -1
  49. package/Markdown.config.js +61 -188
  50. package/Markdown.config.js.map +1 -1
  51. package/Markdown.js +190 -323
  52. package/Markdown.js.map +1 -1
  53. package/MarkerGauge.config.js +137 -297
  54. package/MarkerGauge.config.js.map +1 -1
  55. package/MarkerGauge.js +1038 -1203
  56. package/MarkerGauge.js.map +1 -1
  57. package/ParallelCoordinates.config.js +71 -191
  58. package/ParallelCoordinates.config.js.map +1 -1
  59. package/ParallelCoordinates.js +218 -343
  60. package/ParallelCoordinates.js.map +1 -1
  61. package/Pie.config.js +72 -240
  62. package/Pie.config.js.map +1 -1
  63. package/Pie.js +214 -381
  64. package/Pie.js.map +1 -1
  65. package/Punchcard.config.js +71 -305
  66. package/Punchcard.config.js.map +1 -1
  67. package/Punchcard.js +246 -477
  68. package/Punchcard.js.map +1 -1
  69. package/Rectangle.config.js +211 -347
  70. package/Rectangle.config.js.map +1 -1
  71. package/Rectangle.js +274 -416
  72. package/Rectangle.js.map +1 -1
  73. package/Sankey.config.js +71 -213
  74. package/Sankey.config.js.map +1 -1
  75. package/Sankey.js +246 -382
  76. package/Sankey.js.map +1 -1
  77. package/Scatter.config.js +85 -463
  78. package/Scatter.config.js.map +1 -1
  79. package/Scatter.js +825 -1202
  80. package/Scatter.js.map +1 -1
  81. package/SingleValue.config.js +114 -409
  82. package/SingleValue.config.js.map +1 -1
  83. package/SingleValue.js +287 -582
  84. package/SingleValue.js.map +1 -1
  85. package/SingleValueBasic.js +30 -30
  86. package/SingleValueBasic.js.map +1 -1
  87. package/SingleValueIcon.config.js +113 -378
  88. package/SingleValueIcon.config.js.map +1 -1
  89. package/SingleValueIcon.js +268 -533
  90. package/SingleValueIcon.js.map +1 -1
  91. package/SingleValueRadial.config.js +110 -382
  92. package/SingleValueRadial.config.js.map +1 -1
  93. package/SingleValueRadial.js +272 -543
  94. package/SingleValueRadial.js.map +1 -1
  95. package/SparkLine.js +24 -24
  96. package/SparkLine.js.map +1 -1
  97. package/Table.config.js +74 -496
  98. package/Table.config.js.map +1 -1
  99. package/Table.js +302 -720
  100. package/Table.js.map +1 -1
  101. package/common/Charting.js +22 -34
  102. package/common/Charting.js.map +1 -1
  103. package/common/DocExampleWithVizSandbox.js +21 -21
  104. package/common/DocExampleWithVizSandbox.js.map +1 -1
  105. package/common/EventsDoc.js +18 -18
  106. package/common/EventsDoc.js.map +1 -1
  107. package/common/GaugeMajorTicks.js +4 -4
  108. package/common/GaugeMajorTicks.js.map +1 -1
  109. package/common/GaugeValueMarker.js +2 -2
  110. package/common/GaugeValueMarker.js.map +1 -1
  111. package/common/OptionsDoc.js +4 -4
  112. package/common/OptionsDoc.js.map +1 -1
  113. package/common/OverviewDoc.js +39 -40
  114. package/common/OverviewDoc.js.map +1 -1
  115. package/common/SplunkVisualization.js +2 -2
  116. package/common/SplunkVisualization.js.map +1 -1
  117. package/common/SplunkVisualizationApi.js +2 -2
  118. package/common/SplunkVisualizationApi.js.map +1 -1
  119. package/common/ThemesDoc.js +19 -19
  120. package/common/ThemesDoc.js.map +1 -1
  121. package/common/chartingUtils.js +2 -2
  122. package/common/chartingUtils.js.map +1 -1
  123. package/common/gaugeUtils.js +10 -10
  124. package/common/gaugeUtils.js.map +1 -1
  125. package/common/shapeUtils.js +10 -10
  126. package/common/shapeUtils.js.map +1 -1
  127. package/common/utils/configUtils.js +25 -155
  128. package/common/utils/configUtils.js.map +1 -1
  129. package/common/utils/dataUtils.js +75 -87
  130. package/common/utils/dataUtils.js.map +1 -1
  131. package/common/utils/featureFlagUtils.js +4 -4
  132. package/common/utils/featureFlagUtils.js.map +1 -1
  133. package/common/utils/hocUtils.js +2 -2
  134. package/common/utils/hocUtils.js.map +1 -1
  135. package/common/utils/mapUtils.js +51 -54
  136. package/common/utils/mapUtils.js.map +1 -1
  137. package/common/utils/singleValueUtils.js +7 -7
  138. package/common/utils/singleValueUtils.js.map +1 -1
  139. package/common/utils/testHelper.js +7 -36
  140. package/common/utils/testHelper.js.map +1 -1
  141. package/common/utils/trellisUtils.js +7 -6
  142. package/common/utils/trellisUtils.js.map +1 -1
  143. package/common/utils/urlUtils.js +2 -2
  144. package/common/utils/urlUtils.js.map +1 -1
  145. package/common/withDashboardViz.js +65 -77
  146. package/common/withDashboardViz.js.map +1 -1
  147. package/package.json +46 -49
  148. package/common/utils/layoutUtils.js +0 -115
  149. package/common/utils/layoutUtils.js.map +0 -1
package/Bubble.config.js CHANGED
@@ -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 = 44);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 41);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -104,51 +104,12 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
104
104
 
105
105
  /***/ }),
106
106
  /* 2 */
107
- /***/ (function(module, exports, __webpack_require__) {
108
-
109
- "use strict";
110
-
111
-
112
- Object.defineProperty(exports, "__esModule", {
113
- value: true
114
- });
115
- exports.VizBehavior = void 0;
116
- var VizBehavior;
117
-
118
- (function (VizBehavior) {
119
- /**
120
- * Dynamic Options Behavior.
121
- * This allows visualization options to be powered by data
122
- *
123
- * **Example**
124
- *
125
- * sparklineValues: ">primary|seriesByIndex(0)"
126
- * would configure sparklineValues with an array of data points
127
- * coming from the first series in the primary datasource
128
- *
129
- */
130
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
131
- VizBehavior["EVENTS"] = "events";
132
- VizBehavior["DOWNSAMPLING"] = "downsampling";
133
- /**
134
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
135
- * missing.
136
- * @type {string}
137
- */
138
-
139
- VizBehavior["PLACEHOLDER"] = "placeholder";
140
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
141
- VizBehavior["TRELLIS"] = "trellis";
142
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
143
-
144
- /***/ }),
145
- /* 3 */
146
107
  /***/ (function(module, exports) {
147
108
 
148
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
109
+ module.exports = require("@splunk/visualization-schemas");
149
110
 
150
111
  /***/ }),
151
- /* 4 */
112
+ /* 3 */
152
113
  /***/ (function(module, exports, __webpack_require__) {
153
114
 
154
115
  "use strict";
@@ -156,97 +117,22 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
156
117
 
157
118
  var _toConsumableArray = __webpack_require__(1);
158
119
 
159
- var _defineProperty = __webpack_require__(7);
160
-
161
- var __rest = this && this.__rest || function (s, e) {
162
- var t = {};
163
-
164
- for (var p in s) {
165
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
166
- }
167
-
168
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
169
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
170
- }
171
- return t;
172
- };
173
-
174
120
  Object.defineProperty(exports, "__esModule", {
175
121
  value: true
176
122
  });
177
- exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
178
-
179
- var lodash_1 = __webpack_require__(6);
180
-
181
- var schemaUtils_1 = __webpack_require__(3);
123
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
182
124
 
183
- var VizBehavior_1 = __webpack_require__(2);
184
-
185
- var dynamicOptionsDSLType = {
186
- type: 'string',
187
- pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
188
- };
189
- /**
190
- * Helper function to extend an options schema with dynamic options DSL
191
- * @param optionsSchema a visualization's options schema
192
- * @returns an updated options schema that additionally allows strings starting with > for each option
193
- */
125
+ var lodash_1 = __webpack_require__(5); // included for backwards compatibility
194
126
 
195
- function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
196
- var enhancedOptionsSchema = {};
197
- Object.keys(optionsSchema).forEach(function (key) {
198
- var _a = optionsSchema[key],
199
- title = _a.title,
200
- description = _a.description,
201
- readOnly = _a.readOnly,
202
- writeOnly = _a.writeOnly,
203
- examples = _a.examples,
204
- defaultValue = _a.default,
205
- type = _a.type,
206
- properties = _a.properties,
207
- patternProperties = _a.patternProperties,
208
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
209
-
210
- var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
211
- title: title
212
- }), description !== undefined && {
213
- description: description
214
- }), readOnly !== undefined && {
215
- readOnly: readOnly
216
- }), writeOnly !== undefined && {
217
- writeOnly: writeOnly
218
- }), examples !== undefined && {
219
- examples: examples
220
- }), defaultValue !== undefined && {
221
- default: defaultValue
222
- });
223
127
 
224
- if (type === 'object') {
225
- enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
226
- type: type
227
- }), properties && {
228
- properties: enhanceOptionsSchemaWithDynamicOptions(properties)
229
- });
230
-
231
- if (patternProperties) {
232
- var enhancedPatternProperties = {};
233
- Object.keys(patternProperties).forEach(function (opt) {
234
- enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
235
- });
236
- enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
237
- }
238
- } else {
239
- enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
240
- anyOf: [Object.assign(Object.assign({}, type !== undefined && {
241
- type: type
242
- }), remainingSchemaEntry), dynamicOptionsDSLType]
243
- });
244
- }
245
- });
246
- return enhancedOptionsSchema;
247
- }
128
+ var visualization_schemas_1 = __webpack_require__(2);
248
129
 
249
- exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
130
+ Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
131
+ enumerable: true,
132
+ get: function get() {
133
+ return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
134
+ }
135
+ });
250
136
  /**
251
137
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
252
138
  * this function also collapse all editor panels
@@ -257,11 +143,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
257
143
 
258
144
  function enhanceConfig(vizConfig) {
259
145
  var enhancedConfig = Object.assign({}, vizConfig);
260
-
261
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
262
- enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
263
- }
264
-
265
146
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
266
147
  return Object.assign(Object.assign({}, config), {
267
148
  open: config.open || false
@@ -384,20 +265,53 @@ var insertLayout = function insertLayout(layout, index) {
384
265
  exports.insertLayout = insertLayout;
385
266
 
386
267
  /***/ }),
387
- /* 5 */,
388
- /* 6 */
268
+ /* 4 */,
269
+ /* 5 */
389
270
  /***/ (function(module, exports) {
390
271
 
391
272
  module.exports = require("lodash");
392
273
 
393
274
  /***/ }),
394
- /* 7 */
395
- /***/ (function(module, exports) {
275
+ /* 6 */
276
+ /***/ (function(module, exports, __webpack_require__) {
277
+
278
+ "use strict";
396
279
 
397
- module.exports = require("@babel/runtime/helpers/defineProperty");
280
+
281
+ Object.defineProperty(exports, "__esModule", {
282
+ value: true
283
+ });
284
+ exports.VizBehavior = void 0;
285
+ var VizBehavior;
286
+
287
+ (function (VizBehavior) {
288
+ /**
289
+ * Dynamic Options Behavior.
290
+ * This allows visualization options to be powered by data
291
+ *
292
+ * **Example**
293
+ *
294
+ * sparklineValues: ">primary|seriesByIndex(0)"
295
+ * would configure sparklineValues with an array of data points
296
+ * coming from the first series in the primary datasource
297
+ *
298
+ */
299
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
300
+ VizBehavior["EVENTS"] = "events";
301
+ VizBehavior["DOWNSAMPLING"] = "downsampling";
302
+ /**
303
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
304
+ * missing.
305
+ * @type {string}
306
+ */
307
+
308
+ VizBehavior["PLACEHOLDER"] = "placeholder";
309
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
310
+ VizBehavior["TRELLIS"] = "trellis";
311
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
398
312
 
399
313
  /***/ }),
400
- /* 8 */
314
+ /* 7 */
401
315
  /***/ (function(module, exports, __webpack_require__) {
402
316
 
403
317
  "use strict";
@@ -425,31 +339,31 @@ var VizCategory;
425
339
  })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
426
340
 
427
341
  /***/ }),
428
- /* 9 */
342
+ /* 8 */
429
343
  /***/ (function(module, exports) {
430
344
 
431
345
  module.exports = require("@splunk/themes/pick");
432
346
 
433
347
  /***/ }),
434
- /* 10 */
348
+ /* 9 */
435
349
  /***/ (function(module, exports) {
436
350
 
437
351
  module.exports = require("@splunk/themes/variables");
438
352
 
439
353
  /***/ }),
440
- /* 11 */
354
+ /* 10 */
441
355
  /***/ (function(module, exports) {
442
356
 
443
357
  module.exports = require("@splunk/visualization-icons/placeholders");
444
358
 
445
359
  /***/ }),
446
- /* 12 */
360
+ /* 11 */
447
361
  /***/ (function(module, exports) {
448
362
 
449
363
  module.exports = require("@splunk/visualization-icons");
450
364
 
451
365
  /***/ }),
452
- /* 13 */
366
+ /* 12 */
453
367
  /***/ (function(module, exports, __webpack_require__) {
454
368
 
455
369
  "use strict";
@@ -479,14 +393,8 @@ var background = function background(_ref) {
479
393
  exports.default = background;
480
394
 
481
395
  /***/ }),
396
+ /* 13 */,
482
397
  /* 14 */
483
- /***/ (function(module, exports) {
484
-
485
- module.exports = require("@splunk/visualization-color-palettes");
486
-
487
- /***/ }),
488
- /* 15 */,
489
- /* 16 */
490
398
  /***/ (function(module, exports, __webpack_require__) {
491
399
 
492
400
  "use strict";
@@ -501,7 +409,7 @@ exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble =
501
409
 
502
410
  var i18n_1 = __webpack_require__(0);
503
411
 
504
- var configUtils_1 = __webpack_require__(4);
412
+ var configUtils_1 = __webpack_require__(3);
505
413
 
506
414
  var AxesChartDataConfig = {
507
415
  label: (0, i18n_1._)('Data configurations'),
@@ -626,7 +534,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
626
534
  exports.default = AxesChartDataConfig;
627
535
 
628
536
  /***/ }),
629
- /* 17 */
537
+ /* 15 */
630
538
  /***/ (function(module, exports, __webpack_require__) {
631
539
 
632
540
  "use strict";
@@ -638,11 +546,11 @@ Object.defineProperty(exports, "__esModule", {
638
546
 
639
547
  var i18n_1 = __webpack_require__(0);
640
548
 
641
- var pick_1 = __webpack_require__(9);
549
+ var pick_1 = __webpack_require__(8);
642
550
 
643
- var variables_1 = __webpack_require__(10);
551
+ var variables_1 = __webpack_require__(9);
644
552
 
645
- var BackgroundColor_1 = __webpack_require__(13);
553
+ var BackgroundColor_1 = __webpack_require__(12);
646
554
 
647
555
  var themes = {
648
556
  defaultBackgroundColor: function defaultBackgroundColor(props) {
@@ -672,7 +580,7 @@ var AxesChartColorAndStyle = {
672
580
  exports.default = AxesChartColorAndStyle;
673
581
 
674
582
  /***/ }),
675
- /* 18 */
583
+ /* 16 */
676
584
  /***/ (function(module, exports, __webpack_require__) {
677
585
 
678
586
  "use strict";
@@ -736,7 +644,7 @@ var AxesChartLegend = {
736
644
  exports.default = AxesChartLegend;
737
645
 
738
646
  /***/ }),
739
- /* 19 */
647
+ /* 17 */
740
648
  /***/ (function(module, exports, __webpack_require__) {
741
649
 
742
650
  "use strict";
@@ -751,7 +659,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCo
751
659
 
752
660
  var i18n_1 = __webpack_require__(0);
753
661
 
754
- var configUtils_1 = __webpack_require__(4);
662
+ var configUtils_1 = __webpack_require__(3);
755
663
 
756
664
  exports.AxesChartXGridAndLabelsCommon = {
757
665
  label: (0, i18n_1._)('X-axis grid and labels'),
@@ -1024,7 +932,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
1024
932
  exports.default = AxesChartXGridAndLabels;
1025
933
 
1026
934
  /***/ }),
1027
- /* 20 */
935
+ /* 18 */
1028
936
  /***/ (function(module, exports, __webpack_require__) {
1029
937
 
1030
938
  "use strict";
@@ -1186,6 +1094,8 @@ var AxesChartYGridAndLabels = {
1186
1094
  exports.default = AxesChartYGridAndLabels;
1187
1095
 
1188
1096
  /***/ }),
1097
+ /* 19 */,
1098
+ /* 20 */,
1189
1099
  /* 21 */,
1190
1100
  /* 22 */,
1191
1101
  /* 23 */,
@@ -1206,10 +1116,7 @@ exports.default = AxesChartYGridAndLabels;
1206
1116
  /* 38 */,
1207
1117
  /* 39 */,
1208
1118
  /* 40 */,
1209
- /* 41 */,
1210
- /* 42 */,
1211
- /* 43 */,
1212
- /* 44 */
1119
+ /* 41 */
1213
1120
  /***/ (function(module, exports, __webpack_require__) {
1214
1121
 
1215
1122
  "use strict";
@@ -1221,35 +1128,33 @@ Object.defineProperty(exports, "__esModule", {
1221
1128
  value: true
1222
1129
  });
1223
1130
 
1224
- var visualization_icons_1 = __webpack_require__(12);
1225
-
1226
- var placeholders_1 = __webpack_require__(11);
1131
+ var visualization_icons_1 = __webpack_require__(11);
1227
1132
 
1228
- var schemaUtils_1 = __webpack_require__(3);
1133
+ var placeholders_1 = __webpack_require__(10);
1229
1134
 
1230
- var visualization_color_palettes_1 = __webpack_require__(14);
1135
+ var visualization_schemas_1 = __webpack_require__(2);
1231
1136
 
1232
- var pick_1 = __webpack_require__(9);
1137
+ var pick_1 = __webpack_require__(8);
1233
1138
 
1234
- var variables_1 = __webpack_require__(10);
1139
+ var variables_1 = __webpack_require__(9);
1235
1140
 
1236
1141
  var i18n_1 = __webpack_require__(0);
1237
1142
 
1238
- var AxesChartDataConfig_1 = __webpack_require__(16);
1143
+ var AxesChartDataConfig_1 = __webpack_require__(14);
1239
1144
 
1240
- var AxesChartXGridAndLabels_1 = __webpack_require__(19);
1145
+ var AxesChartXGridAndLabels_1 = __webpack_require__(17);
1241
1146
 
1242
- var AxesChartColorAndStyle_1 = __webpack_require__(17);
1147
+ var AxesChartColorAndStyle_1 = __webpack_require__(15);
1243
1148
 
1244
- var AxesChartLegend_1 = __webpack_require__(18);
1149
+ var AxesChartLegend_1 = __webpack_require__(16);
1245
1150
 
1246
- var AxesChartYGridAndLabels_1 = __webpack_require__(20);
1151
+ var AxesChartYGridAndLabels_1 = __webpack_require__(18);
1247
1152
 
1248
- var VizBehavior_1 = __webpack_require__(2);
1153
+ var VizBehavior_1 = __webpack_require__(6);
1249
1154
 
1250
- var VizCategory_1 = __webpack_require__(8);
1155
+ var VizCategory_1 = __webpack_require__(7);
1251
1156
 
1252
- var configUtils_1 = __webpack_require__(4);
1157
+ var configUtils_1 = __webpack_require__(3);
1253
1158
 
1254
1159
  var dataContract = {
1255
1160
  requiredDataSources: [{
@@ -1274,310 +1179,6 @@ var size = {
1274
1179
  initialHeight: 300
1275
1180
  };
1276
1181
  var defaultContext = {};
1277
- var optionsSchema = {
1278
- x: {
1279
- default: '> primary | seriesByIndex(0)',
1280
- description: 'Specify the dataSource applied to the x-axis.',
1281
- type: 'array',
1282
- items: {
1283
- type: ['string', 'number']
1284
- }
1285
- },
1286
- y: {
1287
- default: '> primary | seriesByIndex(1)',
1288
- description: 'Specify the dataSource applied to the y-axis.',
1289
- type: 'array',
1290
- items: {
1291
- type: ['string', 'number']
1292
- }
1293
- },
1294
- category: {
1295
- description: 'Specify a sequence of dataSource events to be plotted on the chart.',
1296
- type: 'array',
1297
- items: {
1298
- type: ['string', 'number']
1299
- }
1300
- },
1301
- size: {
1302
- default: '> primary | seriesByIndex(2)',
1303
- description: 'Specify the dataSource events that are represented by the bubble size in the chart.',
1304
- type: 'array',
1305
- items: {
1306
- type: 'number'
1307
- }
1308
- },
1309
- xField: {
1310
- default: '> x | getField()',
1311
- description: 'Specify the field that should be mapped to the x-axis.',
1312
- type: 'string'
1313
- },
1314
- yField: {
1315
- default: '> y | getField()',
1316
- description: 'Specify the field that should be mapped to the y-axis.',
1317
- type: 'string'
1318
- },
1319
- categoryField: {
1320
- default: '> category | getField()',
1321
- description: 'Specify the field that should be mapped to the series categories.',
1322
- type: 'string'
1323
- },
1324
- sizeField: {
1325
- default: '> size | getField()',
1326
- description: 'Specify the field that should be mapped to the bubble size in the chart.',
1327
- type: 'string'
1328
- },
1329
- backgroundColor: {
1330
- default: '> themes.defaultBackgroundColor',
1331
- description: 'Specify the color used for the chart background by using a hexadecimal code. For example, #0000FF.',
1332
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
1333
- type: 'string'
1334
- },
1335
- bubbleSizeMax: {
1336
- default: 50,
1337
- description: 'Specify, in pixels, the maximum size of each bubble.',
1338
- type: 'number'
1339
- },
1340
- bubbleSizeMin: {
1341
- default: 10,
1342
- description: 'Specify, in pixels, the minimum size of each bubble.',
1343
- type: 'number'
1344
- },
1345
- bubbleSizeMethod: {
1346
- default: 'area',
1347
- description: 'Specify how bubble size is measured.',
1348
- pattern: (0, schemaUtils_1.getPattern)(['area', 'diameter']),
1349
- type: 'string'
1350
- },
1351
- legendDisplay: {
1352
- default: 'right',
1353
- description: 'Specify the location of the legend on the panel.',
1354
- pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
1355
- type: 'string'
1356
- },
1357
- legendTruncation: {
1358
- default: 'ellipsisEnd',
1359
- description: 'Specify where to use ellipsis to replace legend labels that overflow the layout.',
1360
- pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
1361
- type: 'string'
1362
- },
1363
- resultLimit: {
1364
- default: 50000,
1365
- description: 'Specify the number of data points rendered in a chart.',
1366
- type: 'number'
1367
- },
1368
- seriesColors: {
1369
- default: visualization_color_palettes_1.VIZ_CATEGORICAL,
1370
- description: 'Specify the hexadecimal color codes for the bubble order from largest to smallest. For example, ["#FF0000", "#0000FF", "#008000"].',
1371
- type: 'array',
1372
- items: {
1373
- type: 'string'
1374
- }
1375
- },
1376
- seriesColorsByField: {
1377
- description: 'Specify the colors to use for specific categories, or series names, derived from distinct values in the selected category field. For example, {"user1": "#008000", "user2": "#FFA500"}.',
1378
- type: 'object'
1379
- },
1380
- showXAxisExtendedRange: {
1381
- default: true,
1382
- description: 'Specify whether the x-axis should be extended to snap to whole major tick marks.',
1383
- type: 'boolean'
1384
- },
1385
- showYAxisExtendedRange: {
1386
- default: true,
1387
- description: 'Specify whether the y-axis should be extended to snap to whole major tick marks.',
1388
- type: 'boolean'
1389
- },
1390
- showXAxisWithZero: {
1391
- default: false,
1392
- description: 'Specify whether the x-axis range includes zero.',
1393
- type: 'boolean'
1394
- },
1395
- showYAxisWithZero: {
1396
- default: false,
1397
- description: 'Specify whether the y-axis range includes zero.',
1398
- type: 'boolean'
1399
- },
1400
- showRoundedXAxisLabels: {
1401
- default: false,
1402
- description: 'Specify whether to round x-axis values to the nearest integer.',
1403
- type: 'boolean'
1404
- },
1405
- // TODO: figure out if we want to change splunk-charting behavior for Bubble/Scatter, which hardcodes XMajorGridlines to false
1406
- // showXMajorGridLines: {
1407
- // default: false,
1408
- // description: 'Specify whether major grid lines are visible on the x-axis.',
1409
- // type: 'boolean',
1410
- // },
1411
- showYMajorGridLines: {
1412
- default: true,
1413
- description: 'Specify whether major grid lines are visible on the y-axis.',
1414
- type: 'boolean'
1415
- },
1416
- showXMinorGridLines: {
1417
- default: false,
1418
- description: 'Specify whether minor grid lines are visible on the x-axis.',
1419
- type: 'boolean'
1420
- },
1421
- showYMinorGridLines: {
1422
- default: false,
1423
- description: 'Specify whether minor grid lines are visible on the y-axis.',
1424
- type: 'boolean'
1425
- },
1426
- xAxisLabelRotation: {
1427
- default: 0,
1428
- description: 'Specify the rotation of the x-axis labels in degrees.',
1429
- type: 'number',
1430
- enum: [-90, -45, 0, 45, 90]
1431
- },
1432
- xAxisAbbreviation: {
1433
- default: 'off',
1434
- description: 'Specify whether to abbreviate large x-axis values with the closest International System of Units (SI) prefix.',
1435
- enum: ['off', 'auto'],
1436
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
1437
- type: 'string'
1438
- },
1439
- yAxisAbbreviation: {
1440
- default: 'auto',
1441
- description: 'Specify whether to abbreviate large y-axis values with the closest International System of Units (SI) prefix.',
1442
- enum: ['off', 'auto'],
1443
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
1444
- type: 'string'
1445
- },
1446
- xAxisLabelVisibility: {
1447
- default: 'auto',
1448
- description: 'Specify whether to show or hide labels on the x-axis.',
1449
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1450
- type: 'string'
1451
- },
1452
- yAxisLabelVisibility: {
1453
- default: 'auto',
1454
- description: 'Specify whether to show or hide labels on the y-axis.',
1455
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1456
- type: 'string'
1457
- },
1458
- xAxisLineVisibility: {
1459
- default: 'hide',
1460
- description: 'Specify whether to show the x-axis line.',
1461
- enum: ['hide', 'show'],
1462
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1463
- type: 'string'
1464
- },
1465
- yAxisLineVisibility: {
1466
- default: 'hide',
1467
- description: 'Specify whether to show the y-axis line.',
1468
- enum: ['hide', 'show'],
1469
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1470
- type: 'string'
1471
- },
1472
- xAxisMajorTickInterval: {
1473
- default: 'auto',
1474
- description: 'Specify the spacing interval between major tick marks along the x-axis. By default, the spacing value is automatically calculated based on the scale of the related axis.',
1475
- type: ['string', 'number']
1476
- },
1477
- yAxisMajorTickInterval: {
1478
- default: 'auto',
1479
- description: 'Specify the spacing interval between major tick marks along the y-axis. By default, the spacing value is automatically calculated based on the scale of the related axis.',
1480
- type: ['string', 'number']
1481
- },
1482
- xAxisMajorTickSize: {
1483
- default: 6,
1484
- description: 'Specify the size, in pixels, of major tick marks on the x-axis.',
1485
- type: 'number'
1486
- },
1487
- yAxisMajorTickSize: {
1488
- default: 6,
1489
- description: 'Specify the size, in pixels, of major tick marks on the y-axis.',
1490
- type: 'number'
1491
- },
1492
- xAxisMinorTickSize: {
1493
- default: 6,
1494
- description: 'Specify the size, in pixels, of minor tick marks on the x-axis.',
1495
- type: 'number'
1496
- },
1497
- yAxisMinorTickSize: {
1498
- default: 6,
1499
- description: 'Specify the size, in pixels, of minor tick marks on the y-axis.',
1500
- type: 'number'
1501
- },
1502
- xAxisMajorTickVisibility: {
1503
- default: 'auto',
1504
- description: 'Specify whether to show or hide major tick marks on the x-axis.',
1505
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1506
- type: 'string'
1507
- },
1508
- yAxisMajorTickVisibility: {
1509
- default: 'auto',
1510
- description: 'Specify whether to show or hide major tick marks on the y-axis.',
1511
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1512
- type: 'string'
1513
- },
1514
- xAxisMinorTickVisibility: {
1515
- default: 'auto',
1516
- description: 'Specify whether to show or hide minor tick marks on the x-axis .',
1517
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1518
- type: 'string'
1519
- },
1520
- yAxisMinorTickVisibility: {
1521
- default: 'auto',
1522
- description: 'Specify whether to show or hide minor tick marks on the y-axis.',
1523
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1524
- type: 'string'
1525
- },
1526
- xAxisMax: {
1527
- default: 'auto',
1528
- description: 'Specify the maximum value for the visible x-axis range.',
1529
- type: ['string', 'number']
1530
- },
1531
- yAxisMax: {
1532
- default: 'auto',
1533
- description: 'Specify the maximum value for the visible y-axis range.',
1534
- type: ['string', 'number']
1535
- },
1536
- xAxisMin: {
1537
- default: 'auto',
1538
- description: 'Specify the minimum value for the visible x-axis range.',
1539
- type: ['string', 'number']
1540
- },
1541
- yAxisMin: {
1542
- default: 'auto',
1543
- description: 'Specify the minimum value for the visible y-axis range.',
1544
- type: ['string', 'number']
1545
- },
1546
- xAxisScale: {
1547
- default: 'linear',
1548
- description: 'Specify the type of scale that applies to a numerical x-axis.',
1549
- pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1550
- type: 'string'
1551
- },
1552
- yAxisScale: {
1553
- default: 'linear',
1554
- description: 'Specify the type of scale that applies to a numerical y-axis.',
1555
- pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1556
- type: 'string'
1557
- },
1558
- xAxisTitleText: {
1559
- description: 'Specify the title of the x-axis.',
1560
- type: 'string'
1561
- },
1562
- yAxisTitleText: {
1563
- description: 'Specify the title of the y-axis.',
1564
- type: 'string'
1565
- },
1566
- xAxisTitleVisibility: {
1567
- default: 'show',
1568
- description: 'Specify whether to hide the title of the x-axis.',
1569
- enum: ['hide', 'show'],
1570
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1571
- type: 'string'
1572
- },
1573
- yAxisTitleVisibility: {
1574
- default: 'show',
1575
- description: 'Specify whether to hide the title of the y-axis.',
1576
- enum: ['hide', 'show'],
1577
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1578
- type: 'string'
1579
- }
1580
- };
1581
1182
  var themes = {
1582
1183
  defaultBackgroundColor: function defaultBackgroundColor(props) {
1583
1184
  return (0, pick_1.default)({
@@ -1655,7 +1256,7 @@ var config = {
1655
1256
  dataContract: dataContract,
1656
1257
  size: size,
1657
1258
  defaultContext: defaultContext,
1658
- optionsSchema: optionsSchema,
1259
+ optionsSchema: visualization_schemas_1.bubbleOptionsSchema,
1659
1260
  editorConfig: editorConfig,
1660
1261
  events: {
1661
1262
  'legend.click': {