@splunk/visualizations 26.2.1 → 26.4.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 (150) hide show
  1. package/Area.config.js +92 -595
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +296 -801
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +93 -562
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +299 -770
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +84 -483
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +286 -687
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +77 -202
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +272 -400
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +93 -600
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +299 -808
  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 +233 -356
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +62 -283
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +326 -530
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +91 -220
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +267 -401
  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 +217 -327
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +92 -607
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +297 -814
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +75 -257
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +1755 -17415
  44. package/LinkGraph.js.map +1 -1
  45. package/MIGRATION.md +6 -0
  46. package/Map.config.js +128 -1123
  47. package/Map.config.js.map +1 -1
  48. package/Map.js +470 -782
  49. package/Map.js.map +1 -1
  50. package/Markdown.config.js +62 -189
  51. package/Markdown.config.js.map +1 -1
  52. package/Markdown.js +272 -401
  53. package/Markdown.js.map +1 -1
  54. package/MarkerGauge.config.js +138 -298
  55. package/MarkerGauge.config.js.map +1 -1
  56. package/MarkerGauge.js +309 -470
  57. package/MarkerGauge.js.map +1 -1
  58. package/ParallelCoordinates.config.js +72 -192
  59. package/ParallelCoordinates.config.js.map +1 -1
  60. package/ParallelCoordinates.js +333 -442
  61. package/ParallelCoordinates.js.map +1 -1
  62. package/Pie.config.js +77 -241
  63. package/Pie.config.js.map +1 -1
  64. package/Pie.js +336 -471
  65. package/Pie.js.map +1 -1
  66. package/Punchcard.config.js +72 -306
  67. package/Punchcard.config.js.map +1 -1
  68. package/Punchcard.js +356 -583
  69. package/Punchcard.js.map +1 -1
  70. package/Rectangle.config.js +211 -347
  71. package/Rectangle.config.js.map +1 -1
  72. package/Rectangle.js +371 -509
  73. package/Rectangle.js.map +1 -1
  74. package/Sankey.config.js +72 -214
  75. package/Sankey.config.js.map +1 -1
  76. package/Sankey.js +343 -475
  77. package/Sankey.js.map +1 -1
  78. package/Scatter.config.js +86 -464
  79. package/Scatter.config.js.map +1 -1
  80. package/Scatter.js +1118 -1493
  81. package/Scatter.js.map +1 -1
  82. package/SingleValue.config.js +124 -411
  83. package/SingleValue.config.js.map +1 -1
  84. package/SingleValue.js +522 -789
  85. package/SingleValue.js.map +1 -1
  86. package/SingleValueBasic.js +73 -61
  87. package/SingleValueBasic.js.map +1 -1
  88. package/SingleValueIcon.config.js +123 -380
  89. package/SingleValueIcon.config.js.map +1 -1
  90. package/SingleValueIcon.js +508 -745
  91. package/SingleValueIcon.js.map +1 -1
  92. package/SingleValueRadial.config.js +121 -385
  93. package/SingleValueRadial.config.js.map +1 -1
  94. package/SingleValueRadial.js +1642 -1885
  95. package/SingleValueRadial.js.map +1 -1
  96. package/SparkLine.js +39 -39
  97. package/SparkLine.js.map +1 -1
  98. package/Table.config.js +82 -496
  99. package/Table.config.js.map +1 -1
  100. package/Table.js +416 -825
  101. package/Table.js.map +1 -1
  102. package/common/Charting.js +37 -57
  103. package/common/Charting.js.map +1 -1
  104. package/common/DocExampleWithVizSandbox.js +21 -21
  105. package/common/DocExampleWithVizSandbox.js.map +1 -1
  106. package/common/EventsDoc.js +18 -18
  107. package/common/EventsDoc.js.map +1 -1
  108. package/common/GaugeMajorTicks.js +4 -4
  109. package/common/GaugeMajorTicks.js.map +1 -1
  110. package/common/GaugeValueMarker.js +2 -2
  111. package/common/GaugeValueMarker.js.map +1 -1
  112. package/common/OptionsDoc.js +4 -4
  113. package/common/OptionsDoc.js.map +1 -1
  114. package/common/OverviewDoc.js +39 -40
  115. package/common/OverviewDoc.js.map +1 -1
  116. package/common/SplunkVisualization.js +2 -2
  117. package/common/SplunkVisualization.js.map +1 -1
  118. package/common/SplunkVisualizationApi.js +2 -2
  119. package/common/SplunkVisualizationApi.js.map +1 -1
  120. package/common/ThemesDoc.js +19 -19
  121. package/common/ThemesDoc.js.map +1 -1
  122. package/common/chartingUtils.js +2 -2
  123. package/common/chartingUtils.js.map +1 -1
  124. package/common/gaugeUtils.js +10 -10
  125. package/common/gaugeUtils.js.map +1 -1
  126. package/common/shapeUtils.js +10 -10
  127. package/common/shapeUtils.js.map +1 -1
  128. package/common/utils/configUtils.js +25 -155
  129. package/common/utils/configUtils.js.map +1 -1
  130. package/common/utils/dataUtils.js +87 -105
  131. package/common/utils/dataUtils.js.map +1 -1
  132. package/common/utils/featureFlagUtils.js +4 -4
  133. package/common/utils/featureFlagUtils.js.map +1 -1
  134. package/common/utils/hocUtils.js +2 -2
  135. package/common/utils/hocUtils.js.map +1 -1
  136. package/common/utils/mapUtils.js +51 -54
  137. package/common/utils/mapUtils.js.map +1 -1
  138. package/common/utils/singleValueUtils.js +30 -18
  139. package/common/utils/singleValueUtils.js.map +1 -1
  140. package/common/utils/testHelper.js +7 -36
  141. package/common/utils/testHelper.js.map +1 -1
  142. package/common/utils/trellisUtils.js +7 -6
  143. package/common/utils/trellisUtils.js.map +1 -1
  144. package/common/utils/urlUtils.js +2 -2
  145. package/common/utils/urlUtils.js.map +1 -1
  146. package/common/withDashboardViz.js +93 -101
  147. package/common/withDashboardViz.js.map +1 -1
  148. package/package.json +48 -50
  149. package/common/utils/layoutUtils.js +0 -115
  150. package/common/utils/layoutUtils.js.map +0 -1
