@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.
- package/Area.config.js +91 -594
- package/Area.config.js.map +1 -1
- package/Area.js +184 -689
- package/Area.js.map +1 -1
- package/Bar.config.js +92 -561
- package/Bar.config.js.map +1 -1
- package/Bar.js +184 -655
- package/Bar.js.map +1 -1
- package/Bubble.config.js +83 -482
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +177 -578
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +76 -201
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +170 -300
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +92 -599
- package/Column.config.js.map +1 -1
- package/Column.js +184 -693
- package/Column.js.map +1 -1
- package/Ellipse.config.js +82 -200
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +137 -262
- package/Ellipse.js.map +1 -1
- package/Events.config.js +61 -282
- package/Events.config.js.map +1 -1
- package/Events.js +222 -428
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +90 -219
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +163 -299
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +61 -157
- package/Image.config.js.map +1 -1
- package/Image.js +130 -242
- package/Image.js.map +1 -1
- package/Line.config.js +91 -606
- package/Line.config.js.map +1 -1
- package/Line.js +184 -701
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +74 -256
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +545 -729
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +128 -1123
- package/Map.config.js.map +1 -1
- package/Map.js +309 -680
- package/Map.js.map +1 -1
- package/Markdown.config.js +61 -188
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +190 -323
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +137 -297
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +1038 -1203
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +71 -191
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +218 -343
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +72 -240
- package/Pie.config.js.map +1 -1
- package/Pie.js +214 -381
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +71 -305
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +246 -477
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +211 -347
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +274 -416
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +71 -213
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +246 -382
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +85 -463
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +825 -1202
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +114 -409
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +287 -582
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +30 -30
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +113 -378
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +268 -533
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +110 -382
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +272 -543
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +24 -24
- package/SparkLine.js.map +1 -1
- package/Table.config.js +74 -496
- package/Table.config.js.map +1 -1
- package/Table.js +302 -720
- package/Table.js.map +1 -1
- package/common/Charting.js +22 -34
- 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 +75 -87
- 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 +7 -7
- 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 +65 -77
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +46 -49
- package/common/utils/layoutUtils.js +0 -115
- package/common/utils/layoutUtils.js.map +0 -1
package/Area.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 = 39);
|
|
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/
|
|
109
|
+
module.exports = require("@splunk/visualization-schemas");
|
|
149
110
|
|
|
150
111
|
/***/ }),
|
|
151
|
-
/*
|
|
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.
|
|
178
|
-
|
|
179
|
-
var lodash_1 = __webpack_require__(6);
|
|
180
|
-
|
|
181
|
-
var schemaUtils_1 = __webpack_require__(3);
|
|
123
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
182
124
|
|
|
183
|
-
var
|
|
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
|
-
*/
|
|
125
|
+
var lodash_1 = __webpack_require__(5); // included for backwards compatibility
|
|
194
126
|
|
|
195
|
-
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
196
|
-
var enhancedOptionsSchema = {};
|
|
197
|
-
Object.keys(optionsSchema).forEach(function (key) {
|
|
198
|
-
var _a = optionsSchema[key],
|
|
199
|
-
title = _a.title,
|
|
200
|
-
description = _a.description,
|
|
201
|
-
readOnly = _a.readOnly,
|
|
202
|
-
writeOnly = _a.writeOnly,
|
|
203
|
-
examples = _a.examples,
|
|
204
|
-
defaultValue = _a.default,
|
|
205
|
-
type = _a.type,
|
|
206
|
-
properties = _a.properties,
|
|
207
|
-
patternProperties = _a.patternProperties,
|
|
208
|
-
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
209
|
-
|
|
210
|
-
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
211
|
-
title: title
|
|
212
|
-
}), description !== undefined && {
|
|
213
|
-
description: description
|
|
214
|
-
}), readOnly !== undefined && {
|
|
215
|
-
readOnly: readOnly
|
|
216
|
-
}), writeOnly !== undefined && {
|
|
217
|
-
writeOnly: writeOnly
|
|
218
|
-
}), examples !== undefined && {
|
|
219
|
-
examples: examples
|
|
220
|
-
}), defaultValue !== undefined && {
|
|
221
|
-
default: defaultValue
|
|
222
|
-
});
|
|
223
127
|
|
|
224
|
-
|
|
225
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
226
|
-
type: type
|
|
227
|
-
}), properties && {
|
|
228
|
-
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
if (patternProperties) {
|
|
232
|
-
var enhancedPatternProperties = {};
|
|
233
|
-
Object.keys(patternProperties).forEach(function (opt) {
|
|
234
|
-
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
235
|
-
});
|
|
236
|
-
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
237
|
-
}
|
|
238
|
-
} else {
|
|
239
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
240
|
-
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
241
|
-
type: type
|
|
242
|
-
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
return enhancedOptionsSchema;
|
|
247
|
-
}
|
|
128
|
+
var visualization_schemas_1 = __webpack_require__(2);
|
|
248
129
|
|
|
249
|
-
exports
|
|
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
|
-
/*
|
|
388
|
-
/*
|
|
268
|
+
/* 4 */,
|
|
269
|
+
/* 5 */
|
|
389
270
|
/***/ (function(module, exports) {
|
|
390
271
|
|
|
391
272
|
module.exports = require("lodash");
|
|
392
273
|
|
|
393
274
|
/***/ }),
|
|
394
|
-
/*
|
|
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
|
-
|
|
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
|
-
/*
|
|
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
|
-
/*
|
|
342
|
+
/* 8 */
|
|
429
343
|
/***/ (function(module, exports) {
|
|
430
344
|
|
|
431
345
|
module.exports = require("@splunk/themes/pick");
|
|
432
346
|
|
|
433
347
|
/***/ }),
|
|
434
|
-
/*
|
|
348
|
+
/* 9 */
|
|
435
349
|
/***/ (function(module, exports) {
|
|
436
350
|
|
|
437
351
|
module.exports = require("@splunk/themes/variables");
|
|
438
352
|
|
|
439
353
|
/***/ }),
|
|
440
|
-
/*
|
|
354
|
+
/* 10 */
|
|
441
355
|
/***/ (function(module, exports) {
|
|
442
356
|
|
|
443
357
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
444
358
|
|
|
445
359
|
/***/ }),
|
|
446
|
-
/*
|
|
360
|
+
/* 11 */
|
|
447
361
|
/***/ (function(module, exports) {
|
|
448
362
|
|
|
449
363
|
module.exports = require("@splunk/visualization-icons");
|
|
450
364
|
|
|
451
365
|
/***/ }),
|
|
452
|
-
/*
|
|
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__(
|
|
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
|
-
/*
|
|
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__(
|
|
549
|
+
var pick_1 = __webpack_require__(8);
|
|
642
550
|
|
|
643
|
-
var variables_1 = __webpack_require__(
|
|
551
|
+
var variables_1 = __webpack_require__(9);
|
|
644
552
|
|
|
645
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
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
|
-
/*
|
|
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
|
-
/*
|
|
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__(
|
|
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
|
-
/*
|
|
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
|
-
/*
|
|
1190
|
-
/*
|
|
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__(
|
|
1113
|
+
var lodash_1 = __webpack_require__(5);
|
|
1207
1114
|
|
|
1208
|
-
var configUtils_1 = __webpack_require__(
|
|
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
|
-
/*
|
|
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 */,
|
|
@@ -1514,10 +1424,7 @@ exports.default = axesChartY2GridAndLabels;
|
|
|
1514
1424
|
/* 36 */,
|
|
1515
1425
|
/* 37 */,
|
|
1516
1426
|
/* 38 */,
|
|
1517
|
-
/* 39
|
|
1518
|
-
/* 40 */,
|
|
1519
|
-
/* 41 */,
|
|
1520
|
-
/* 42 */
|
|
1427
|
+
/* 39 */
|
|
1521
1428
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1522
1429
|
|
|
1523
1430
|
"use strict";
|
|
@@ -1529,39 +1436,37 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1529
1436
|
value: true
|
|
1530
1437
|
});
|
|
1531
1438
|
|
|
1532
|
-
var visualization_icons_1 = __webpack_require__(
|
|
1533
|
-
|
|
1534
|
-
var placeholders_1 = __webpack_require__(11);
|
|
1439
|
+
var visualization_icons_1 = __webpack_require__(11);
|
|
1535
1440
|
|
|
1536
|
-
var
|
|
1441
|
+
var placeholders_1 = __webpack_require__(10);
|
|
1537
1442
|
|
|
1538
|
-
var
|
|
1443
|
+
var visualization_schemas_1 = __webpack_require__(2);
|
|
1539
1444
|
|
|
1540
1445
|
var i18n_1 = __webpack_require__(0);
|
|
1541
1446
|
|
|
1542
|
-
var pick_1 = __webpack_require__(
|
|
1447
|
+
var pick_1 = __webpack_require__(8);
|
|
1543
1448
|
|
|
1544
|
-
var variables_1 = __webpack_require__(
|
|
1449
|
+
var variables_1 = __webpack_require__(9);
|
|
1545
1450
|
|
|
1546
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1451
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
1547
1452
|
|
|
1548
|
-
var VizCategory_1 = __webpack_require__(
|
|
1453
|
+
var VizCategory_1 = __webpack_require__(7);
|
|
1549
1454
|
|
|
1550
|
-
var configUtils_1 = __webpack_require__(
|
|
1455
|
+
var configUtils_1 = __webpack_require__(3);
|
|
1551
1456
|
|
|
1552
|
-
var AxesChartDataConfig_1 = __webpack_require__(
|
|
1457
|
+
var AxesChartDataConfig_1 = __webpack_require__(14);
|
|
1553
1458
|
|
|
1554
|
-
var AxesChartDataDisplay_1 = __webpack_require__(
|
|
1459
|
+
var AxesChartDataDisplay_1 = __webpack_require__(20);
|
|
1555
1460
|
|
|
1556
|
-
var AxesChartColorAndStyle_1 = __webpack_require__(
|
|
1461
|
+
var AxesChartColorAndStyle_1 = __webpack_require__(15);
|
|
1557
1462
|
|
|
1558
|
-
var AxesChartLegend_1 = __webpack_require__(
|
|
1463
|
+
var AxesChartLegend_1 = __webpack_require__(16);
|
|
1559
1464
|
|
|
1560
|
-
var AxesChartXGridAndLabels_1 = __webpack_require__(
|
|
1465
|
+
var AxesChartXGridAndLabels_1 = __webpack_require__(17);
|
|
1561
1466
|
|
|
1562
|
-
var AxesChartYGridAndLabels_1 = __webpack_require__(
|
|
1467
|
+
var AxesChartYGridAndLabels_1 = __webpack_require__(18);
|
|
1563
1468
|
|
|
1564
|
-
var AxesChartY2GridAndLabels_1 = __webpack_require__(
|
|
1469
|
+
var AxesChartY2GridAndLabels_1 = __webpack_require__(21);
|
|
1565
1470
|
|
|
1566
1471
|
var dataContract = {
|
|
1567
1472
|
requiredDataSources: [{
|
|
@@ -1588,414 +1493,6 @@ var size = {
|
|
|
1588
1493
|
initialHeight: 300
|
|
1589
1494
|
};
|
|
1590
1495
|
var defaultContext = {};
|
|
1591
|
-
var optionsSchema = {
|
|
1592
|
-
x: {
|
|
1593
|
-
default: '> primary | seriesByIndex(0)',
|
|
1594
|
-
description: 'Specify the data source to apply to the x-axis.',
|
|
1595
|
-
type: 'array',
|
|
1596
|
-
items: {
|
|
1597
|
-
type: ['string', 'number']
|
|
1598
|
-
}
|
|
1599
|
-
},
|
|
1600
|
-
y: {
|
|
1601
|
-
default: '> primary | frameBySeriesIndexRange(1)',
|
|
1602
|
-
description: 'Specify the data source to apply to the y-axis.',
|
|
1603
|
-
type: 'array',
|
|
1604
|
-
items: {
|
|
1605
|
-
type: ['string', 'number']
|
|
1606
|
-
}
|
|
1607
|
-
},
|
|
1608
|
-
y2: {
|
|
1609
|
-
description: 'Specify the data source to apply to the second y-axis',
|
|
1610
|
-
type: 'array',
|
|
1611
|
-
items: {
|
|
1612
|
-
type: ['string', 'number']
|
|
1613
|
-
}
|
|
1614
|
-
},
|
|
1615
|
-
xField: {
|
|
1616
|
-
default: '> x | getField()',
|
|
1617
|
-
description: 'Specify the field to map to the x-axis.',
|
|
1618
|
-
type: 'string'
|
|
1619
|
-
},
|
|
1620
|
-
yFields: {
|
|
1621
|
-
default: '> y | getField()',
|
|
1622
|
-
description: 'Specify the field to map to the y-axis.',
|
|
1623
|
-
type: 'string'
|
|
1624
|
-
},
|
|
1625
|
-
annotationColor: {
|
|
1626
|
-
description: "Specify the annotation colors. For example, [\u201C#FF0000\u201D, \u201C#0000FF\", \u201C#008000\u201D]. You can use a data source or a hexadecimal code to apply the color.",
|
|
1627
|
-
type: 'array',
|
|
1628
|
-
items: {
|
|
1629
|
-
type: 'string'
|
|
1630
|
-
}
|
|
1631
|
-
},
|
|
1632
|
-
annotationLabel: {
|
|
1633
|
-
description: "Specify a list of labels to use for annotations. For example, [\u201CSales\u201D, \u201CRevenue\u201D, \u201COrders\u201D]. You might use a data source to apply the labels.",
|
|
1634
|
-
type: 'array',
|
|
1635
|
-
items: {
|
|
1636
|
-
type: 'string'
|
|
1637
|
-
}
|
|
1638
|
-
},
|
|
1639
|
-
annotationX: {
|
|
1640
|
-
description: 'Specify a data source field to apply to the event annotation on the x-axis.',
|
|
1641
|
-
type: 'array',
|
|
1642
|
-
items: {
|
|
1643
|
-
type: ['string', 'number']
|
|
1644
|
-
}
|
|
1645
|
-
},
|
|
1646
|
-
areaOpacity: {
|
|
1647
|
-
description: 'Specify the opacity of the area chart. Values can range from 0 (transparent) to 1 (opaque).',
|
|
1648
|
-
type: 'number',
|
|
1649
|
-
default: 0.75
|
|
1650
|
-
},
|
|
1651
|
-
backgroundColor: {
|
|
1652
|
-
default: '> themes.defaultBackgroundColor',
|
|
1653
|
-
description: 'Specify the color to use for the background. You can use a data source or hexadecimal code to apply the color.',
|
|
1654
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
1655
|
-
type: 'string'
|
|
1656
|
-
},
|
|
1657
|
-
dataValuesDisplay: {
|
|
1658
|
-
description: 'Specify the labels to display. Enter "all" to show labels for all data points, "off" to show no labels, or "minmax" to show high and low values.',
|
|
1659
|
-
type: 'string',
|
|
1660
|
-
pattern: (0, schemaUtils_1.getPattern)(['off', 'all', 'minmax']),
|
|
1661
|
-
default: 'off'
|
|
1662
|
-
},
|
|
1663
|
-
legendDisplay: {
|
|
1664
|
-
default: 'right',
|
|
1665
|
-
description: 'Specify the location of the legend on the panel. You must select the Standard legend mode to make this change.',
|
|
1666
|
-
pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
|
|
1667
|
-
type: 'string'
|
|
1668
|
-
},
|
|
1669
|
-
legendLabels: {
|
|
1670
|
-
description: "Specify a list of labels to populate the legend in advance. For example, [\"percent\", \"count\"].",
|
|
1671
|
-
type: 'array',
|
|
1672
|
-
items: {
|
|
1673
|
-
type: 'string'
|
|
1674
|
-
}
|
|
1675
|
-
},
|
|
1676
|
-
legendMode: {
|
|
1677
|
-
default: 'standard',
|
|
1678
|
-
description: 'Specify visual and behavioral settings for the tooltip and legend. "seriesCompare" is useful when comparing series.',
|
|
1679
|
-
pattern: (0, schemaUtils_1.getPattern)(['standard', 'seriesCompare']),
|
|
1680
|
-
type: 'string'
|
|
1681
|
-
},
|
|
1682
|
-
legendTruncation: {
|
|
1683
|
-
default: 'ellipsisEnd',
|
|
1684
|
-
description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
|
|
1685
|
-
pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
|
|
1686
|
-
type: 'string'
|
|
1687
|
-
},
|
|
1688
|
-
lineWidth: {
|
|
1689
|
-
default: 2,
|
|
1690
|
-
description: 'Specify the line width (px) for overlay field lines.',
|
|
1691
|
-
type: 'number'
|
|
1692
|
-
},
|
|
1693
|
-
nullValueDisplay: {
|
|
1694
|
-
default: 'gaps',
|
|
1695
|
-
description: 'Specify the handling of null values for area and line charts .',
|
|
1696
|
-
pattern: (0, schemaUtils_1.getPattern)(['gaps', 'zero', 'connect']),
|
|
1697
|
-
type: 'string'
|
|
1698
|
-
},
|
|
1699
|
-
resultLimit: {
|
|
1700
|
-
default: 50000,
|
|
1701
|
-
description: 'Specify the number of data points to render in a chart.',
|
|
1702
|
-
type: 'number'
|
|
1703
|
-
},
|
|
1704
|
-
seriesColors: {
|
|
1705
|
-
default: visualization_color_palettes_1.VIZ_CATEGORICAL,
|
|
1706
|
-
description: "Specify the colors to use in a series. For example, [\"#FF0000\", \"#0000FF\", \"#008000\"].",
|
|
1707
|
-
type: 'array',
|
|
1708
|
-
items: {
|
|
1709
|
-
type: 'string'
|
|
1710
|
-
}
|
|
1711
|
-
},
|
|
1712
|
-
seriesColorsByField: {
|
|
1713
|
-
description: "Specify the colors to use for specific fields in a series. For example, {\u201Ccount\u201D: \u201C#008000\u201D, \u201Cpercent\u201D: \u201C#FFA500\u201D}.",
|
|
1714
|
-
type: 'object'
|
|
1715
|
-
},
|
|
1716
|
-
stackMode: {
|
|
1717
|
-
description: 'Specify stack mode.',
|
|
1718
|
-
type: 'string',
|
|
1719
|
-
pattern: (0, schemaUtils_1.getPattern)(['auto', 'stacked', 'stacked100']),
|
|
1720
|
-
default: 'auto'
|
|
1721
|
-
},
|
|
1722
|
-
showIndependentYRanges: {
|
|
1723
|
-
description: 'Specify whether split series charts have independent y-ranges.',
|
|
1724
|
-
type: 'boolean',
|
|
1725
|
-
default: false
|
|
1726
|
-
},
|
|
1727
|
-
showSplitSeries: {
|
|
1728
|
-
description: 'Specify whether to split a multi-series chart into separate charts that are stacked from top to bottom; use one chart for each series.',
|
|
1729
|
-
type: 'boolean',
|
|
1730
|
-
default: false
|
|
1731
|
-
},
|
|
1732
|
-
showLines: {
|
|
1733
|
-
description: 'Specify whether to show lines in area charts.',
|
|
1734
|
-
default: true,
|
|
1735
|
-
type: 'boolean'
|
|
1736
|
-
},
|
|
1737
|
-
showXMajorGridLines: {
|
|
1738
|
-
description: 'Specify whether to show major grid lines on the x-axis.',
|
|
1739
|
-
type: 'boolean',
|
|
1740
|
-
default: false
|
|
1741
|
-
},
|
|
1742
|
-
showYMajorGridLines: {
|
|
1743
|
-
description: 'Specify whether to show major grid lines on the y-axis.',
|
|
1744
|
-
type: 'boolean',
|
|
1745
|
-
default: true
|
|
1746
|
-
},
|
|
1747
|
-
showY2MajorGridLines: {
|
|
1748
|
-
description: 'Specify whether to show major grid lines on the second y-axis.',
|
|
1749
|
-
type: 'boolean',
|
|
1750
|
-
default: false
|
|
1751
|
-
},
|
|
1752
|
-
showYMinorGridLines: {
|
|
1753
|
-
description: 'Specify whether to show minor grid lines on the y-axis.',
|
|
1754
|
-
type: 'boolean',
|
|
1755
|
-
default: false
|
|
1756
|
-
},
|
|
1757
|
-
showY2MinorGridLines: {
|
|
1758
|
-
description: 'Specify whether to show minor grid lines on the second y-axis.',
|
|
1759
|
-
type: 'boolean',
|
|
1760
|
-
default: false
|
|
1761
|
-
},
|
|
1762
|
-
showYAxisExtendedRange: {
|
|
1763
|
-
description: 'Specify whether to extend the y-axis to include whole major tick marks.',
|
|
1764
|
-
type: 'boolean',
|
|
1765
|
-
default: true
|
|
1766
|
-
},
|
|
1767
|
-
showYAxisWithZero: {
|
|
1768
|
-
description: 'Specify whether to include zero in the y-axis range.',
|
|
1769
|
-
type: 'boolean',
|
|
1770
|
-
default: false
|
|
1771
|
-
},
|
|
1772
|
-
showY2AxisWithZero: {
|
|
1773
|
-
description: 'Specify whether to include zero in the second y-axis range.',
|
|
1774
|
-
type: 'boolean',
|
|
1775
|
-
default: false
|
|
1776
|
-
},
|
|
1777
|
-
xAxisLabelRotation: {
|
|
1778
|
-
description: 'Specify the rotation of the x-axis label in degrees.',
|
|
1779
|
-
enum: [-90, -45, 0, 45, 90],
|
|
1780
|
-
type: 'number',
|
|
1781
|
-
default: 0
|
|
1782
|
-
},
|
|
1783
|
-
xAxisLabelVisibility: {
|
|
1784
|
-
default: 'auto',
|
|
1785
|
-
description: 'Specify whether to show labels on the x-axis.',
|
|
1786
|
-
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1787
|
-
type: 'string'
|
|
1788
|
-
},
|
|
1789
|
-
yAxisLabelVisibility: {
|
|
1790
|
-
default: 'auto',
|
|
1791
|
-
description: 'Specify whether to show labels on the y-axis.',
|
|
1792
|
-
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1793
|
-
type: 'string'
|
|
1794
|
-
},
|
|
1795
|
-
y2AxisLabelVisibility: {
|
|
1796
|
-
default: 'auto',
|
|
1797
|
-
description: 'Specify whether to show labels on the second y-axis.',
|
|
1798
|
-
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1799
|
-
type: 'string'
|
|
1800
|
-
},
|
|
1801
|
-
xAxisLineVisibility: {
|
|
1802
|
-
default: 'hide',
|
|
1803
|
-
description: 'Specify whether to show the x-axis line.',
|
|
1804
|
-
enum: ['hide', 'show'],
|
|
1805
|
-
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1806
|
-
type: 'string'
|
|
1807
|
-
},
|
|
1808
|
-
yAxisLineVisibility: {
|
|
1809
|
-
default: 'hide',
|
|
1810
|
-
description: 'Specify whether to show the y-axis line.',
|
|
1811
|
-
enum: ['hide', 'show'],
|
|
1812
|
-
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1813
|
-
type: 'string'
|
|
1814
|
-
},
|
|
1815
|
-
y2AxisLineVisibility: {
|
|
1816
|
-
default: 'hide',
|
|
1817
|
-
description: 'Specify whether to show the second y-axis line.',
|
|
1818
|
-
enum: ['hide', 'show'],
|
|
1819
|
-
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1820
|
-
type: 'string'
|
|
1821
|
-
},
|
|
1822
|
-
xAxisMajorTickSize: {
|
|
1823
|
-
default: 6,
|
|
1824
|
-
description: 'Specify the size (px) of major tick marks on the x-axis.',
|
|
1825
|
-
type: 'number'
|
|
1826
|
-
},
|
|
1827
|
-
yAxisMajorTickSize: {
|
|
1828
|
-
default: 6,
|
|
1829
|
-
description: 'Specify the size (px) of major tick marks on the y-axis.',
|
|
1830
|
-
type: 'number'
|
|
1831
|
-
},
|
|
1832
|
-
y2AxisMajorTickSize: {
|
|
1833
|
-
default: 6,
|
|
1834
|
-
description: 'Specify the size (px) of major tick marks on the second y-axis.',
|
|
1835
|
-
type: 'number'
|
|
1836
|
-
},
|
|
1837
|
-
yAxisMinorTickSize: {
|
|
1838
|
-
default: 6,
|
|
1839
|
-
description: 'Specify the size (px) of minor tick marks on the y-axis.',
|
|
1840
|
-
type: 'number'
|
|
1841
|
-
},
|
|
1842
|
-
y2AxisMinorTickSize: {
|
|
1843
|
-
default: 6,
|
|
1844
|
-
description: 'Specify the size (px) of minor tick marks on the second y-axis.',
|
|
1845
|
-
type: 'number'
|
|
1846
|
-
},
|
|
1847
|
-
xAxisMajorTickVisibility: {
|
|
1848
|
-
default: 'auto',
|
|
1849
|
-
description: 'Specify whether to show major tick marks on the x-axis.',
|
|
1850
|
-
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1851
|
-
type: 'string'
|
|
1852
|
-
},
|
|
1853
|
-
yAxisMajorTickVisibility: {
|
|
1854
|
-
default: 'auto',
|
|
1855
|
-
description: 'Specify whether to show major tick marks on the y-axis.',
|
|
1856
|
-
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1857
|
-
type: 'string'
|
|
1858
|
-
},
|
|
1859
|
-
y2AxisMajorTickVisibility: {
|
|
1860
|
-
default: 'auto',
|
|
1861
|
-
description: 'Specify whether to show major tick marks on the second y-axis.',
|
|
1862
|
-
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1863
|
-
type: 'string'
|
|
1864
|
-
},
|
|
1865
|
-
yAxisMinorTickVisibility: {
|
|
1866
|
-
default: 'auto',
|
|
1867
|
-
description: 'Specify whether to show minor tick marks on the y-axis.',
|
|
1868
|
-
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1869
|
-
type: 'string'
|
|
1870
|
-
},
|
|
1871
|
-
y2AxisMinorTickVisibility: {
|
|
1872
|
-
default: 'auto',
|
|
1873
|
-
description: 'Specify whether to show minor tick marks on the second y-axis.',
|
|
1874
|
-
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1875
|
-
type: 'string'
|
|
1876
|
-
},
|
|
1877
|
-
xAxisMaxLabelParts: {
|
|
1878
|
-
default: 3,
|
|
1879
|
-
minimum: 1,
|
|
1880
|
-
maximum: 3,
|
|
1881
|
-
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.',
|
|
1882
|
-
type: 'number'
|
|
1883
|
-
},
|
|
1884
|
-
yAxisScale: {
|
|
1885
|
-
type: 'string',
|
|
1886
|
-
pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
|
|
1887
|
-
description: 'Specify the type of scale that applies to a numerical y-axis.',
|
|
1888
|
-
default: 'linear'
|
|
1889
|
-
},
|
|
1890
|
-
y2AxisScale: {
|
|
1891
|
-
type: 'string',
|
|
1892
|
-
pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
|
|
1893
|
-
description: 'Specify the type of scale that applies to a numerical second y-axis.',
|
|
1894
|
-
default: 'linear'
|
|
1895
|
-
},
|
|
1896
|
-
xAxisTitleText: {
|
|
1897
|
-
description: 'Specify the title of the x-axis.',
|
|
1898
|
-
type: 'string'
|
|
1899
|
-
},
|
|
1900
|
-
yAxisTitleText: {
|
|
1901
|
-
description: 'Specify the title of the y-axis.',
|
|
1902
|
-
type: 'string'
|
|
1903
|
-
},
|
|
1904
|
-
y2AxisTitleText: {
|
|
1905
|
-
description: 'Specify the title of the second y-axis.',
|
|
1906
|
-
type: 'string'
|
|
1907
|
-
},
|
|
1908
|
-
xAxisTitleVisibility: {
|
|
1909
|
-
default: 'show',
|
|
1910
|
-
description: 'Specify whether to show the title of the x-axis.',
|
|
1911
|
-
enum: ['hide', 'show'],
|
|
1912
|
-
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1913
|
-
type: 'string'
|
|
1914
|
-
},
|
|
1915
|
-
yAxisTitleVisibility: {
|
|
1916
|
-
default: 'show',
|
|
1917
|
-
description: 'Specify whether to show the title of the y-axis.',
|
|
1918
|
-
enum: ['hide', 'show'],
|
|
1919
|
-
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1920
|
-
type: 'string'
|
|
1921
|
-
},
|
|
1922
|
-
y2AxisTitleVisibility: {
|
|
1923
|
-
default: 'show',
|
|
1924
|
-
description: 'Specify whether to show the title of the second y-axis.',
|
|
1925
|
-
enum: ['hide', 'show'],
|
|
1926
|
-
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1927
|
-
type: 'string'
|
|
1928
|
-
},
|
|
1929
|
-
yAxisAbbreviation: {
|
|
1930
|
-
default: 'auto',
|
|
1931
|
-
description: 'Specify whether to abbreviate large y-axis values with the closest International System of Units (SI) prefix.',
|
|
1932
|
-
enum: ['auto', 'off'],
|
|
1933
|
-
pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
|
|
1934
|
-
type: 'string'
|
|
1935
|
-
},
|
|
1936
|
-
y2AxisAbbreviation: {
|
|
1937
|
-
default: 'auto',
|
|
1938
|
-
description: 'Specify whether to abbreviate large second y-axis values with the closest International System of Units (SI) prefix.',
|
|
1939
|
-
enum: ['auto', 'off'],
|
|
1940
|
-
pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
|
|
1941
|
-
type: 'string'
|
|
1942
|
-
},
|
|
1943
|
-
yAxisMajorTickInterval: {
|
|
1944
|
-
default: 'auto',
|
|
1945
|
-
description: 'Specify the spacing unit between major tick marks along the numeric y-axis.',
|
|
1946
|
-
type: ['string', 'number']
|
|
1947
|
-
},
|
|
1948
|
-
y2AxisMajorTickInterval: {
|
|
1949
|
-
default: 'auto',
|
|
1950
|
-
description: 'Specify the spacing unit between major tick marks along the numeric second y-axis.',
|
|
1951
|
-
type: ['string', 'number']
|
|
1952
|
-
},
|
|
1953
|
-
yAxisMax: {
|
|
1954
|
-
type: ['string', 'number'],
|
|
1955
|
-
description: 'Specify the largest value for the visible y-axis range.',
|
|
1956
|
-
default: 'auto'
|
|
1957
|
-
},
|
|
1958
|
-
y2AxisMax: {
|
|
1959
|
-
type: ['string', 'number'],
|
|
1960
|
-
description: 'Specify the largest value for the visible second y-axis range.',
|
|
1961
|
-
default: 'auto'
|
|
1962
|
-
},
|
|
1963
|
-
yAxisMin: {
|
|
1964
|
-
type: ['string', 'number'],
|
|
1965
|
-
description: 'Specify the smallest value for the visible y-axis range.',
|
|
1966
|
-
default: 'auto'
|
|
1967
|
-
},
|
|
1968
|
-
y2AxisMin: {
|
|
1969
|
-
type: ['string', 'number'],
|
|
1970
|
-
description: 'Specify the smallest value for the visible second y-axis range.',
|
|
1971
|
-
default: 'auto'
|
|
1972
|
-
},
|
|
1973
|
-
overlayFields: {
|
|
1974
|
-
description: 'Specify one or more fields to differentiate on the chart and display as chart overlays.',
|
|
1975
|
-
type: ['array', 'string'],
|
|
1976
|
-
items: {
|
|
1977
|
-
type: 'string'
|
|
1978
|
-
}
|
|
1979
|
-
},
|
|
1980
|
-
showOverlayY2Axis: {
|
|
1981
|
-
default: false,
|
|
1982
|
-
description: 'Enable a second y-axis for chart overlays. All overlay fields will map to a second y-axis.',
|
|
1983
|
-
type: 'boolean'
|
|
1984
|
-
},
|
|
1985
|
-
showRoundedY2AxisLabels: {
|
|
1986
|
-
default: true,
|
|
1987
|
-
description: 'Specify whether to round second y-axis values to the nearest integer.',
|
|
1988
|
-
type: 'boolean'
|
|
1989
|
-
},
|
|
1990
|
-
y2Fields: {
|
|
1991
|
-
default: '> y2 | getField()',
|
|
1992
|
-
description: 'Specify one or more fields to map to the second y-axis.',
|
|
1993
|
-
type: ['array', 'string'],
|
|
1994
|
-
items: {
|
|
1995
|
-
type: 'string'
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
};
|
|
1999
1496
|
var themes = {
|
|
2000
1497
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
2001
1498
|
return (0, pick_1.default)({
|
|
@@ -2140,7 +1637,7 @@ var config = {
|
|
|
2140
1637
|
dataContract: dataContract,
|
|
2141
1638
|
size: size,
|
|
2142
1639
|
defaultContext: defaultContext,
|
|
2143
|
-
optionsSchema:
|
|
1640
|
+
optionsSchema: visualization_schemas_1.areaOptionsSchema,
|
|
2144
1641
|
editorConfig: editorConfig,
|
|
2145
1642
|
events: {
|
|
2146
1643
|
'legend.click': {
|