@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/Line.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 = 55);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 52);
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 */,
@@ -1527,10 +1437,7 @@ exports.default = axesChartY2GridAndLabels;
1527
1437
  /* 49 */,
1528
1438
  /* 50 */,
1529
1439
  /* 51 */,
1530
- /* 52 */,
1531
- /* 53 */,
1532
- /* 54 */,
1533
- /* 55 */
1440
+ /* 52 */
1534
1441
  /***/ (function(module, exports, __webpack_require__) {
1535
1442
 
1536
1443
  "use strict";
@@ -1542,39 +1449,37 @@ Object.defineProperty(exports, "__esModule", {
1542
1449
  value: true
1543
1450
  });
1544
1451
 
1545
- var schemaUtils_1 = __webpack_require__(3);
1546
-
1547
- var visualization_color_palettes_1 = __webpack_require__(14);
1452
+ var visualization_schemas_1 = __webpack_require__(2);
1548
1453
 
1549
- var visualization_icons_1 = __webpack_require__(12);
1454
+ var visualization_icons_1 = __webpack_require__(11);
1550
1455
 
1551
- var placeholders_1 = __webpack_require__(11);
1456
+ var placeholders_1 = __webpack_require__(10);
1552
1457
 
1553
1458
  var i18n_1 = __webpack_require__(0);
1554
1459
 
1555
- var pick_1 = __webpack_require__(9);
1460
+ var pick_1 = __webpack_require__(8);
1556
1461
 
1557
- var variables_1 = __webpack_require__(10);
1462
+ var variables_1 = __webpack_require__(9);
1558
1463
 
1559
- var AxesChartDataConfig_1 = __webpack_require__(16);
1464
+ var AxesChartDataConfig_1 = __webpack_require__(14);
1560
1465
 
1561
- var AxesChartDataDisplay_1 = __webpack_require__(23);
1466
+ var AxesChartDataDisplay_1 = __webpack_require__(20);
1562
1467
 
1563
- var AxesChartColorAndStyle_1 = __webpack_require__(17);
1468
+ var AxesChartColorAndStyle_1 = __webpack_require__(15);
1564
1469
 
1565
- var AxesChartLegend_1 = __webpack_require__(18);
1470
+ var AxesChartLegend_1 = __webpack_require__(16);
1566
1471
 
1567
- var AxesChartXGridAndLabels_1 = __webpack_require__(19);
1472
+ var AxesChartXGridAndLabels_1 = __webpack_require__(17);
1568
1473
 
1569
- var AxesChartYGridAndLabels_1 = __webpack_require__(20);
1474
+ var AxesChartYGridAndLabels_1 = __webpack_require__(18);
1570
1475
 
1571
- var AxesChartY2GridAndLabels_1 = __webpack_require__(24);
1476
+ var AxesChartY2GridAndLabels_1 = __webpack_require__(21);
1572
1477
 
1573
- var VizBehavior_1 = __webpack_require__(2);
1478
+ var VizBehavior_1 = __webpack_require__(6);
1574
1479
 
1575
- var VizCategory_1 = __webpack_require__(8);
1480
+ var VizCategory_1 = __webpack_require__(7);
1576
1481
 
1577
- var configUtils_1 = __webpack_require__(4);
1482
+ var configUtils_1 = __webpack_require__(3);
1578
1483
 
1579
1484
  var dataContract = {
1580
1485
  requiredDataSources: [{
@@ -1601,426 +1506,6 @@ var size = {
1601
1506
  initialHeight: 300
1602
1507
  };
1603
1508
  var defaultContext = {};
1604
- var optionsSchema = {
1605
- x: {
1606
- default: '> primary | seriesByIndex(0)',
1607
- description: 'Specify the dataSource applied to the x-axis.',
1608
- type: 'array',
1609
- items: {
1610
- type: ['string', 'number']
1611
- }
1612
- },
1613
- y: {
1614
- default: '> primary | frameBySeriesIndexRange(1)',
1615
- description: 'Specify the dataSource applied to the y-axis.',
1616
- type: 'array',
1617
- items: {
1618
- type: ['string', 'number']
1619
- }
1620
- },
1621
- y2: {
1622
- description: 'Specify the dataSource applied to the y2-axis',
1623
- type: 'array',
1624
- items: {
1625
- type: ['string', 'number']
1626
- }
1627
- },
1628
- xField: {
1629
- default: '> x | getField()',
1630
- description: 'Specify the field that should be mapped to the x-axis.',
1631
- type: 'string'
1632
- },
1633
- yFields: {
1634
- default: '> y | getField()',
1635
- description: 'Specify the field that should be mapped to the y-axis.',
1636
- type: 'string'
1637
- },
1638
- annotationColor: {
1639
- description: "Specify the annotation colors. You may use a dataSource to apply the color. For example, [\u201C#FF0000\u201D, \u201C#0000FF\", \u201C#008000\u201D].",
1640
- type: 'array',
1641
- items: {
1642
- type: 'string'
1643
- }
1644
- },
1645
- annotationLabel: {
1646
- description: "Specify a list of labels used for the annotations. You may use a dataSource to apply the labels. For example, [\u201Chouston, we have a problem\u201D, \u201Cjust close the jira\u201D, \u201Clooking good now\u201D].",
1647
- type: 'array',
1648
- items: {
1649
- type: 'string'
1650
- }
1651
- },
1652
- annotationX: {
1653
- description: 'Specify the dataSource field applied to the event annotation on the x-axis.',
1654
- type: 'array',
1655
- items: {
1656
- type: ['string', 'number']
1657
- }
1658
- },
1659
- backgroundColor: {
1660
- default: '> themes.defaultBackgroundColor',
1661
- description: 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
1662
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
1663
- type: 'string'
1664
- },
1665
- dataValuesDisplay: {
1666
- default: 'off',
1667
- description: 'Specify whether chart should display no labels, all labels, or only the min and max labels.',
1668
- pattern: (0, schemaUtils_1.getPattern)(['off', 'all', 'minmax']),
1669
- type: 'string'
1670
- },
1671
- legendDisplay: {
1672
- default: 'right',
1673
- description: 'Specify the location of the legend on the panel. You must select the Standard legend mode to make this change.',
1674
- pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
1675
- type: 'string'
1676
- },
1677
- legendLabels: {
1678
- description: "Specify a list of labels to pre-populate the legend. For example, [\"percent\", \"count\"].",
1679
- type: 'array',
1680
- items: {
1681
- type: 'string'
1682
- }
1683
- },
1684
- legendMode: {
1685
- default: 'standard',
1686
- description: 'Specify visual and behavioral settings for the tooltip and legend. "seriesCompare" is useful when comparing series.',
1687
- pattern: (0, schemaUtils_1.getPattern)(['standard', 'seriesCompare']),
1688
- type: 'string'
1689
- },
1690
- legendTruncation: {
1691
- default: 'ellipsisEnd',
1692
- description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
1693
- pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
1694
- type: 'string'
1695
- },
1696
- lineDashStyle: {
1697
- default: 'solid',
1698
- description: 'Specify a dash style for all line series in the chart.',
1699
- pattern: (0, schemaUtils_1.getPattern)(['solid', 'shortDash', 'shortDot', 'shortDashDot', 'shortDashDotDot', 'dot', 'dash', 'longDash', 'dashDot', 'longDashDot', 'longDashDotDot']),
1700
- type: 'string'
1701
- },
1702
- lineDashStylesByField: {
1703
- description: "Specify a dash style to use for each field. For example, {\"count\": \"longDashDot\", \"percent\": \"longDashDotDot\"}.\n Valid values: \"solid\", \"shortDash\", \"shortDot\", \"shortDashDot\", \"shortDashDotDot\", \"dot\", \"dash\",\n \"longDash\", \"dashDot\", \"longDashDot\", \"longDashDotDot\".",
1704
- type: 'object'
1705
- },
1706
- lineWidth: {
1707
- default: 2,
1708
- description: 'Specify the line width (px), for all line series.',
1709
- type: 'number'
1710
- },
1711
- markerDisplay: {
1712
- default: 'off',
1713
- description: "Specify the marker display style for data points.",
1714
- pattern: (0, schemaUtils_1.getPattern)(['off', 'filled', 'outlined']),
1715
- enum: ['off', 'filled', 'outlined'],
1716
- type: 'string'
1717
- },
1718
- nullValueDisplay: {
1719
- default: 'gaps',
1720
- description: 'Specify how area and line charts handle null values.',
1721
- pattern: (0, schemaUtils_1.getPattern)(['gaps', 'zero', 'connect']),
1722
- type: 'string'
1723
- },
1724
- resultLimit: {
1725
- default: 50000,
1726
- description: 'Specify the number of data points rendered in a chart.',
1727
- type: 'number'
1728
- },
1729
- seriesColors: {
1730
- default: visualization_color_palettes_1.VIZ_CATEGORICAL,
1731
- description: 'Specify the colors used for a series. For example, ["#FF0000", "#0000FF", "#008000"].',
1732
- type: 'array',
1733
- items: {
1734
- type: 'string'
1735
- }
1736
- },
1737
- seriesColorsByField: {
1738
- description: 'Specify the colors used for specific fields in a series. For example, {“count”: “#008000”, “percent”: “#FFA500”}.',
1739
- type: 'object'
1740
- },
1741
- showLineSmoothing: {
1742
- default: false,
1743
- description: 'Specify whether lines are straight or smoothed using curves.',
1744
- type: 'boolean'
1745
- },
1746
- showIndependentYRanges: {
1747
- default: false,
1748
- description: 'Specify whether split series charts have independent y-ranges.',
1749
- type: 'boolean'
1750
- },
1751
- showSplitSeries: {
1752
- default: false,
1753
- description: 'Set to "true" to split a multi-series chart into separate charts that are stacked from top to bottom; one for each series.',
1754
- type: 'boolean'
1755
- },
1756
- showXMajorGridLines: {
1757
- default: false,
1758
- description: 'Specify whether major grid lines are visible on the x-axis.',
1759
- type: 'boolean'
1760
- },
1761
- showYMajorGridLines: {
1762
- default: true,
1763
- description: 'Specify whether major grid lines are visible on the y-axis.',
1764
- type: 'boolean'
1765
- },
1766
- showY2MajorGridLines: {
1767
- default: false,
1768
- description: 'Specify whether major grid lines are visible on the y2-axis.',
1769
- type: 'boolean'
1770
- },
1771
- showYMinorGridLines: {
1772
- default: false,
1773
- description: 'Specify whether minor grid lines are visible on the y-axis.',
1774
- type: 'boolean'
1775
- },
1776
- showY2MinorGridLines: {
1777
- default: false,
1778
- description: 'Specify whether minor grid lines are visible on y2-axis.',
1779
- type: 'boolean'
1780
- },
1781
- showYAxisExtendedRange: {
1782
- default: true,
1783
- description: 'Specify whether the y-axis should be extended to include whole major tick marks.',
1784
- type: 'boolean'
1785
- },
1786
- showYAxisWithZero: {
1787
- default: false,
1788
- description: 'Specify whether the y-axis range includes zero.',
1789
- type: 'boolean'
1790
- },
1791
- showY2AxisWithZero: {
1792
- default: false,
1793
- description: 'Specify whether the y2-axis range includes zero.',
1794
- type: 'boolean'
1795
- },
1796
- xAxisLabelRotation: {
1797
- default: 0,
1798
- description: 'Specify the rotation of the x-axis label in degrees.',
1799
- enum: [-90, -45, 0, 45, 90],
1800
- type: 'number'
1801
- },
1802
- xAxisLabelVisibility: {
1803
- default: 'auto',
1804
- description: 'Specify whether to show or hide labels on the x-axis.',
1805
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1806
- type: 'string'
1807
- },
1808
- yAxisLabelVisibility: {
1809
- default: 'auto',
1810
- description: 'Specify whether to show or hide labels on the y-axis.',
1811
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1812
- type: 'string'
1813
- },
1814
- y2AxisLabelVisibility: {
1815
- default: 'auto',
1816
- description: 'Specify whether to show or hide labels on the y2-axis.',
1817
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1818
- type: 'string'
1819
- },
1820
- xAxisLineVisibility: {
1821
- default: 'hide',
1822
- enum: ['hide', 'show'],
1823
- description: 'Specify whether to show or hide the x-axis line.',
1824
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1825
- type: 'string'
1826
- },
1827
- yAxisLineVisibility: {
1828
- default: 'hide',
1829
- description: 'Specify whether to show or hide the y-axis line.',
1830
- enum: ['hide', 'show'],
1831
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1832
- type: 'string'
1833
- },
1834
- y2AxisLineVisibility: {
1835
- default: 'hide',
1836
- description: 'Specify whether to show or hide the y2-axis line.',
1837
- enum: ['hide', 'show'],
1838
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1839
- type: 'string'
1840
- },
1841
- xAxisMajorTickSize: {
1842
- default: 6,
1843
- description: 'Specify the size, in pixels, of major tick marks on the x-axis.',
1844
- type: 'number'
1845
- },
1846
- yAxisMajorTickSize: {
1847
- default: 6,
1848
- description: 'Specify the size, in pixels, of major tick marks on the y-axis.',
1849
- type: 'number'
1850
- },
1851
- y2AxisMajorTickSize: {
1852
- default: 6,
1853
- description: 'Specify the size, in pixels, of major tick marks on the y2-axis.',
1854
- type: 'number'
1855
- },
1856
- yAxisMinorTickSize: {
1857
- default: 6,
1858
- description: 'Specify the size, in pixels, of minor tick marks on the y-axis.',
1859
- type: 'number'
1860
- },
1861
- y2AxisMinorTickSize: {
1862
- default: 6,
1863
- description: 'Specify the size, in pixels, of minor tick marks on the y2-axis.',
1864
- type: 'number'
1865
- },
1866
- xAxisMajorTickVisibility: {
1867
- default: 'auto',
1868
- description: 'Specify whether to show or hide major tick marks on the x-axis.',
1869
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1870
- type: 'string'
1871
- },
1872
- yAxisMajorTickVisibility: {
1873
- default: 'auto',
1874
- description: 'Specify whether to show or hide major tick marks on the y-axis.',
1875
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1876
- type: 'string'
1877
- },
1878
- y2AxisMajorTickVisibility: {
1879
- default: 'auto',
1880
- description: 'Specify whether to show or hide major tick marks on the y2-axis.',
1881
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1882
- type: 'string'
1883
- },
1884
- yAxisMinorTickVisibility: {
1885
- default: 'auto',
1886
- description: 'Specify whether to show or hide minor tick marks on the y-axis.',
1887
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1888
- type: 'string'
1889
- },
1890
- y2AxisMinorTickVisibility: {
1891
- default: 'auto',
1892
- description: 'Specify whether to show or hide minor tick marks on the y2-axis.',
1893
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1894
- type: 'string'
1895
- },
1896
- xAxisMaxLabelParts: {
1897
- default: 3,
1898
- minimum: 1,
1899
- maximum: 3,
1900
- 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.',
1901
- type: 'number'
1902
- },
1903
- xAxisTitleText: {
1904
- description: 'Specify the title of the x-axis.',
1905
- type: 'string'
1906
- },
1907
- yAxisTitleText: {
1908
- description: 'Specify the title of the y-axis.',
1909
- type: 'string'
1910
- },
1911
- y2AxisTitleText: {
1912
- description: 'Specify the title of the y2-axis.',
1913
- type: 'string'
1914
- },
1915
- xAxisTitleVisibility: {
1916
- default: 'show',
1917
- description: 'Specify whether to show or hide the title of the x-axis.',
1918
- enum: ['hide', 'show'],
1919
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1920
- type: 'string'
1921
- },
1922
- yAxisTitleVisibility: {
1923
- default: 'show',
1924
- description: 'Specify whether to show or hide the title of the y-axis.',
1925
- enum: ['hide', 'show'],
1926
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1927
- type: 'string'
1928
- },
1929
- y2AxisTitleVisibility: {
1930
- default: 'show',
1931
- description: 'Specify whether to show or hide the title of the y2-axis.',
1932
- enum: ['hide', 'show'],
1933
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1934
- type: 'string'
1935
- },
1936
- yAxisAbbreviation: {
1937
- default: 'auto',
1938
- description: 'Specify whether to abbreviate large y-axis values with the closest SI prefix.',
1939
- enum: ['off', 'auto'],
1940
- pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
1941
- type: 'string'
1942
- },
1943
- y2AxisAbbreviation: {
1944
- default: 'auto',
1945
- description: 'Specify whether to abbreviate large y2-axis values with the closest SI prefix.',
1946
- enum: ['off', 'auto'],
1947
- pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
1948
- type: 'string'
1949
- },
1950
- yAxisMajorTickInterval: {
1951
- default: 'auto',
1952
- description: 'Specify the spacing unit between major tick marks along the numeric y-axis.',
1953
- type: ['string', 'number']
1954
- },
1955
- y2AxisMajorTickInterval: {
1956
- default: 'auto',
1957
- description: 'Specify the spacing unit between major tick marks along the numeric y2-axis.',
1958
- type: ['string', 'number']
1959
- },
1960
- // TODO(SCP-40274): Restrict string value to only 'auto' to achieve precise schema validation
1961
- yAxisMax: {
1962
- default: 'auto',
1963
- description: 'Specify the maximum number for the visible y-axis range.',
1964
- type: ['string', 'number']
1965
- },
1966
- // TODO(SCP-40274): Restrict string value to only 'auto' to achieve precise schema validation
1967
- y2AxisMax: {
1968
- default: 'auto',
1969
- description: 'Specify the maximum number for the visible y2-axis range.',
1970
- type: ['string', 'number']
1971
- },
1972
- // TODO(SCP-40274): Restrict string value to only 'auto' to achieve precise schema validation
1973
- yAxisMin: {
1974
- default: 'auto',
1975
- description: 'Specify the minimum number for the visible y-axis range.',
1976
- type: ['string', 'number']
1977
- },
1978
- // TODO(SCP-40274): Restrict string value to only 'auto' to achieve precise schema validation
1979
- y2AxisMin: {
1980
- default: 'auto',
1981
- description: 'Specify the minimum number for the visible y2-axis range.',
1982
- type: ['string', 'number']
1983
- },
1984
- yAxisScale: {
1985
- default: 'linear',
1986
- description: 'Specify the type of scale that applies to a numerical y-axis.',
1987
- pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1988
- type: 'string'
1989
- },
1990
- y2AxisScale: {
1991
- default: 'linear',
1992
- description: 'Specify the type of scale that applies to a numerical y2-axis.',
1993
- pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1994
- type: 'string'
1995
- },
1996
- // TODO: Figure out a way to explicitly support string value in addition to an array of strings
1997
- // as UDF won't allow users to proceed if a string value is entered due to schema validation
1998
- overlayFields: {
1999
- description: 'Specify field(s) that should be differentiated on the chart and displayed as chart overlays.',
2000
- type: ['array', 'string'],
2001
- items: {
2002
- type: 'string'
2003
- }
2004
- },
2005
- showOverlayY2Axis: {
2006
- default: false,
2007
- description: 'Enable a y2-axis for chart overlays. All overlay fields will be mapped to a second y-axis.',
2008
- type: 'boolean'
2009
- },
2010
- showRoundedY2AxisLabels: {
2011
- default: true,
2012
- description: 'Specify whether to round y2-axis values to the nearest integer.',
2013
- type: 'boolean'
2014
- },
2015
- y2Fields: {
2016
- default: '> y2 | getField()',
2017
- description: 'Specify field(s) that should be mapped to a second y-axis.',
2018
- type: ['array', 'string'],
2019
- items: {
2020
- type: 'string'
2021
- }
2022
- }
2023
- };
2024
1509
  var themes = {
2025
1510
  defaultBackgroundColor: function defaultBackgroundColor(props) {
2026
1511
  return (0, pick_1.default)({
@@ -2178,7 +1663,7 @@ var config = {
2178
1663
  dataContract: dataContract,
2179
1664
  size: size,
2180
1665
  defaultContext: defaultContext,
2181
- optionsSchema: optionsSchema,
1666
+ optionsSchema: visualization_schemas_1.lineOptionsSchema,
2182
1667
  editorConfig: editorConfig,
2183
1668
  events: {
2184
1669
  'legend.click': {