package/Scatter.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 = 74);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 65);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -109,25 +109,18 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@splunk/themes/variables");
113
-
114
- /***/ }),
115
-
116
- /***/ 11:
117
- /***/ (function(module, exports) {
118
-
119
112
  module.exports = require("@splunk/visualization-icons/placeholders");
120
113
 
121
114
  /***/ }),
122
115
 
123
- /***/ 12:
116
+ /***/ 11:
124
117
  /***/ (function(module, exports) {
125
118
 
126
119
  module.exports = require("@splunk/visualization-icons");
127
120
 
128
121
  /***/ }),
129
122
 
130
- /***/ 13:
123
+ /***/ 12:
131
124
  /***/ (function(module, exports, __webpack_require__) {
132
125
 
133
126
  "use strict";
@@ -144,7 +137,7 @@ var background = function background(_ref) {
144
137
  themes = _ref.themes,
145
138
  labelPosition = _ref.labelPosition;
146
139
  return [{
147
- label: (0, i18n_1._)(label || 'Background'),
140
+ label: (0, i18n_1._)(label || 'Background color'),
148
141
  option: 'backgroundColor',
149
142
  editor: 'editor.color',
150
143
  editorProps: {
@@ -159,13 +152,6 @@ exports.default = background;
159
152
  /***/ }),
160
153
 
161
154
  /***/ 14:
162
- /***/ (function(module, exports) {
163
-
164
- module.exports = require("@splunk/visualization-color-palettes");
165
-
166
- /***/ }),
167
-
168
- /***/ 16:
169
155
  /***/ (function(module, exports, __webpack_require__) {
170
156
 
171
157
  "use strict";
@@ -180,7 +166,7 @@ exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble =
180
166
 
181
167
  var i18n_1 = __webpack_require__(0);
182
168
 
183
- var configUtils_1 = __webpack_require__(4);
169
+ var configUtils_1 = __webpack_require__(3);
184
170
 
185
171
  var AxesChartDataConfig = {
186
172
  label: (0, i18n_1._)('Data configurations'),
@@ -306,7 +292,7 @@ exports.default = AxesChartDataConfig;
306
292
 
307
293
  /***/ }),
308
294
 
309
- /***/ 17:
295
+ /***/ 15:
310
296
  /***/ (function(module, exports, __webpack_require__) {
311
297
 
312
298
  "use strict";
@@ -318,11 +304,11 @@ Object.defineProperty(exports, "__esModule", {
318
304
 
319
305
  var i18n_1 = __webpack_require__(0);
320
306
 
321
- var pick_1 = __webpack_require__(9);
307
+ var pick_1 = __webpack_require__(8);
322
308
 
323
- var variables_1 = __webpack_require__(10);
309
+ var variables_1 = __webpack_require__(9);
324
310
 
325
- var BackgroundColor_1 = __webpack_require__(13);
311
+ var BackgroundColor_1 = __webpack_require__(12);
326
312
 
327
313
  var themes = {
328
314
  defaultBackgroundColor: function defaultBackgroundColor(props) {
@@ -353,7 +339,7 @@ exports.default = AxesChartColorAndStyle;
353
339
 
354
340
  /***/ }),
355
341
 
356
- /***/ 18:
342
+ /***/ 16:
357
343
  /***/ (function(module, exports, __webpack_require__) {
358
344
 
359
345
  "use strict";
@@ -418,7 +404,7 @@ exports.default = AxesChartLegend;
418
404
 
419
405
  /***/ }),
420
406
 
421
- /***/ 19:
407
+ /***/ 17:
422
408
  /***/ (function(module, exports, __webpack_require__) {
423
409
 
424
410
  "use strict";
@@ -433,7 +419,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCo
433
419
 
434
420
  var i18n_1 = __webpack_require__(0);
435
421
 
436
- var configUtils_1 = __webpack_require__(4);
422
+ var configUtils_1 = __webpack_require__(3);
437
423
 
438
424
  exports.AxesChartXGridAndLabelsCommon = {
439
425
  label: (0, i18n_1._)('X-axis grid and labels'),
@@ -707,47 +693,7 @@ exports.default = AxesChartXGridAndLabels;
707
693
 
708
694
  /***/ }),
709
695
 
710
- /***/ 2:
711
- /***/ (function(module, exports, __webpack_require__) {
712
-
713
- "use strict";
714
-
715
-
716
- Object.defineProperty(exports, "__esModule", {
717
- value: true
718
- });
719
- exports.VizBehavior = void 0;
720
- var VizBehavior;
721
-
722
- (function (VizBehavior) {
723
- /**
724
- * Dynamic Options Behavior.
725
- * This allows visualization options to be powered by data
726
- *
727
- * **Example**
728
- *
729
- * sparklineValues: ">primary|seriesByIndex(0)"
730
- * would configure sparklineValues with an array of data points
731
- * coming from the first series in the primary datasource
732
- *
733
- */
734
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
735
- VizBehavior["EVENTS"] = "events";
736
- VizBehavior["DOWNSAMPLING"] = "downsampling";
737
- /**
738
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
739
- * missing.
740
- * @type {string}
741
- */
742
-
743
- VizBehavior["PLACEHOLDER"] = "placeholder";
744
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
745
- VizBehavior["TRELLIS"] = "trellis";
746
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
747
-
748
- /***/ }),
749
-
750
- /***/ 20:
696
+ /***/ 18:
751
697
  /***/ (function(module, exports, __webpack_require__) {
752
698
 
753
699
  "use strict";
@@ -910,14 +856,14 @@ exports.default = AxesChartYGridAndLabels;
910
856
 
911
857
  /***/ }),
912
858
 
913
- /***/ 3:
859
+ /***/ 2:
914
860
  /***/ (function(module, exports) {
915
861
 
916
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
862
+ module.exports = require("@splunk/visualization-schemas");
917
863
 
918
864
  /***/ }),
919
865
 
920
- /***/ 4:
866
+ /***/ 3:
921
867
  /***/ (function(module, exports, __webpack_require__) {
922
868
 
923
869
  "use strict";
@@ -925,97 +871,22 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
925
871
 
926
872
  var _toConsumableArray = __webpack_require__(1);
927
873
 
928
- var _defineProperty = __webpack_require__(7);
929
-
930
- var __rest = this && this.__rest || function (s, e) {
931
- var t = {};
932
-
933
- for (var p in s) {
934
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
935
- }
936
-
937
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
938
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
939
- }
940
- return t;
941
- };
942
-
943
874
  Object.defineProperty(exports, "__esModule", {
944
875
  value: true
945
876
  });
946
- exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
877
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
947
878
 
948
- var lodash_1 = __webpack_require__(6);
879
+ var lodash_1 = __webpack_require__(5); // included for backwards compatibility
949
880
 
950
- var schemaUtils_1 = __webpack_require__(3);
951
881
 
952
- var VizBehavior_1 = __webpack_require__(2);
882
+ var visualization_schemas_1 = __webpack_require__(2);
953
883
 
954
- var dynamicOptionsDSLType = {
955
- type: 'string',
956
- pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
957
- };
958
- /**
959
- * Helper function to extend an options schema with dynamic options DSL
960
- * @param optionsSchema a visualization's options schema
961
- * @returns an updated options schema that additionally allows strings starting with > for each option
962
- */
963
-
964
- function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
965
- var enhancedOptionsSchema = {};
966
- Object.keys(optionsSchema).forEach(function (key) {
967
- var _a = optionsSchema[key],
968
- title = _a.title,
969
- description = _a.description,
970
- readOnly = _a.readOnly,
971
- writeOnly = _a.writeOnly,
972
- examples = _a.examples,
973
- defaultValue = _a.default,
974
- type = _a.type,
975
- properties = _a.properties,
976
- patternProperties = _a.patternProperties,
977
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
978
-
979
- var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
980
- title: title
981
- }), description !== undefined && {
982
- description: description
983
- }), readOnly !== undefined && {
984
- readOnly: readOnly
985
- }), writeOnly !== undefined && {
986
- writeOnly: writeOnly
987
- }), examples !== undefined && {
988
- examples: examples
989
- }), defaultValue !== undefined && {
990
- default: defaultValue
991
- });
992
-
993
- if (type === 'object') {
994
- enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
995
- type: type
996
- }), properties && {
997
- properties: enhanceOptionsSchemaWithDynamicOptions(properties)
998
- });
999
-
1000
- if (patternProperties) {
1001
- var enhancedPatternProperties = {};
1002
- Object.keys(patternProperties).forEach(function (opt) {
1003
- enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
1004
- });
1005
- enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
1006
- }
1007
- } else {
1008
- enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
1009
- anyOf: [Object.assign(Object.assign({}, type !== undefined && {
1010
- type: type
1011
- }), remainingSchemaEntry), dynamicOptionsDSLType]
1012
- });
1013
- }
1014
- });
1015
- return enhancedOptionsSchema;
1016
- }
1017
-
1018
- exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
884
+ Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
885
+ enumerable: true,
886
+ get: function get() {
887
+ return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
888
+ }
889
+ });
1019
890
  /**
1020
891
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
1021
892
  * this function also collapse all editor panels
@@ -1026,11 +897,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
1026
897
 
1027
898
  function enhanceConfig(vizConfig) {
1028
899
  var enhancedConfig = Object.assign({}, vizConfig);
1029
-
1030
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
1031
- enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
1032
- }
1033
-
1034
900
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
1035
901
  return Object.assign(Object.assign({}, config), {
1036
902
  open: config.open || false
@@ -1154,21 +1020,54 @@ exports.insertLayout = insertLayout;
1154
1020
 
1155
1021
  /***/ }),
