@splunk/visualizations 26.2.1 → 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 +170 -300
  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 +545 -729
  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/Bar.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 = 43);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 40);
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);
182
-
183
- var VizBehavior_1 = __webpack_require__(2);
123
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
184
124
 
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";
279
+
280
+
281
+ Object.defineProperty(exports, "__esModule", {
282
+ value: true
283
+ });
284
+ exports.VizBehavior = void 0;
285
+ var VizBehavior;
396
286
 
397
- module.exports = require("@babel/runtime/helpers/defineProperty");
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,9 +1094,8 @@ var AxesChartYGridAndLabels = {
1186
1094
  exports.default = AxesChartYGridAndLabels;
1187
1095
 
1188
1096
  /***/ }),
1189
- /* 21 */,
1190
- /* 22 */,
1191
- /* 23 */
1097
+ /* 19 */,
1098
+ /* 20 */
1192
1099
  /***/ (function(module, exports, __webpack_require__) {
1193
1100
 
1194
1101
  "use strict";
@@ -1203,9 +1110,9 @@ exports.AxesChartDataDisplayColumn = exports.AxesChartDataDisplayBar = exports.A
1203
1110
 
1204
1111
  var i18n_1 = __webpack_require__(0);
1205
1112
 
1206
- var lodash_1 = __webpack_require__(6);
1113
+ var lodash_1 = __webpack_require__(5);
1207
1114
 
1208
- var configUtils_1 = __webpack_require__(4);
1115
+ var configUtils_1 = __webpack_require__(3);
1209
1116
 
1210
1117
  exports.AxesChartDataDisplayLine = {
1211
1118
  label: (0, i18n_1._)('Data display'),
@@ -1326,7 +1233,7 @@ exports.AxesChartDataDisplayColumn = {
1326
1233
  exports.default = AxesChartDataDisplay;
1327
1234
 
1328
1235
  /***/ }),
1329
- /* 24 */
1236
+ /* 21 */
1330
1237
  /***/ (function(module, exports, __webpack_require__) {
1331
1238
 
1332
1239
  "use strict";
@@ -1500,6 +1407,9 @@ var axesChartY2GridAndLabels = {
1500
1407
  exports.default = axesChartY2GridAndLabels;
1501
1408
 
1502
1409
  /***/ }),
1410
+ /* 22 */,
1411
+ /* 23 */,
1412
+ /* 24 */,
1503
1413
  /* 25 */,
1504
1414
  /* 26 */,
1505
1415
  /* 27 */,
@@ -1515,10 +1425,7 @@ exports.default = axesChartY2GridAndLabels;
1515
1425
  /* 37 */,
1516
1426
  /* 38 */,
1517
1427
  /* 39 */,
1518
- /* 40 */,
1519
- /* 41 */,
1520
- /* 42 */,
1521
- /* 43 */
1428
+ /* 40 */
1522
1429
  /***/ (function(module, exports, __webpack_require__) {
1523
1430
 
1524
1431
  "use strict";
@@ -1530,41 +1437,39 @@ Object.defineProperty(exports, "__esModule", {
1530
1437
  value: true
1531
1438
  });
1532
1439
 
1533
- var visualization_icons_1 = __webpack_require__(12);
1534
-
1535
- var placeholders_1 = __webpack_require__(11);
1440
+ var visualization_icons_1 = __webpack_require__(11);
1536
1441
 
1537
- var schemaUtils_1 = __webpack_require__(3);
1442
+ var placeholders_1 = __webpack_require__(10);
1538
1443
 
1539
- var visualization_color_palettes_1 = __webpack_require__(14);
1444
+ var visualization_schemas_1 = __webpack_require__(2);
1540
1445
 
1541
1446
  var i18n_1 = __webpack_require__(0);
1542
1447
 
1543
- var pick_1 = __webpack_require__(9);
1448
+ var pick_1 = __webpack_require__(8);
1544
1449
 
1545
- var variables_1 = __webpack_require__(10);
1450
+ var variables_1 = __webpack_require__(9);
1546
1451
 
1547
- var lodash_1 = __webpack_require__(6);
1452
+ var lodash_1 = __webpack_require__(5);
1548
1453
 
1549
- var AxesChartDataConfig_1 = __webpack_require__(16);
1454
+ var AxesChartDataConfig_1 = __webpack_require__(14);
1550
1455
 
1551
- var AxesChartDataDisplay_1 = __webpack_require__(23);
1456
+ var AxesChartDataDisplay_1 = __webpack_require__(20);
1552
1457
 
1553
- var AxesChartXGridAndLabels_1 = __webpack_require__(19);
1458
+ var AxesChartXGridAndLabels_1 = __webpack_require__(17);
1554
1459
 
1555
- var AxesChartColorAndStyle_1 = __webpack_require__(17);
1460
+ var AxesChartColorAndStyle_1 = __webpack_require__(15);
1556
1461
 
1557
- var AxesChartLegend_1 = __webpack_require__(18);
1462
+ var AxesChartLegend_1 = __webpack_require__(16);
1558
1463
 
1559
- var AxesChartYGridAndLabels_1 = __webpack_require__(20);
1464
+ var AxesChartYGridAndLabels_1 = __webpack_require__(18);
1560
1465
 
1561
- var AxesChartY2GridAndLabels_1 = __webpack_require__(24);
1466
+ var AxesChartY2GridAndLabels_1 = __webpack_require__(21);
1562
1467
 
1563
- var VizBehavior_1 = __webpack_require__(2);
1468
+ var VizBehavior_1 = __webpack_require__(6);
1564
1469
 
1565
- var VizCategory_1 = __webpack_require__(8);
1470
+ var VizCategory_1 = __webpack_require__(7);
1566
1471
 
1567
- var configUtils_1 = __webpack_require__(4);
1472
+ var configUtils_1 = __webpack_require__(3);
1568
1473
 
1569
1474
  var dataContract = {
1570
1475
  requiredDataSources: [{
@@ -1589,380 +1494,6 @@ var size = {
1589
1494
  initialHeight: 300
1590
1495
  };
1591
1496
  var defaultContext = {};
1592
- var optionsSchema = {
1593
- x: {
1594
- default: '> primary | seriesByIndex(0)',
1595
- description: 'Specify the data source to apply to the x-axis.',
1596
- type: 'array',
1597
- items: {
1598
- type: ['string', 'number']
1599
- }
1600
- },
1601
- y: {
1602
- default: '> primary | frameBySeriesIndexRange(1)',
1603
- description: 'Specify the data source to apply to the y-axis.',
1604
- type: 'array',
1605
- items: {
1606
- type: ['string', 'number']
1607
- }
1608
- },
1609
- y2: {
1610
- description: 'Specify the data source to apply to the second y-axis',
1611
- type: 'array',
1612
- items: {
1613
- type: ['string', 'number']
1614
- }
1615
- },
1616
- xField: {
1617
- default: '> x | getField()',
1618
- description: 'Specify the field to map to the x-axis.',
1619
- type: 'string'
1620
- },
1621
- yFields: {
1622
- default: '> y | getField()',
1623
- description: 'Specify the field to map to the y-axis.',
1624
- type: 'string'
1625
- },
1626
- y2Fields: {
1627
- default: '> y2 | getField()',
1628
- description: 'Specify one or more fields to map to a second y-axis.',
1629
- type: ['array', 'string'],
1630
- items: {
1631
- type: 'string'
1632
- }
1633
- },
1634
- backgroundColor: {
1635
- default: '> themes.defaultBackgroundColor',
1636
- description: 'Specify the color used for the background. You can use a data source or hexadecimal code to apply the color.',
1637
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
1638
- type: 'string'
1639
- },
1640
- barSpacing: {
1641
- description: 'Specify the spacing (px) between columns in a bar chart.',
1642
- type: 'number'
1643
- },
1644
- dataValuesDisplay: {
1645
- default: 'off',
1646
- description: 'Specify the labels to display. Enter "all" to show lables for all data points, "off" to show no labels, or "minmax to show high and low values".',
1647
- pattern: (0, schemaUtils_1.getPattern)(['off', 'all', 'minmax']),
1648
- type: 'string'
1649
- },
1650
- legendDisplay: {
1651
- default: 'right',
1652
- description: 'Specify the location of the legend on the panel.',
1653
- pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
1654
- type: 'string'
1655
- },
1656
- legendLabels: {
1657
- description: 'Specify a list of labels to populate the legend in advance. For example, ["percent", "count"].',
1658
- type: 'array',
1659
- items: {
1660
- type: 'string'
1661
- }
1662
- },
1663
- legendMode: {
1664
- default: 'standard',
1665
- description: 'Specify visual and behavioral settings for the tooltip and legend. "seriesCompare" is useful when comparing series.',
1666
- pattern: (0, schemaUtils_1.getPattern)(['standard', 'seriesCompare']),
1667
- type: 'string'
1668
- },
1669
- legendTruncation: {
1670
- default: 'ellipsisEnd',
1671
- description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
1672
- pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
1673
- type: 'string'
1674
- },
1675
- lineWidth: {
1676
- default: 2,
1677
- description: 'Specify the line width (px) for overlay field lines.',
1678
- type: 'number'
1679
- },
1680
- resultLimit: {
1681
- default: 50000,
1682
- description: 'Specify the number of data points to render in a chart.',
1683
- type: 'number'
1684
- },
1685
- seriesColors: {
1686
- default: visualization_color_palettes_1.VIZ_CATEGORICAL,
1687
- description: 'Specify the colors to use in a series. For example, ["#FF0000", "#0000FF", "#008000"].',
1688
- type: 'array',
1689
- items: {
1690
- type: 'string'
1691
- }
1692
- },
1693
- seriesColorsByField: {
1694
- description: 'Specify the colors to use for specific fields in a series. For example, {“count”: “#008000”, “percent”: “#FFA500”}.',
1695
- type: 'object'
1696
- },
1697
- seriesSpacing: {
1698
- description: 'Specify the spacing (px) between clustered series in column and bar charts.',
1699
- type: 'number'
1700
- },
1701
- stackMode: {
1702
- default: 'auto',
1703
- description: 'Specify stack mode.',
1704
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'stacked', 'stacked100']),
1705
- type: 'string'
1706
- },
1707
- showIndependentYRanges: {
1708
- default: false,
1709
- description: 'Specify whether split series charts have independent y-ranges.',
1710
- type: 'boolean'
1711
- },
1712
- showSplitSeries: {
1713
- default: false,
1714
- description: 'Specify whether to split a multi-series chart into separate charts that are stacked from top to bottom, one for each series.',
1715
- type: 'boolean'
1716
- },
1717
- showXMajorGridLines: {
1718
- default: false,
1719
- description: 'Specify whether to show major grid lines on the x-axis.',
1720
- type: 'boolean'
1721
- },
1722
- showYMajorGridLines: {
1723
- default: true,
1724
- description: 'Specify whether to show major grid lines on the y-axis.',
1725
- type: 'boolean'
1726
- },
1727
- showY2MajorGridLines: {
1728
- default: false,
1729
- description: 'Specify whether to show major grid lines on the second y-axis.',
1730
- type: 'boolean'
1731
- },
1732
- showYMinorGridLines: {
1733
- default: false,
1734
- description: 'Specify whether to show minor grid lines on the y-axis.',
1735
- type: 'boolean'
1736
- },
1737
- showY2MinorGridLines: {
1738
- default: false,
1739
- description: 'Specify whether to show minor grid lines on the second y-axis.',
1740
- type: 'boolean'
1741
- },
1742
- showYAxisExtendedRange: {
1743
- default: true,
1744
- description: 'Specify whether to extend the y-axis to include whole major tick marks.',
1745
- type: 'boolean'
1746
- },
1747
- showYAxisWithZero: {
1748
- default: false,
1749
- description: 'Specify whether to include zero in the y-axis range.',
1750
- type: 'boolean'
1751
- },
1752
- showY2AxisWithZero: {
1753
- default: false,
1754
- description: 'Specify whether to include zero the second y-axis range .',
1755
- type: 'boolean'
1756
- },
1757
- xAxisLabelVisibility: {
1758
- default: 'auto',
1759
- description: 'Specify whether to show labels on the x-axis.',
1760
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1761
- type: 'string'
1762
- },
1763
- yAxisLabelVisibility: {
1764
- default: 'auto',
1765
- description: 'Specify whether to show labels on the y-axis.',
1766
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1767
- type: 'string'
1768
- },
1769
- y2AxisLabelVisibility: {
1770
- default: 'auto',
1771
- description: 'Specify whether to show labels on the second y-axis.',
1772
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1773
- type: 'string'
1774
- },
1775
- xAxisLineVisibility: {
1776
- default: 'hide',
1777
- description: 'Specify whether to show the x-axis line.',
1778
- enum: ['hide', 'show'],
1779
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1780
- type: 'string'
1781
- },
1782
- yAxisLineVisibility: {
1783
- default: 'hide',
1784
- description: 'Specify whether to show the y-axis line.',
1785
- enum: ['hide', 'show'],
1786
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1787
- type: 'string'
1788
- },
1789
- y2AxisLineVisibility: {
1790
- default: 'hide',
1791
- description: 'Specify whether to show the second y-axis line.',
1792
- enum: ['hide', 'show'],
1793
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1794
- type: 'string'
1795
- },
1796
- xAxisMajorTickSize: {
1797
- default: 6,
1798
- description: 'Specify the size (px) of major tick marks on the x-axis.',
1799
- type: 'number'
1800
- },
1801
- yAxisMajorTickSize: {
1802
- default: 6,
1803
- description: 'Specify the size (px) of major tick marks on the y-axis.',
1804
- type: 'number'
1805
- },
1806
- y2AxisMajorTickSize: {
1807
- default: 6,
1808
- description: 'Specify the size (px) of major tick marks on the second y-axis.',
1809
- type: 'number'
1810
- },
1811
- yAxisMinorTickSize: {
1812
- default: 6,
1813
- description: 'Specify the size (px) of minor tick marks on the y-axis.',
1814
- type: 'number'
1815
- },
1816
- y2AxisMinorTickSize: {
1817
- default: 6,
1818
- description: 'Specify the size (px) of minor tick marks on the second y-axis.',
1819
- type: 'number'
1820
- },
1821
- xAxisMajorTickVisibility: {
1822
- default: 'auto',
1823
- description: 'Specify whether to show major tick marks on the x-axis.',
1824
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1825
- type: 'string'
1826
- },
1827
- yAxisMajorTickVisibility: {
1828
- default: 'auto',
1829
- description: 'Specify whether to show major tick marks on the y-axis.',
1830
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1831
- type: 'string'
1832
- },
1833
- y2AxisMajorTickVisibility: {
1834
- default: 'auto',
1835
- description: 'Specify whether to show major tick marks on the second y-axis.',
1836
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1837
- type: 'string'
1838
- },
1839
- yAxisMinorTickVisibility: {
1840
- default: 'auto',
1841
- description: 'Specify whether to show minor tick marks on the y-axis.',
1842
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1843
- type: 'string'
1844
- },
1845
- y2AxisMinorTickVisibility: {
1846
- default: 'auto',
1847
- description: 'Specify whether to show minor tick marks on the second y-axis.',
1848
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1849
- type: 'string'
1850
- },
1851
- xAxisMaxLabelParts: {
1852
- default: 3,
1853
- minimum: 1,
1854
- maximum: 3,
1855
- description: 'Specify the maximum number of time-parts for a tick label. The 3 possible parts are year, month, and time. Values can range from 1 to 3.',
1856
- type: 'number'
1857
- },
1858
- yAxisScale: {
1859
- default: 'linear',
1860
- description: 'Specify the type of scale that applies to a numerical y-axis.',
1861
- pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1862
- type: 'string'
1863
- },
1864
- y2AxisScale: {
1865
- default: 'linear',
1866
- description: 'Specify the type of scale that applies to a numerical second y-axis.',
1867
- pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1868
- type: 'string'
1869
- },
1870
- xAxisTitleText: {
1871
- description: 'Specify the title of the x-axis.',
1872
- type: 'string'
1873
- },
1874
- yAxisTitleText: {
1875
- description: 'Specify the title of the y-axis.',
1876
- type: 'string'
1877
- },
1878
- y2AxisTitleText: {
1879
- description: 'Specify the title of the second y-axis.',
1880
- type: 'string'
1881
- },
1882
- xAxisTitleVisibility: {
1883
- default: 'show',
1884
- description: 'Specify whether to show the title of the x-axis.',
1885
- enum: ['hide', 'show'],
1886
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1887
- type: 'string'
1888
- },
1889
- yAxisTitleVisibility: {
1890
- default: 'show',
1891
- description: 'Specify whether to show the title of the y-axis.',
1892
- enum: ['hide', 'show'],
1893
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1894
- type: 'string'
1895
- },
1896
- y2AxisTitleVisibility: {
1897
- default: 'show',
1898
- description: 'Specify whether to show the title of the second y-axis.',
1899
- enum: ['hide', 'show'],
1900
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1901
- type: 'string'
1902
- },
1903
- yAxisAbbreviation: {
1904
- default: 'auto',
1905
- description: 'Specify whether to abbreviate large y-axis values with the closest International System of Units (SI) prefix.',
1906
- enum: ['auto', 'off'],
1907
- pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
1908
- type: 'string'
1909
- },
1910
- y2AxisAbbreviation: {
1911
- default: 'auto',
1912
- description: 'Specify whether to abbreviate large y2-axis values with the closest International System of Units (SI) prefix.',
1913
- enum: ['auto', 'off'],
1914
- pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
1915
- type: 'string'
1916
- },
1917
- yAxisMajorTickInterval: {
1918
- default: 'auto',
1919
- description: 'Specify the spacing unit between major tick marks along the numeric y-axis.',
1920
- type: ['string', 'number']
1921
- },
1922
- y2AxisMajorTickInterval: {
1923
- default: 'auto',
1924
- description: 'Specify the spacing unit between major tick marks along the numeric second y-axis.',
1925
- type: ['string', 'number']
1926
- },
1927
- // TODO(SCP-40274): Restrict string value to only 'auto' to achieve precise schema validation
1928
- yAxisMax: {
1929
- default: 'auto',
1930
- description: 'Specify the largest value to display in the visible y-axis range.',
1931
- type: ['string', 'number']
1932
- },
1933
- // TODO(SCP-40274): Restrict string value to only 'auto' to achieve precise schema validation
1934
- y2AxisMax: {
1935
- default: 'auto',
1936
- description: 'Specify the largest value to display in the visible second y-axis range.',
1937
- type: ['string', 'number']
1938
- },
1939
- // TODO(SCP-40274): Restrict string value to only 'auto' to achieve precise schema validation
1940
- yAxisMin: {
1941
- default: 'auto',
1942
- description: 'Specify the smallest value for the visible y-axis range.',
1943
- type: ['string', 'number']
1944
- },
1945
- // TODO(SCP-40274): Restrict string value to only 'auto' to achieve precise schema validation
1946
- y2AxisMin: {
1947
- default: 'auto',
1948
- description: 'Specify the smallest value for the visible second y-axis range.',
1949
- type: ['string', 'number']
1950
- },
1951
- overlayFields: {
1952
- description: 'Specify one or more fields to differentiate on the chart and display as chart overlays.',
1953
- type: ['array', 'string']
1954
- },
1955
- showOverlayY2Axis: {
1956
- default: false,
1957
- description: 'Enable a second y-axis for chart overlays. All overlay fields map to a second y-axis.',
1958
- type: 'boolean'
1959
- },
1960
- showRoundedY2AxisLabels: {
1961
- default: true,
1962
- description: 'Specify whether to round second y-axis values to the nearest integer.',
1963
- type: 'boolean'
1964
- }
1965
- };
1966
1497
  var themes = {
1967
1498
  defaultBackgroundColor: function defaultBackgroundColor(props) {
1968
1499
  return (0, pick_1.default)({
@@ -2092,7 +1623,7 @@ var config = {
2092
1623
  dataContract: dataContract,
2093
1624
  size: size,
2094
1625
  defaultContext: defaultContext,
2095
- optionsSchema: optionsSchema,
1626
+ optionsSchema: visualization_schemas_1.barOptionsSchema,
2096
1627
  editorConfig: editorConfig,
2097
1628
  events: {
2098
1629
  'legend.click': {