@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.
- package/Area.config.js +92 -595
- package/Area.config.js.map +1 -1
- package/Area.js +296 -801
- package/Area.js.map +1 -1
- package/Bar.config.js +93 -562
- package/Bar.config.js.map +1 -1
- package/Bar.js +299 -770
- package/Bar.js.map +1 -1
- package/Bubble.config.js +84 -483
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +286 -687
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +77 -202
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +272 -400
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +93 -600
- package/Column.config.js.map +1 -1
- package/Column.js +299 -808
- package/Column.js.map +1 -1
- package/Ellipse.config.js +82 -200
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +233 -356
- package/Ellipse.js.map +1 -1
- package/Events.config.js +62 -283
- package/Events.config.js.map +1 -1
- package/Events.js +326 -530
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +91 -220
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +267 -401
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +61 -157
- package/Image.config.js.map +1 -1
- package/Image.js +217 -327
- package/Image.js.map +1 -1
- package/Line.config.js +92 -607
- package/Line.config.js.map +1 -1
- package/Line.js +297 -814
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +75 -257
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +1755 -17415
- package/LinkGraph.js.map +1 -1
- package/MIGRATION.md +6 -0
- package/Map.config.js +128 -1123
- package/Map.config.js.map +1 -1
- package/Map.js +470 -782
- package/Map.js.map +1 -1
- package/Markdown.config.js +62 -189
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +272 -401
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +138 -298
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +309 -470
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +72 -192
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +333 -442
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +77 -241
- package/Pie.config.js.map +1 -1
- package/Pie.js +336 -471
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +72 -306
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +356 -583
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +211 -347
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +371 -509
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +72 -214
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +343 -475
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +86 -464
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +1118 -1493
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +124 -411
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +522 -789
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +73 -61
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +123 -380
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +508 -745
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +121 -385
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +1642 -1885
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +39 -39
- package/SparkLine.js.map +1 -1
- package/Table.config.js +82 -496
- package/Table.config.js.map +1 -1
- package/Table.js +416 -825
- package/Table.js.map +1 -1
- package/common/Charting.js +37 -57
- package/common/Charting.js.map +1 -1
- package/common/DocExampleWithVizSandbox.js +21 -21
- package/common/DocExampleWithVizSandbox.js.map +1 -1
- package/common/EventsDoc.js +18 -18
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +4 -4
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +2 -2
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +4 -4
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +39 -40
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +2 -2
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +19 -19
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +2 -2
- package/common/chartingUtils.js.map +1 -1
- package/common/gaugeUtils.js +10 -10
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +10 -10
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +25 -155
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/dataUtils.js +87 -105
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/featureFlagUtils.js +4 -4
- package/common/utils/featureFlagUtils.js.map +1 -1
- package/common/utils/hocUtils.js +2 -2
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/mapUtils.js +51 -54
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +30 -18
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +7 -36
- package/common/utils/testHelper.js.map +1 -1
- package/common/utils/trellisUtils.js +7 -6
- package/common/utils/trellisUtils.js.map +1 -1
- package/common/utils/urlUtils.js +2 -2
- package/common/utils/urlUtils.js.map +1 -1
- package/common/withDashboardViz.js +93 -101
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +48 -50
- package/common/utils/layoutUtils.js +0 -115
- package/common/utils/layoutUtils.js.map +0 -1
package/Punchcard.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 =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 61);
|
|
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
|
-
/***/
|
|
116
|
+
/***/ 11:
|
|
124
117
|
/***/ (function(module, exports) {
|
|
125
118
|
|
|
126
119
|
module.exports = require("@splunk/visualization-icons");
|
|
127
120
|
|
|
128
121
|
/***/ }),
|
|
129
122
|
|
|
130
|
-
/***/
|
|
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: {
|
|
@@ -158,61 +151,14 @@ exports.default = background;
|
|
|
158
151
|
|
|
159
152
|
/***/ }),
|
|
160
153
|
|
|
161
|
-
/***/ 14:
|
|
162
|
-
/***/ (function(module, exports) {
|
|
163
|
-
|
|
164
|
-
module.exports = require("@splunk/visualization-color-palettes");
|
|
165
|
-
|
|
166
|
-
/***/ }),
|
|
167
|
-
|
|
168
154
|
/***/ 2:
|
|
169
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
170
|
-
|
|
171
|
-
"use strict";
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
Object.defineProperty(exports, "__esModule", {
|
|
175
|
-
value: true
|
|
176
|
-
});
|
|
177
|
-
exports.VizBehavior = void 0;
|
|
178
|
-
var VizBehavior;
|
|
179
|
-
|
|
180
|
-
(function (VizBehavior) {
|
|
181
|
-
/**
|
|
182
|
-
* Dynamic Options Behavior.
|
|
183
|
-
* This allows visualization options to be powered by data
|
|
184
|
-
*
|
|
185
|
-
* **Example**
|
|
186
|
-
*
|
|
187
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
188
|
-
* would configure sparklineValues with an array of data points
|
|
189
|
-
* coming from the first series in the primary datasource
|
|
190
|
-
*
|
|
191
|
-
*/
|
|
192
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
193
|
-
VizBehavior["EVENTS"] = "events";
|
|
194
|
-
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
195
|
-
/**
|
|
196
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
197
|
-
* missing.
|
|
198
|
-
* @type {string}
|
|
199
|
-
*/
|
|
200
|
-
|
|
201
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
202
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
203
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
204
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
205
|
-
|
|
206
|
-
/***/ }),
|
|
207
|
-
|
|
208
|
-
/***/ 3:
|
|
209
155
|
/***/ (function(module, exports) {
|
|
210
156
|
|
|
211
|
-
module.exports = require("@splunk/
|
|
157
|
+
module.exports = require("@splunk/visualization-schemas");
|
|
212
158
|
|
|
213
159
|
/***/ }),
|
|
214
160
|
|
|
215
|
-
/***/
|
|
161
|
+
/***/ 3:
|
|
216
162
|
/***/ (function(module, exports, __webpack_require__) {
|
|
217
163
|
|
|
218
164
|
"use strict";
|
|
@@ -220,97 +166,22 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
220
166
|
|
|
221
167
|
var _toConsumableArray = __webpack_require__(1);
|
|
222
168
|
|
|
223
|
-
var _defineProperty = __webpack_require__(7);
|
|
224
|
-
|
|
225
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
226
|
-
var t = {};
|
|
227
|
-
|
|
228
|
-
for (var p in s) {
|
|
229
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
233
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
234
|
-
}
|
|
235
|
-
return t;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
169
|
Object.defineProperty(exports, "__esModule", {
|
|
239
170
|
value: true
|
|
240
171
|
});
|
|
241
|
-
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.
|
|
242
|
-
|
|
243
|
-
var lodash_1 = __webpack_require__(6);
|
|
244
|
-
|
|
245
|
-
var schemaUtils_1 = __webpack_require__(3);
|
|
172
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
246
173
|
|
|
247
|
-
var
|
|
174
|
+
var lodash_1 = __webpack_require__(5); // included for backwards compatibility
|
|
248
175
|
|
|
249
|
-
var dynamicOptionsDSLType = {
|
|
250
|
-
type: 'string',
|
|
251
|
-
pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
|
|
252
|
-
};
|
|
253
|
-
/**
|
|
254
|
-
* Helper function to extend an options schema with dynamic options DSL
|
|
255
|
-
* @param optionsSchema a visualization's options schema
|
|
256
|
-
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
257
|
-
*/
|
|
258
|
-
|
|
259
|
-
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
260
|
-
var enhancedOptionsSchema = {};
|
|
261
|
-
Object.keys(optionsSchema).forEach(function (key) {
|
|
262
|
-
var _a = optionsSchema[key],
|
|
263
|
-
title = _a.title,
|
|
264
|
-
description = _a.description,
|
|
265
|
-
readOnly = _a.readOnly,
|
|
266
|
-
writeOnly = _a.writeOnly,
|
|
267
|
-
examples = _a.examples,
|
|
268
|
-
defaultValue = _a.default,
|
|
269
|
-
type = _a.type,
|
|
270
|
-
properties = _a.properties,
|
|
271
|
-
patternProperties = _a.patternProperties,
|
|
272
|
-
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
273
|
-
|
|
274
|
-
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
275
|
-
title: title
|
|
276
|
-
}), description !== undefined && {
|
|
277
|
-
description: description
|
|
278
|
-
}), readOnly !== undefined && {
|
|
279
|
-
readOnly: readOnly
|
|
280
|
-
}), writeOnly !== undefined && {
|
|
281
|
-
writeOnly: writeOnly
|
|
282
|
-
}), examples !== undefined && {
|
|
283
|
-
examples: examples
|
|
284
|
-
}), defaultValue !== undefined && {
|
|
285
|
-
default: defaultValue
|
|
286
|
-
});
|
|
287
176
|
|
|
288
|
-
|
|
289
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
290
|
-
type: type
|
|
291
|
-
}), properties && {
|
|
292
|
-
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
293
|
-
});
|
|
294
|
-
|
|
295
|
-
if (patternProperties) {
|
|
296
|
-
var enhancedPatternProperties = {};
|
|
297
|
-
Object.keys(patternProperties).forEach(function (opt) {
|
|
298
|
-
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
299
|
-
});
|
|
300
|
-
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
301
|
-
}
|
|
302
|
-
} else {
|
|
303
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
304
|
-
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
305
|
-
type: type
|
|
306
|
-
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
return enhancedOptionsSchema;
|
|
311
|
-
}
|
|
177
|
+
var visualization_schemas_1 = __webpack_require__(2);
|
|
312
178
|
|
|
313
|
-
exports
|
|
179
|
+
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function get() {
|
|
182
|
+
return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
|
|
183
|
+
}
|
|
184
|
+
});
|
|
314
185
|
/**
|
|
315
186
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
316
187
|
* this function also collapse all editor panels
|
|
@@ -321,11 +192,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
|
|
|
321
192
|
|
|
322
193
|
function enhanceConfig(vizConfig) {
|
|
323
194
|
var enhancedConfig = Object.assign({}, vizConfig);
|
|
324
|
-
|
|
325
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
|
|
326
|
-
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
195
|
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
330
196
|
return Object.assign(Object.assign({}, config), {
|
|
331
197
|
open: config.open || false
|
|
@@ -449,21 +315,54 @@ exports.insertLayout = insertLayout;
|
|
|
449
315
|
|
|
450
316
|
/***/ }),
|
|
451
317
|
|
|
452
|
-
/***/
|
|
318
|
+
/***/ 5:
|
|
453
319
|
/***/ (function(module, exports) {
|
|
454
320
|
|
|
455
321
|
module.exports = require("lodash");
|
|
456
322
|
|
|
457
323
|
/***/ }),
|
|
458
324
|
|
|
459
|
-
/***/
|
|
460
|
-
/***/ (function(module, exports) {
|
|
325
|
+
/***/ 6:
|
|
326
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
327
|
+
|
|
328
|
+
"use strict";
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
Object.defineProperty(exports, "__esModule", {
|
|
332
|
+
value: true
|
|
333
|
+
});
|
|
334
|
+
exports.VizBehavior = void 0;
|
|
335
|
+
var VizBehavior;
|
|
336
|
+
|
|
337
|
+
(function (VizBehavior) {
|
|
338
|
+
/**
|
|
339
|
+
* Dynamic Options Behavior.
|
|
340
|
+
* This allows visualization options to be powered by data
|
|
341
|
+
*
|
|
342
|
+
* **Example**
|
|
343
|
+
*
|
|
344
|
+
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
345
|
+
* would configure sparklineValues with an array of data points
|
|
346
|
+
* coming from the first series in the primary datasource
|
|
347
|
+
*
|
|
348
|
+
*/
|
|
349
|
+
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
350
|
+
VizBehavior["EVENTS"] = "events";
|
|
351
|
+
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
352
|
+
/**
|
|
353
|
+
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
354
|
+
* missing.
|
|
355
|
+
* @type {string}
|
|
356
|
+
*/
|
|
461
357
|
|
|
462
|
-
|
|
358
|
+
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
359
|
+
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
360
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
361
|
+
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
463
362
|
|
|
464
363
|
/***/ }),
|
|
465
364
|
|
|
466
|
-
/***/
|
|
365
|
+
/***/ 61:
|
|
467
366
|
/***/ (function(module, exports, __webpack_require__) {
|
|
468
367
|
|
|
469
368
|
"use strict";
|
|
@@ -475,25 +374,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
475
374
|
|
|
476
375
|
var i18n_1 = __webpack_require__(0);
|
|
477
376
|
|
|
478
|
-
var
|
|
377
|
+
var visualization_schemas_1 = __webpack_require__(2);
|
|
479
378
|
|
|
480
|
-
var visualization_icons_1 = __webpack_require__(
|
|
379
|
+
var visualization_icons_1 = __webpack_require__(11);
|
|
481
380
|
|
|
482
|
-
var placeholders_1 = __webpack_require__(
|
|
381
|
+
var placeholders_1 = __webpack_require__(10);
|
|
483
382
|
|
|
484
|
-
var
|
|
383
|
+
var pick_1 = __webpack_require__(8);
|
|
485
384
|
|
|
486
|
-
var
|
|
385
|
+
var variables_1 = __webpack_require__(9);
|
|
487
386
|
|
|
488
|
-
var
|
|
387
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
489
388
|
|
|
490
|
-
var
|
|
389
|
+
var VizCategory_1 = __webpack_require__(7);
|
|
491
390
|
|
|
492
|
-
var
|
|
391
|
+
var configUtils_1 = __webpack_require__(3);
|
|
493
392
|
|
|
494
|
-
var
|
|
495
|
-
|
|
496
|
-
var BackgroundColor_1 = __webpack_require__(13);
|
|
393
|
+
var BackgroundColor_1 = __webpack_require__(12);
|
|
497
394
|
|
|
498
395
|
var dataContract = {
|
|
499
396
|
requiredDataSources: [{
|
|
@@ -522,144 +419,6 @@ var defaultContext = {
|
|
|
522
419
|
colors: ['rgba(123,86,219,0.4)', 'rgba(123,86,219,1)']
|
|
523
420
|
}
|
|
524
421
|
};
|
|
525
|
-
var optionsSchema = {
|
|
526
|
-
x: {
|
|
527
|
-
default: '> primary | seriesByIndex(0)',
|
|
528
|
-
description: 'Specify the dataSource applied to the x-axis.',
|
|
529
|
-
type: 'array',
|
|
530
|
-
items: {
|
|
531
|
-
type: ['string', 'number']
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
y: {
|
|
535
|
-
default: '> primary | seriesByIndex(1)',
|
|
536
|
-
description: 'Specify the dataSource applied to the y-axis.',
|
|
537
|
-
type: 'array',
|
|
538
|
-
items: {
|
|
539
|
-
type: ['string', 'number']
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
category: {
|
|
543
|
-
default: '> primary | seriesByIndex(3)',
|
|
544
|
-
description: 'Specify the dataSource to apply series categories.',
|
|
545
|
-
type: 'array',
|
|
546
|
-
items: {
|
|
547
|
-
type: ['string', 'number']
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
size: {
|
|
551
|
-
default: '> primary | seriesByIndex(2)',
|
|
552
|
-
description: 'Specify the dataSource to apply bubble size in the chart.',
|
|
553
|
-
type: 'array',
|
|
554
|
-
items: {
|
|
555
|
-
type: 'number'
|
|
556
|
-
}
|
|
557
|
-
},
|
|
558
|
-
xField: {
|
|
559
|
-
default: '> x | getField()',
|
|
560
|
-
description: 'Specify the field that should be mapped to the x-axis.',
|
|
561
|
-
type: 'string'
|
|
562
|
-
},
|
|
563
|
-
yField: {
|
|
564
|
-
default: '> y | getField()',
|
|
565
|
-
description: 'Specify the field that should be mapped to the y-axis.',
|
|
566
|
-
type: 'string'
|
|
567
|
-
},
|
|
568
|
-
categoryField: {
|
|
569
|
-
default: '> category | getField()',
|
|
570
|
-
description: 'Specify the field that should be mapped to the series categories.',
|
|
571
|
-
type: 'string'
|
|
572
|
-
},
|
|
573
|
-
sizeField: {
|
|
574
|
-
default: '> size | getField()',
|
|
575
|
-
description: 'Specify the field that should be mapped to the bubble size in the chart.',
|
|
576
|
-
type: 'string'
|
|
577
|
-
},
|
|
578
|
-
backgroundColor: {
|
|
579
|
-
default: '> themes.defaultBackgroundColor',
|
|
580
|
-
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".',
|
|
581
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
582
|
-
type: 'string'
|
|
583
|
-
},
|
|
584
|
-
bubbleColor: {
|
|
585
|
-
default: '> size | gradient(bubbleColorConfig)',
|
|
586
|
-
description: 'Specify the coloring method used for the bubbles when the colorMode “dynamic” is specified. For example “> size | gradient(bubbleColorConfig)".',
|
|
587
|
-
type: ['string', 'array']
|
|
588
|
-
},
|
|
589
|
-
bubbleLabelDisplay: {
|
|
590
|
-
default: 'all',
|
|
591
|
-
description: 'Specify whether all bubble labels, the max value bubble labels, or none of the bubble labels should be displayed.',
|
|
592
|
-
pattern: (0, schemaUtils_1.getPattern)(['all', 'max', 'off']),
|
|
593
|
-
type: 'string'
|
|
594
|
-
},
|
|
595
|
-
bubbleRadiusMax: {
|
|
596
|
-
default: 15,
|
|
597
|
-
description: 'Specify the max radius (in pixels) of the bubbles when showDynamicBubbleSize option is false. Greater than 0.',
|
|
598
|
-
type: 'number'
|
|
599
|
-
},
|
|
600
|
-
bubbleRadiusMin: {
|
|
601
|
-
default: 1,
|
|
602
|
-
description: 'Specify the min radius (in pixels) of the bubbles when showDynamicBubbleSize option is false. Greater than 0.',
|
|
603
|
-
type: 'number'
|
|
604
|
-
},
|
|
605
|
-
bubbleRowScale: {
|
|
606
|
-
default: 'global',
|
|
607
|
-
description: 'Specify how bubbles are scaled relative to other rows.',
|
|
608
|
-
pattern: (0, schemaUtils_1.getPattern)(['global', 'row']),
|
|
609
|
-
type: 'string'
|
|
610
|
-
},
|
|
611
|
-
bubbleSizeMax: {
|
|
612
|
-
default: 1,
|
|
613
|
-
description: 'Specify the max percentage (in decimal format) of space a bubble should take up within a cell when showDynamicBubbleSize option is true. The number specified must be between 0 and 1.',
|
|
614
|
-
type: 'number'
|
|
615
|
-
},
|
|
616
|
-
bubbleSizeMin: {
|
|
617
|
-
default: 0.25,
|
|
618
|
-
description: 'Specify the min percentage (in decimal format) of space a bubble should take up within a cell when showDynamicBubbleSize option is true. The number specified must be between 0 and 1.',
|
|
619
|
-
type: 'number'
|
|
620
|
-
},
|
|
621
|
-
bubbleSizeMethod: {
|
|
622
|
-
default: 'area',
|
|
623
|
-
description: 'Specify whether bubble area or diameter corresponds to the size value.',
|
|
624
|
-
pattern: (0, schemaUtils_1.getPattern)(['radius', 'area']),
|
|
625
|
-
type: 'string'
|
|
626
|
-
},
|
|
627
|
-
colorMode: {
|
|
628
|
-
default: 'dynamic',
|
|
629
|
-
description: 'Specify the coloring method used for the bubbles.',
|
|
630
|
-
pattern: (0, schemaUtils_1.getPattern)(['categorical', 'dynamic']),
|
|
631
|
-
type: 'string'
|
|
632
|
-
},
|
|
633
|
-
legendDisplay: {
|
|
634
|
-
default: 'right',
|
|
635
|
-
description: 'Specify the location of the legend on the panel.',
|
|
636
|
-
pattern: (0, schemaUtils_1.getPattern)(['right', 'off']),
|
|
637
|
-
type: 'string'
|
|
638
|
-
},
|
|
639
|
-
seriesColors: {
|
|
640
|
-
default: visualization_color_palettes_1.VIZ_CATEGORICAL,
|
|
641
|
-
description: 'Specify the colors used for a series. For example, "#FF0000", "#0000FF", "#008000".',
|
|
642
|
-
type: 'array',
|
|
643
|
-
items: {
|
|
644
|
-
type: 'string'
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
showDefaultSort: {
|
|
648
|
-
default: false,
|
|
649
|
-
description: 'Specify whether axes should be sorted based on order of time, digits and strings.',
|
|
650
|
-
type: 'boolean'
|
|
651
|
-
},
|
|
652
|
-
showDynamicBubbleSize: {
|
|
653
|
-
default: true,
|
|
654
|
-
description: 'Specify whether the bubble size should be dynamic or fixed.',
|
|
655
|
-
type: 'boolean'
|
|
656
|
-
},
|
|
657
|
-
showMaxValuePulsation: {
|
|
658
|
-
default: true,
|
|
659
|
-
description: 'Specify whether the max value bubble should pulsate.',
|
|
660
|
-
type: 'boolean'
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
422
|
var themes = {
|
|
664
423
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
665
424
|
return (0, pick_1.default)({
|
|
@@ -802,7 +561,7 @@ var config = {
|
|
|
802
561
|
dataContract: dataContract,
|
|
803
562
|
size: size,
|
|
804
563
|
defaultContext: defaultContext,
|
|
805
|
-
optionsSchema:
|
|
564
|
+
optionsSchema: visualization_schemas_1.punchcardOptionsSchema,
|
|
806
565
|
editorConfig: editorConfig,
|
|
807
566
|
events: {
|
|
808
567
|
'legend.click': {
|
|
@@ -820,7 +579,7 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
|
820
579
|
|
|
821
580
|
/***/ }),
|
|
822
581
|
|
|
823
|
-
/***/
|
|
582
|
+
/***/ 7:
|
|
824
583
|
/***/ (function(module, exports, __webpack_require__) {
|
|
825
584
|
|
|
826
585
|
"use strict";
|
|
@@ -849,11 +608,18 @@ var VizCategory;
|
|
|
849
608
|
|
|
850
609
|
/***/ }),
|
|
851
610
|
|
|
852
|
-
/***/
|
|
611
|
+
/***/ 8:
|
|
853
612
|
/***/ (function(module, exports) {
|
|
854
613
|
|
|
855
614
|
module.exports = require("@splunk/themes/pick");
|
|
856
615
|
|
|
616
|
+
/***/ }),
|
|
617
|
+
|
|
618
|
+
/***/ 9:
|
|
619
|
+
/***/ (function(module, exports) {
|
|
620
|
+
|
|
621
|
+
module.exports = require("@splunk/themes/variables");
|
|
622
|
+
|
|
857
623
|
/***/ })
|
|
858
624
|
|
|
859
625
|
/******/ });
|