@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/Column.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 = 46);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 43);
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;
123
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
178
124
 
179
- var lodash_1 = __webpack_require__(6);
125
+ var lodash_1 = __webpack_require__(5); // included for backwards compatibility
180
126
 
181
- var schemaUtils_1 = __webpack_require__(3);
182
127
 
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
- */
194
-
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
- });
128
+ var visualization_schemas_1 = __webpack_require__(2);
223
129
 
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
- }
248
-
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;
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
+ */
396
307
 
397
- module.exports = require("@babel/runtime/helpers/defineProperty");
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 */,
@@ -1518,10 +1428,7 @@ exports.default = axesChartY2GridAndLabels;
1518
1428
  /* 40 */,
1519
1429
  /* 41 */,
1520
1430
  /* 42 */,
1521
- /* 43 */,
1522
- /* 44 */,
1523
- /* 45 */,
1524
- /* 46 */
1431
+ /* 43 */
1525
1432
  /***/ (function(module, exports, __webpack_require__) {
1526
1433
 
1527
1434
  "use strict";
@@ -1532,43 +1439,40 @@ var _toConsumableArray = __webpack_require__(1);
1532
1439
  Object.defineProperty(exports, "__esModule", {
1533
1440
  value: true
1534
1441
  });
1535
- exports.optionsSchema = void 0;
1536
1442
 
1537
- var visualization_icons_1 = __webpack_require__(12);
1443
+ var visualization_icons_1 = __webpack_require__(11);
1538
1444
 
1539
- var placeholders_1 = __webpack_require__(11);
1445
+ var placeholders_1 = __webpack_require__(10);
1540
1446
 
1541
- var schemaUtils_1 = __webpack_require__(3);
1447
+ var visualization_schemas_1 = __webpack_require__(2);
1542
1448
 
1543
1449
  var i18n_1 = __webpack_require__(0);
1544
1450
 
1545
- var pick_1 = __webpack_require__(9);
1546
-
1547
- var variables_1 = __webpack_require__(10);
1451
+ var pick_1 = __webpack_require__(8);
1548
1452
 
1549
- var visualization_color_palettes_1 = __webpack_require__(14);
1453
+ var variables_1 = __webpack_require__(9);
1550
1454
 
1551
- var lodash_1 = __webpack_require__(6);
1455
+ var lodash_1 = __webpack_require__(5);
1552
1456
 
1553
- var VizBehavior_1 = __webpack_require__(2);
1457
+ var VizBehavior_1 = __webpack_require__(6);
1554
1458
 
1555
- var VizCategory_1 = __webpack_require__(8);
1459
+ var VizCategory_1 = __webpack_require__(7);
1556
1460
 
1557
- var configUtils_1 = __webpack_require__(4);
1461
+ var configUtils_1 = __webpack_require__(3);
1558
1462
 
1559
- var AxesChartDataConfig_1 = __webpack_require__(16);
1463
+ var AxesChartDataConfig_1 = __webpack_require__(14);
1560
1464
 
1561
- var AxesChartDataDisplay_1 = __webpack_require__(23);
1465
+ var AxesChartDataDisplay_1 = __webpack_require__(20);
1562
1466
 
1563
- var AxesChartColorAndStyle_1 = __webpack_require__(17);
1467
+ var AxesChartColorAndStyle_1 = __webpack_require__(15);
1564
1468
 
1565
- var AxesChartLegend_1 = __webpack_require__(18);
1469
+ var AxesChartLegend_1 = __webpack_require__(16);
1566
1470
 
1567
- var AxesChartXGridAndLabels_1 = __webpack_require__(19);
1471
+ var AxesChartXGridAndLabels_1 = __webpack_require__(17);
1568
1472
 
1569
- var AxesChartYGridAndLabels_1 = __webpack_require__(20);
1473
+ var AxesChartYGridAndLabels_1 = __webpack_require__(18);
1570
1474
 
1571
- var AxesChartY2GridAndLabels_1 = __webpack_require__(24);
1475
+ var AxesChartY2GridAndLabels_1 = __webpack_require__(21);
1572
1476
 
1573
1477
  var dataContract = {
1574
1478
  requiredDataSources: [{
@@ -1595,417 +1499,6 @@ var size = {
1595
1499
  initialHeight: 300
1596
1500
  };
1597
1501
  var defaultContext = {};
1598
- exports.optionsSchema = {
1599
- x: {
1600
- default: '> primary | seriesByIndex(0)',
1601
- description: 'Specify a data source to apply to the x-axis.',
1602
- type: 'array',
1603
- items: {
1604
- type: ['string', 'number']
1605
- }
1606
- },
1607
- y: {
1608
- default: '> primary | frameBySeriesIndexRange(1)',
1609
- description: 'Specify a data source to apply to the y-axis.',
1610
- type: 'array',
1611
- items: {
1612
- type: ['string', 'number']
1613
- }
1614
- },
1615
- y2: {
1616
- description: 'Specify a data source to apply to the second y-axis',
1617
- type: 'array',
1618
- items: {
1619
- type: ['string', 'number']
1620
- }
1621
- },
1622
- xField: {
1623
- default: '> x | getField()',
1624
- description: 'Specify a field to map to the x-axis.',
1625
- type: 'string'
1626
- },
1627
- yFields: {
1628
- default: '> y | getField()',
1629
- description: 'Specify a field to map to the y-axis.',
1630
- type: 'string'
1631
- },
1632
- y2Fields: {
1633
- default: '> y2 | getField()',
1634
- description: 'Specify one or more fields to map to a second y-axis.',
1635
- type: ['array', 'string'],
1636
- items: {
1637
- type: 'string'
1638
- }
1639
- },
1640
- annotationColor: {
1641
- description: "Specify the annotation colors. For example, [\u201C#FF0000\u201D, \u201C#0000FF\", \u201C#008000\u201D]. You can use a data source or hexadecimal code to apply the color.",
1642
- type: 'array',
1643
- items: {
1644
- type: 'string'
1645
- }
1646
- },
1647
- annotationLabel: {
1648
- description: "Specify a list of labels to use for annotations. For example, [\u201CSales\u201D, \u201CRevenue\u201D, \u201COrders\u201D].You can use a data source to apply the labels. ",
1649
- type: 'array',
1650
- items: {
1651
- type: 'string'
1652
- }
1653
- },
1654
- annotationX: {
1655
- description: 'Specify a data source field to apply to the event annotation on the x-axis.',
1656
- type: 'array',
1657
- items: {
1658
- type: ['string', 'number']
1659
- }
1660
- },
1661
- backgroundColor: {
1662
- default: '> themes.defaultBackgroundColor',
1663
- description: 'Specify the color to use for the background. You can use a data source or a hexadecimal code to apply the color.',
1664
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
1665
- type: 'string'
1666
- },
1667
- dataValuesDisplay: {
1668
- description: 'Specify the labels to display. Enter "all" to show labels for all data points, "off" to show no labels, or "minmax" to show high and low values.',
1669
- type: 'string',
1670
- pattern: (0, schemaUtils_1.getPattern)(['off', 'all', 'minmax']),
1671
- default: 'off'
1672
- },
1673
- columnGrouping: {
1674
- default: 'auto',
1675
- description: 'Specify a column grouping mode. If chart.stackMode is defined, it overrides grouping mode settings.',
1676
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'overlay']),
1677
- type: 'string'
1678
- },
1679
- columnSpacing: {
1680
- description: 'Specifies the spacing (px) between columns in a column chart.',
1681
- type: 'number'
1682
- },
1683
- legendDisplay: {
1684
- description: 'Specify the location of the legend on the panel.',
1685
- pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
1686
- type: 'string',
1687
- default: 'right'
1688
- },
1689
- legendLabels: {
1690
- description: "Specify a list of labels to populate the legend in advance. For example, [\"percent\", \"count\"].",
1691
- type: 'array',
1692
- items: {
1693
- type: 'string'
1694
- }
1695
- },
1696
- legendMode: {
1697
- default: 'standard',
1698
- description: 'Specify visual and behavioral settings for the tooltip and legend. "seriesCompare" is useful when comparing series.',
1699
- pattern: (0, schemaUtils_1.getPattern)(['standard', 'seriesCompare']),
1700
- type: 'string'
1701
- },
1702
- legendTruncation: {
1703
- description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
1704
- pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
1705
- type: 'string',
1706
- default: 'ellipsisEnd'
1707
- },
1708
- lineWidth: {
1709
- default: 2,
1710
- description: 'Specify the line width (px) for overlay field lines.',
1711
- type: 'number'
1712
- },
1713
- resultLimit: {
1714
- default: 50000,
1715
- description: 'Specify the number of data points to render in a chart.',
1716
- type: 'number'
1717
- },
1718
- seriesColors: {
1719
- default: visualization_color_palettes_1.VIZ_CATEGORICAL,
1720
- description: 'Specify the colors to use in a series. For example, ["#FF0000", "#0000FF", "#008000"].',
1721
- type: 'array',
1722
- items: {
1723
- type: 'string'
1724
- }
1725
- },
1726
- seriesColorsByField: {
1727
- description: 'Specify the colors to use for specific fields in a series. For example, {“count”: “#008000”, “percent”: “#FFA500”}.',
1728
- type: 'object'
1729
- },
1730
- seriesSpacing: {
1731
- description: 'Specify the spacing (px) between clustered series in column and bar charts.',
1732
- type: 'number'
1733
- },
1734
- stackMode: {
1735
- description: 'Specify stack mode.',
1736
- type: 'string',
1737
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'stacked', 'stacked100']),
1738
- default: 'auto'
1739
- },
1740
- showIndependentYRanges: {
1741
- description: 'Specify whether split series charts have independent y-ranges.',
1742
- type: 'boolean',
1743
- default: false
1744
- },
1745
- showSplitSeries: {
1746
- description: 'Specify whether to split a multi-series chart into separate charts that are stacked from top to bottom; uses one chart for each series.',
1747
- type: 'boolean',
1748
- default: false
1749
- },
1750
- showTooltip: {
1751
- description: 'Specify whether to make a tooltip visible on hover',
1752
- type: 'boolean',
1753
- default: true
1754
- },
1755
- showXMajorGridLines: {
1756
- description: 'Specify whether to show major grid lines on the x-axis.',
1757
- type: 'boolean',
1758
- default: false
1759
- },
1760
- showYMajorGridLines: {
1761
- description: 'Specify whether to show major grid lines on the y-axis.',
1762
- type: 'boolean',
1763
- default: true
1764
- },
1765
- showY2MajorGridLines: {
1766
- description: 'Specify whether to show major grid lines on the second y-axis.',
1767
- type: 'boolean',
1768
- default: false
1769
- },
1770
- showYMinorGridLines: {
1771
- description: 'Specify whether to show minor grid lines on the y-axis.',
1772
- type: 'boolean',
1773
- default: false
1774
- },
1775
- showY2MinorGridLines: {
1776
- description: 'Specify whether to show minor grid lines on the second y-axis.',
1777
- type: 'boolean',
1778
- default: false
1779
- },
1780
- showYAxisExtendedRange: {
1781
- description: 'Specify whether to extend the y-axis to include whole major tick marks.',
1782
- type: 'boolean',
1783
- default: true
1784
- },
1785
- showYAxisWithZero: {
1786
- description: 'Specify whether to include zero in the y-axis range.',
1787
- type: 'boolean',
1788
- default: false
1789
- },
1790
- showY2AxisWithZero: {
1791
- description: 'Specify whether to include zero in the second y-axis range.',
1792
- type: 'boolean',
1793
- default: false
1794
- },
1795
- xAxisLabelRotation: {
1796
- description: 'Specify the rotation of the x-axis label in degrees.',
1797
- enum: [-90, -45, 0, 45, 90],
1798
- type: 'number',
1799
- default: 0
1800
- },
1801
- xAxisLabelVisibility: {
1802
- description: 'Specify whether to show labels on the x-axis.',
1803
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1804
- type: 'string',
1805
- default: 'auto'
1806
- },
1807
- yAxisLabelVisibility: {
1808
- default: 'auto',
1809
- description: 'Specify whether to show labels on the y-axis.',
1810
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1811
- type: 'string'
1812
- },
1813
- y2AxisLabelVisibility: {
1814
- default: 'auto',
1815
- description: 'Specify whether to show labels on the second y-axis.',
1816
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1817
- type: 'string'
1818
- },
1819
- xAxisLineVisibility: {
1820
- default: 'hide',
1821
- description: 'Specify whether to show the x-axis line.',
1822
- enum: ['hide', 'show'],
1823
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1824
- type: 'string'
1825
- },
1826
- yAxisLineVisibility: {
1827
- default: 'hide',
1828
- description: 'Specify whether to show the y-axis line.',
1829
- enum: ['hide', 'show'],
1830
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1831
- type: 'string'
1832
- },
1833
- y2AxisLineVisibility: {
1834
- default: 'hide',
1835
- description: 'Specify whether to show the second y-axis line.',
1836
- enum: ['hide', 'show'],
1837
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1838
- type: 'string'
1839
- },
1840
- xAxisMajorTickSize: {
1841
- description: 'Specify the size (px) of major tick marks on the x-axis.',
1842
- type: 'number',
1843
- default: 6
1844
- },
1845
- yAxisMajorTickSize: {
1846
- default: 6,
1847
- description: 'Specify the size (px) of major tick marks on the y-axis.',
1848
- type: 'number'
1849
- },
1850
- y2AxisMajorTickSize: {
1851
- default: 6,
1852
- description: 'Specify the size (px) of major tick marks on the second y-axis.',
1853
- type: 'number'
1854
- },
1855
- yAxisMinorTickSize: {
1856
- default: 6,
1857
- description: 'Specify the size (px) of minor tick marks on the y-axis.',
1858
- type: 'number'
1859
- },
1860
- y2AxisMinorTickSize: {
1861
- default: 6,
1862
- description: 'Specify the size (px) of minor tick marks on the second y-axis.',
1863
- type: 'number'
1864
- },
1865
- xAxisMajorTickVisibility: {
1866
- default: 'auto',
1867
- description: 'Specify whether to show major tick marks on the x-axis.',
1868
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1869
- type: 'string'
1870
- },
1871
- yAxisMajorTickVisibility: {
1872
- default: 'auto',
1873
- description: 'Specify whether to show major tick marks on the y-axis.',
1874
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1875
- type: 'string'
1876
- },
1877
- y2AxisMajorTickVisibility: {
1878
- default: 'auto',
1879
- description: 'Specify whether to show major tick marks on the second y-axis.',
1880
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1881
- type: 'string'
1882
- },
1883
- yAxisMinorTickVisibility: {
1884
- default: 'auto',
1885
- description: 'Specify whether to show minor tick marks on the y-axis.',
1886
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1887
- type: 'string'
1888
- },
1889
- y2AxisMinorTickVisibility: {
1890
- default: 'auto',
1891
- description: 'Specify whether to show minor tick marks on the second y-axis.',
1892
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1893
- type: 'string'
1894
- },
1895
- xAxisMaxLabelParts: {
1896
- 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.',
1897
- type: 'number',
1898
- default: 3,
1899
- minimum: 1,
1900
- maximum: 3
1901
- },
1902
- yAxisScale: {
1903
- type: 'string',
1904
- pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1905
- description: 'Specify the type of scale that applies to a numerical y-axis.',
1906
- default: 'linear'
1907
- },
1908
- y2AxisScale: {
1909
- type: 'string',
1910
- pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1911
- description: 'Specify the type of scale that applies to a numerical second y-axis.',
1912
- default: 'linear'
1913
- },
1914
- xAxisTitleText: {
1915
- description: 'Specify the title of the x-axis.',
1916
- type: 'string'
1917
- },
1918
- yAxisTitleText: {
1919
- description: 'Specify the title of the y-axis.',
1920
- type: 'string'
1921
- },
1922
- y2AxisTitleText: {
1923
- description: 'Specify the title of the second y-axis.',
1924
- type: 'string'
1925
- },
1926
- xAxisTitleVisibility: {
1927
- default: 'show',
1928
- description: 'Specify whether to show the title of the x-axis.',
1929
- enum: ['hide', 'show'],
1930
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1931
- type: 'string'
1932
- },
1933
- yAxisTitleVisibility: {
1934
- default: 'show',
1935
- description: 'Specify whether to show the title of the y-axis.',
1936
- enum: ['hide', 'show'],
1937
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1938
- type: 'string'
1939
- },
1940
- y2AxisTitleVisibility: {
1941
- default: 'show',
1942
- description: 'Specify whether to show the title of the second y-axis.',
1943
- enum: ['hide', 'show'],
1944
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1945
- type: 'string'
1946
- },
1947
- yAxisAbbreviation: {
1948
- default: 'auto',
1949
- description: 'Specify whether to abbreviate large y-axis values with the closest International System of Units (SI) prefix.',
1950
- enum: ['auto', 'off'],
1951
- pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
1952
- type: 'string'
1953
- },
1954
- y2AxisAbbreviation: {
1955
- default: 'auto',
1956
- description: 'Specify whether to abbreviate large second y-axis values with the closest International System of Units (SI) prefix.',
1957
- enum: ['auto', 'off'],
1958
- pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
1959
- type: 'string'
1960
- },
1961
- yAxisMajorTickInterval: {
1962
- default: 'auto',
1963
- description: 'Specify the spacing unit between major tick marks along the numeric y-axis.',
1964
- type: ['string', 'number']
1965
- },
1966
- y2AxisMajorTickInterval: {
1967
- default: 'auto',
1968
- description: 'Specify the spacing unit between major tick marks along the numeric second y-axis.',
1969
- type: ['string', 'number']
1970
- },
1971
- yAxisMax: {
1972
- type: ['string', 'number'],
1973
- description: 'Specify the largest value for the visible y-axis range.',
1974
- default: 'auto'
1975
- },
1976
- y2AxisMax: {
1977
- type: ['string', 'number'],
1978
- description: 'Specify the largest value for the visible second y-axis range.',
1979
- default: 'auto'
1980
- },
1981
- yAxisMin: {
1982
- type: ['string', 'number'],
1983
- description: 'Specify the smallest value for the visible y-axis range.',
1984
- default: 'auto'
1985
- },
1986
- y2AxisMin: {
1987
- type: ['string', 'number'],
1988
- description: 'Specify the smallest value for the visible second y-axis range.',
1989
- default: 'auto'
1990
- },
1991
- overlayFields: {
1992
- description: 'Specify one or more fields to differentiate on the chart and display as chart overlays.',
1993
- type: ['array', 'string'],
1994
- items: {
1995
- type: 'string'
1996
- }
1997
- },
1998
- showOverlayY2Axis: {
1999
- default: false,
2000
- description: 'Enable a second y-axis for chart overlays. All overlay fields will map to a second y-axis.',
2001
- type: 'boolean'
2002
- },
2003
- showRoundedY2AxisLabels: {
2004
- default: true,
2005
- description: 'Specify whether to round the second y-axis values to the nearest integer.',
2006
- type: 'boolean'
2007
- }
2008
- };
2009
1502
  var themes = {
2010
1503
  defaultBackgroundColor: function defaultBackgroundColor(props) {
2011
1504
  return (0, pick_1.default)({
@@ -2090,7 +1583,7 @@ var config = {
2090
1583
  dataContract: dataContract,
2091
1584
  size: size,
2092
1585
  defaultContext: defaultContext,
2093
- optionsSchema: exports.optionsSchema,
1586
+ optionsSchema: visualization_schemas_1.columnOptionsSchema,
2094
1587
  editorConfig: editorConfig,
2095
1588
  events: {
2096
1589
  'legend.click': {