1156
1022
 
1157
- /***/ 6:
1023
+ /***/ 5:
1158
1024
  /***/ (function(module, exports) {
1159
1025
 
1160
1026
  module.exports = require("lodash");
1161
1027
 
1162
1028
  /***/ }),
1163
1029
 
1164
- /***/ 7:
1165
- /***/ (function(module, exports) {
1030
+ /***/ 6:
1031
+ /***/ (function(module, exports, __webpack_require__) {
1032
+
1033
+ "use strict";
1034
+
1035
+
1036
+ Object.defineProperty(exports, "__esModule", {
1037
+ value: true
1038
+ });
1039
+ exports.VizBehavior = void 0;
1040
+ var VizBehavior;
1041
+
1042
+ (function (VizBehavior) {
1043
+ /**
1044
+ * Dynamic Options Behavior.
1045
+ * This allows visualization options to be powered by data
1046
+ *
1047
+ * **Example**
1048
+ *
1049
+ * sparklineValues: ">primary|seriesByIndex(0)"
1050
+ * would configure sparklineValues with an array of data points
1051
+ * coming from the first series in the primary datasource
1052
+ *
1053
+ */
1054
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
1055
+ VizBehavior["EVENTS"] = "events";
1056
+ VizBehavior["DOWNSAMPLING"] = "downsampling";
1057
+ /**
1058
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
1059
+ * missing.
1060
+ * @type {string}
1061
+ */
1166
1062
 
1167
- module.exports = require("@babel/runtime/helpers/defineProperty");
1063
+ VizBehavior["PLACEHOLDER"] = "placeholder";
1064
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
1065
+ VizBehavior["TRELLIS"] = "trellis";
1066
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
1168
1067
 
1169
1068
  /***/ }),
1170
1069
 
1171
- /***/ 74:
1070
+ /***/ 65:
1172
1071
  /***/ (function(module, exports, __webpack_require__) {
1173
1072
 
1174
1073
  "use strict";
@@ -1179,37 +1078,34 @@ var _toConsumableArray = __webpack_require__(1);
1179
1078
  Object.defineProperty(exports, "__esModule", {
1180
1079
  value: true
1181
1080
  });
1182
- exports.optionsSchema = void 0;
1183
1081
 
1184
- var visualization_icons_1 = __webpack_require__(12);
1082
+ var visualization_icons_1 = __webpack_require__(11);
1185
1083
 
1186
- var placeholders_1 = __webpack_require__(11);
1084
+ var placeholders_1 = __webpack_require__(10);
1187
1085
 
1188
- var pick_1 = __webpack_require__(9);
1086
+ var pick_1 = __webpack_require__(8);
1189
1087
 
1190
- var variables_1 = __webpack_require__(10);
1088
+ var variables_1 = __webpack_require__(9);
1191
1089
 
1192
- var schemaUtils_1 = __webpack_require__(3);
1193
-
1194
- var visualization_color_palettes_1 = __webpack_require__(14);
1090
+ var visualization_schemas_1 = __webpack_require__(2);
1195
1091
 
1196
1092
  var i18n_1 = __webpack_require__(0);
1197
1093
 
1198
- var VizBehavior_1 = __webpack_require__(2);
1094
+ var VizBehavior_1 = __webpack_require__(6);
1199
1095
 
1200
- var VizCategory_1 = __webpack_require__(8);
1096
+ var VizCategory_1 = __webpack_require__(7);
1201
1097
 
1202
- var configUtils_1 = __webpack_require__(4);
1098
+ var configUtils_1 = __webpack_require__(3);
1203
1099
 
1204
- var AxesChartDataConfig_1 = __webpack_require__(16);
1100
+ var AxesChartDataConfig_1 = __webpack_require__(14);
1205
1101
 
1206
- var AxesChartXGridAndLabels_1 = __webpack_require__(19);
1102
+ var AxesChartXGridAndLabels_1 = __webpack_require__(17);
1207
1103
 
1208
- var AxesChartColorAndStyle_1 = __webpack_require__(17);
1104
+ var AxesChartColorAndStyle_1 = __webpack_require__(15);
1209
1105
 
1210
- var AxesChartLegend_1 = __webpack_require__(18);
1106
+ var AxesChartLegend_1 = __webpack_require__(16);
1211
1107
 
1212
- var AxesChartYGridAndLabels_1 = __webpack_require__(20);
1108
+ var AxesChartYGridAndLabels_1 = __webpack_require__(18);
1213
1109
 
1214
1110
  var dataContract = {
1215
1111
  requiredDataSources: [{
@@ -1238,287 +1134,6 @@ var size = {
1238
1134
  initialHeight: 300
1239
1135
  };
1240
1136
  var defaultContext = {};
1241
- exports.optionsSchema = {
1242
- x: {
1243
- default: '> primary | seriesByIndex(0)',
1244
- description: 'Specify the dataSource applied to the x-axis.',
1245
- type: 'array',
1246
- items: {
1247
- type: ['string', 'number']
1248
- }
1249
- },
1250
- y: {
1251
- default: '> primary | seriesByIndex(1)',
1252
- description: 'Specify the dataSource applied to the y-axis.',
1253
- type: 'array',
1254
- items: {
1255
- type: ['string', 'number']
1256
- }
1257
- },
1258
- category: {
1259
- description: 'Specify a sequence of dataSource events to be plotted on the chart.',
1260
- type: 'array',
1261
- items: {
1262
- type: ['string', 'number']
1263
- },
1264
- default: '> primary | seriesByIndex(2)'
1265
- },
1266
- xField: {
1267
- default: '> x | getField()',
1268
- description: 'Specify the field that should be mapped to the x-axis.',
1269
- type: 'string'
1270
- },
1271
- yField: {
1272
- default: '> y | getField()',
1273
- description: 'Specify the field that should be mapped to the y-axis.',
1274
- type: 'string'
1275
- },
1276
- categoryField: {
1277
- default: '> category | getField()',
1278
- description: 'Specify the field that should be mapped to the series categories.',
1279
- type: 'string'
1280
- },
1281
- backgroundColor: {
1282
- default: '> themes.defaultBackgroundColor',
1283
- description: 'Specify the color used for the background. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
1284
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
1285
- type: 'string'
1286
- },
1287
- legendDisplay: {
1288
- default: 'right',
1289
- description: 'Specify the location of the legend on the panel.',
1290
- pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
1291
- type: 'string'
1292
- },
1293
- legendTruncation: {
1294
- default: 'ellipsisEnd',
1295
- description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
1296
- pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
1297
- type: 'string'
1298
- },
1299
- markerSize: {
1300
- description: 'Specify, in pixels, the size of each scatter marker.',
1301
- type: 'number',
1302
- default: 4
1303
- },
1304
- resultLimit: {
1305
- default: 50000,
1306
- description: 'Specify the number of data points rendered in a chart.',
1307
- type: 'number'
1308
- },
1309
- seriesColors: {
1310
- default: visualization_color_palettes_1.VIZ_CATEGORICAL,
1311
- description: 'Specify the colors used for a series. For example, ["#FF0000", "#0000FF", "#008000"].',
1312
- type: 'array',
1313
- items: {
1314
- type: 'string'
1315
- }
1316
- },
1317
- seriesColorsByField: {
1318
- description: 'Specify the colors to use for specific categories, or series names, derived from distinct values in the selected category field. For example, {"user1": "#008000", "user2": "#FFA500"}.',
1319
- type: 'object'
1320
- },
1321
- showXAxisExtendedRange: {
1322
- default: true,
1323
- description: 'Specify whether the x-axis should be extended to snap to whole major tick marks.',
1324
- type: 'boolean'
1325
- },
1326
- showYAxisExtendedRange: {
1327
- default: true,
1328
- description: 'Specify whether the y-axis should be extended to snap to whole major tick marks.',
1329
- type: 'boolean'
1330
- },
1331
- showXAxisWithZero: {
1332
- default: false,
1333
- description: 'Specify whether the x-axis range includes zero.',
1334
- type: 'boolean'
1335
- },
1336
- showYAxisWithZero: {
1337
- default: false,
1338
- description: 'Specify whether the y-axis range includes zero.',
1339
- type: 'boolean'
1340
- },
1341
- showRoundedXAxisLabels: {
1342
- default: false,
1343
- description: 'Specify whether to round x-axis values to the nearest integer.',
1344
- type: 'boolean'
1345
- },
1346
- // TODO: figure out if we want to change splunk-charting behavior for Bubble/Scatter, which hardcodes XMajorGridlines to false
1347
- // showXMajorGridLines: {
1348
- // default: false,
1349
- // description: 'Specify whether major grid lines are visible on the x-axis.',
1350
- // type: 'boolean',
1351
- // },
1352
- showYMajorGridLines: {
1353
- default: true,
1354
- description: 'Specify whether major grid lines are visible on the y-axis.',
1355
- type: 'boolean'
1356
- },
1357
- showXMinorGridLines: {
1358
- default: false,
1359
- description: 'Specify whether minor grid lines are visible on the x-axis.',
1360
- type: 'boolean'
1361
- },
1362
- showYMinorGridLines: {
1363
- default: false,
1364
- description: 'Specify whether minor grid lines are visible on the y-axis.',
1365
- type: 'boolean'
1366
- },
1367
- xAxisLabelRotation: {
1368
- default: 0,
1369
- description: 'Specify the rotation of the x-axis labels in degrees.',
1370
- type: 'number',
1371
- enum: [-90, -45, 0, 45, 90]
1372
- },
1373
- xAxisAbbreviation: {
1374
- default: 'off',
1375
- description: 'Specify whether to abbreviate large x-axis values with the closest SI prefix.',
1376
- enum: ['off', 'auto'],
1377
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
1378
- type: 'string'
1379
- },
1380
- yAxisAbbreviation: {
1381
- default: 'auto',
1382
- description: 'Specify whether to abbreviate large y-axis values with the closest SI prefix.',
1383
- enum: ['off', 'auto'],
1384
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
1385
- type: 'string'
1386
- },
1387
- xAxisLabelVisibility: {
1388
- default: 'auto',
1389
- description: 'Specify whether to show or hide labels on the x-axis.',
1390
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1391
- type: 'string'
1392
- },
1393
- yAxisLabelVisibility: {
1394
- default: 'auto',
1395
- description: 'Specify whether to show or hide labels on the y-axis.',
1396
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1397
- type: 'string'
1398
- },
1399
- xAxisLineVisibility: {
1400
- default: 'hide',
1401
- description: 'Specify whether to show or hide the x-axis line.',
1402
- enum: ['hide', 'show'],
1403
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1404
- type: 'string'
1405
- },
1406
- yAxisLineVisibility: {
1407
- default: 'hide',
1408
- description: 'Specify whether to show or hide the y-axis line.',
1409
- enum: ['hide', 'show'],
1410
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1411
- type: 'string'
1412
- },
1413
- xAxisMajorTickInterval: {
1414
- default: 'auto',
1415
- description: 'Specify the spacing interval at which to place major tick marks along the numeric x-axis. By default, this value is automatically calculated based on the scale of the related axis.',
1416
- type: ['string', 'number']
1417
- },
1418
- yAxisMajorTickInterval: {
1419
- default: 'auto',
1420
- description: 'Specify the spacing interval at which to place major tick marks along the numeric y-axis. By default, this value is automatically calculated based on the scale of the related axis.',
1421
- type: ['string', 'number']
1422
- },
1423
- xAxisMajorTickSize: {
1424
- default: 6,
1425
- description: 'Specify the size, in pixels, of major tick marks on the x-axis.',
1426
- type: 'number'
1427
- },
1428
- yAxisMajorTickSize: {
1429
- default: 6,
1430
- description: 'Specify the size, in pixels, of major tick marks on the y-axis.',
1431
- type: 'number'
1432
- },
1433
- xAxisMinorTickSize: {
1434
- default: 6,
1435
- description: 'Specify the size, in pixels, of minor tick marks on the x-axis.',
1436
- type: 'number'
1437
- },
1438
- yAxisMinorTickSize: {
1439
- default: 6,
1440
- description: 'Specify the size, in pixels, of minor tick marks on the y-axis.',
1441
- type: 'number'
1442
- },
1443
- xAxisMajorTickVisibility: {
1444
- default: 'auto',
1445
- description: 'Specify whether to show or hide major tick marks on the x-axis.',
1446
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1447
- type: 'string'
1448
- },
1449
- yAxisMajorTickVisibility: {
1450
- default: 'auto',
1451
- description: 'Specify whether to show or hide major tick marks on the y-axis.',
1452
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1453
- type: 'string'
1454
- },
1455
- xAxisMinorTickVisibility: {
1456
- default: 'auto',
1457
- description: 'Specify whether to show or hide minor tick marks on the x-axis .',
1458
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1459
- type: 'string'
1460
- },
1461
- yAxisMinorTickVisibility: {
1462
- default: 'auto',
1463
- description: 'Specify whether to show or hide minor tick marks on the y-axis.',
1464
- pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1465
- type: 'string'
1466
- },
1467
- xAxisMax: {
1468
- default: 'auto',
1469
- description: 'Specify the maximum number for the range of the visible x-axis.',
1470
- type: ['string', 'number']
1471
- },
1472
- yAxisMax: {
1473
- default: 'auto',
1474
- description: 'Specify the maximum number for the range of the visible y-axis.',
1475
- type: ['string', 'number']
1476
- },
1477
- xAxisMin: {
1478
- default: 'auto',
1479
- description: 'Specify the minimum number for the range of the visible x-axis.',
1480
- type: ['string', 'number']
1481
- },
1482
- yAxisMin: {
1483
- default: 'auto',
1484
- description: 'Specify the minimum number for the range of the visible y-axis.',
1485
- type: ['string', 'number']
1486
- },
1487
- xAxisScale: {
1488
- default: 'linear',
1489
- description: 'Specify the type of scale that applies to a numerical x-axis.',
1490
- pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1491
- type: 'string'
1492
- },
1493
- yAxisScale: {
1494
- default: 'linear',
1495
- description: 'Specify the type of scale that applies to a numerical y-axis.',
1496
- pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1497
- type: 'string'
1498
- },
1499
- xAxisTitleText: {
1500
- description: 'Specify the title of the x-axis.',
1501
- type: 'string'
1502
- },
1503
- yAxisTitleText: {
1504
- description: 'Specify the title of the y-axis.',
1505
- type: 'string'
1506
- },
1507
- xAxisTitleVisibility: {
1508
- default: 'show',
1509
- description: 'Specify whether to show or hide the title of the x-axis.',
1510
- enum: ['hide', 'show'],
1511
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1512
- type: 'string'
1513
- },
1514
- yAxisTitleVisibility: {
1515
- default: 'show',
1516
- description: 'Specify whether to show or hide the title of the y-axis.',
1517
- enum: ['hide', 'show'],
1518
- pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1519
- type: 'string'
1520
- }
1521
- };
1522
1137
  var themes = {
1523
1138
  defaultBackgroundColor: function defaultBackgroundColor(props) {
1524
1139
  return (0, pick_1.default)({
@@ -1574,7 +1189,7 @@ var config = {
1574
1189
  dataContract: dataContract,
1575
1190
  size: size,
1576
1191
  defaultContext: defaultContext,
1577
- optionsSchema: exports.optionsSchema,
1192
+ optionsSchema: visualization_schemas_1.scatterOptionsSchema,
1578
1193
  editorConfig: editorConfig,
1579
1194
  events: {
1580
1195
  'legend.click': {
@@ -1591,7 +1206,7 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
1591
1206
 
1592
1207
  /***/ }),
1593
1208
 
1594
- /***/ 8:
1209
+ /***/ 7:
1595
1210
  /***/ (function(module, exports, __webpack_require__) {
1596
1211
 
1597
1212
  "use strict";
@@ -1620,11 +1235,18 @@ var VizCategory;
1620
1235
 
1621
1236
  /***/ }),
1622
1237
 
1623
- /***/ 9:
1238
+ /***/ 8:
1624
1239
  /***/ (function(module, exports) {
1625
1240
 
1626
1241
  module.exports = require("@splunk/themes/pick");
1627
1242
 
1243
+ /***/ }),
1244
+
1245
+ /***/ 9:
1246
+ /***/ (function(module, exports) {
1247
+
1248
+ module.exports = require("@splunk/themes/variables");
1249
+
1628
1250
  /***/ })
1629
1251
 
1630
1252
  /******/ });