@splunk/visualizations 26.4.0 → 27.0.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 +1262 -1600
- package/Area.config.js.map +7 -1
- package/Area.js +3002 -4920
- package/Area.js.map +7 -1
- package/Bar.config.js +1247 -1574
- package/Bar.config.js.map +7 -1
- package/Bar.js +2924 -4836
- package/Bar.js.map +7 -1
- package/Bubble.config.js +896 -1213
- package/Bubble.config.js.map +7 -1
- package/Bubble.js +2520 -4476
- package/Bubble.js.map +7 -1
- package/ChoroplethSvg.config.js +282 -582
- package/ChoroplethSvg.config.js.map +7 -1
- package/ChoroplethSvg.js +2004 -3810
- package/ChoroplethSvg.js.map +7 -1
- package/Column.config.js +1208 -1541
- package/Column.config.js.map +7 -1
- package/Column.js +2933 -4879
- package/Column.js.map +7 -1
- package/Ellipse.config.js +443 -774
- package/Ellipse.config.js.map +7 -1
- package/Ellipse.js +1651 -3341
- package/Ellipse.js.map +7 -1
- package/Events.config.js +207 -492
- package/Events.config.js.map +7 -1
- package/Events.js +2615 -4649
- package/Events.js.map +7 -1
- package/FillerGauge.config.js +420 -775
- package/FillerGauge.config.js.map +7 -1
- package/FillerGauge.js +2137 -4578
- package/FillerGauge.js.map +7 -1
- package/Image.config.js +144 -411
- package/Image.config.js.map +7 -1
- package/Image.js +1395 -3048
- package/Image.js.map +7 -1
- package/Line.config.js +1278 -1625
- package/Line.config.js.map +7 -1
- package/Line.js +2957 -4919
- package/Line.js.map +7 -1
- package/LinkGraph.config.js +390 -632
- package/LinkGraph.config.js.map +7 -1
- package/LinkGraph.js +5243 -6190
- package/LinkGraph.js.map +7 -1
- package/MIGRATION.md +12 -0
- package/Map.config.js +501 -801
- package/Map.config.js.map +7 -1
- package/Map.js +3369 -5676
- package/Map.js.map +7 -1
- package/Markdown.config.js +232 -528
- package/Markdown.config.js.map +7 -1
- package/Markdown.js +1645 -3216
- package/Markdown.js.map +7 -1
- package/MarkerGauge.config.js +308 -613
- package/MarkerGauge.config.js.map +7 -1
- package/MarkerGauge.js +2189 -4535
- package/MarkerGauge.js.map +7 -1
- package/ParallelCoordinates.config.js +282 -581
- package/ParallelCoordinates.config.js.map +7 -1
- package/ParallelCoordinates.js +2023 -4720
- package/ParallelCoordinates.js.map +7 -1
- package/Pie.config.js +278 -547
- package/Pie.config.js.map +7 -1
- package/Pie.js +1998 -3982
- package/Pie.js.map +7 -1
- package/Punchcard.config.js +291 -578
- package/Punchcard.config.js.map +7 -1
- package/Punchcard.js +2709 -5042
- package/Punchcard.js.map +7 -1
- package/Rectangle.config.js +455 -770
- package/Rectangle.config.js.map +7 -1
- package/Rectangle.js +1638 -3262
- package/Rectangle.js.map +7 -1
- package/Sankey.config.js +291 -626
- package/Sankey.config.js.map +7 -1
- package/Sankey.js +2737 -4909
- package/Sankey.js.map +7 -1
- package/Scatter.config.js +876 -1194
- package/Scatter.config.js.map +7 -1
- package/Scatter.js +2532 -4470
- package/Scatter.js.map +7 -1
- package/SingleValue.config.js +819 -1251
- package/SingleValue.config.js.map +7 -1
- package/SingleValue.js +4203 -7413
- package/SingleValue.js.map +7 -1
- package/SingleValueBasic.js +382 -1527
- package/SingleValueBasic.js.map +7 -1
- package/SingleValueIcon.config.js +781 -1207
- package/SingleValueIcon.config.js.map +7 -1
- package/SingleValueIcon.js +3350 -6285
- package/SingleValueIcon.js.map +7 -1
- package/SingleValueRadial.config.js +708 -1119
- package/SingleValueRadial.config.js.map +7 -1
- package/SingleValueRadial.js +3808 -6965
- package/SingleValueRadial.js.map +7 -1
- package/SparkLine.js +439 -746
- package/SparkLine.js.map +7 -1
- package/Table.config.js +565 -887
- package/Table.config.js.map +7 -1
- package/Table.js +3277 -5386
- package/Table.js.map +7 -1
- package/common/Charting.js +484 -1462
- package/common/Charting.js.map +7 -1
- package/common/ChartingApi.js +46 -170
- package/common/ChartingApi.js.map +7 -1
- package/common/DocExampleWithVizSandbox.js +270 -473
- package/common/DocExampleWithVizSandbox.js.map +7 -1
- package/common/EventsDoc.js +172 -464
- package/common/EventsDoc.js.map +7 -1
- package/common/GaugeMajorTicks.js +249 -347
- package/common/GaugeMajorTicks.js.map +7 -1
- package/common/GaugeValueMarker.js +201 -311
- package/common/GaugeValueMarker.js.map +7 -1
- package/common/OptionsDoc.js +347 -912
- package/common/OptionsDoc.js.map +7 -1
- package/common/OverviewDoc.js +435 -769
- package/common/OverviewDoc.js.map +7 -1
- package/common/SplunkVisualization.js +116 -259
- package/common/SplunkVisualization.js.map +7 -1
- package/common/SplunkVisualizationApi.js +40 -156
- package/common/SplunkVisualizationApi.js.map +7 -1
- package/common/ThemesDoc.js +271 -420
- package/common/ThemesDoc.js.map +7 -1
- package/common/chartingUtils.js +140 -312
- package/common/chartingUtils.js.map +7 -1
- package/common/docUtils.js +148 -266
- package/common/docUtils.js.map +7 -1
- package/common/gaugeUtils.js +280 -808
- package/common/gaugeUtils.js.map +7 -1
- package/common/shapeUtils.js +106 -211
- package/common/shapeUtils.js.map +7 -1
- package/common/utils/configUtils.js +126 -252
- package/common/utils/configUtils.js.map +7 -1
- package/common/utils/dataUtils.js +217 -812
- package/common/utils/dataUtils.js.map +7 -1
- package/common/utils/featureFlagUtils.js +53 -133
- package/common/utils/featureFlagUtils.js.map +7 -1
- package/common/utils/hocUtils.js +32 -122
- package/common/utils/hocUtils.js.map +7 -1
- package/common/utils/mapUtils.js +502 -1337
- package/common/utils/mapUtils.js.map +7 -1
- package/common/utils/singleValueUtils.js +462 -1010
- package/common/utils/singleValueUtils.js.map +7 -1
- package/common/utils/testHelper.js +92 -146
- package/common/utils/testHelper.js.map +7 -1
- package/common/utils/trellisUtils.js +237 -489
- package/common/utils/trellisUtils.js.map +7 -1
- package/common/utils/urlUtils.js +28 -112
- package/common/utils/urlUtils.js.map +7 -1
- package/common/withDashboardViz.js +1168 -2438
- package/common/withDashboardViz.js.map +7 -1
- package/package.json +52 -43
package/Scatter.config.js
CHANGED
|
@@ -1,1132 +1,855 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/******/ // Execute the module function
|
|
26
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
27
|
-
/******/
|
|
28
|
-
/******/ // Flag the module as loaded
|
|
29
|
-
/******/ module.l = true;
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // Return the exports of the module
|
|
32
|
-
/******/ return module.exports;
|
|
33
|
-
/******/ }
|
|
34
|
-
/******/
|
|
35
|
-
/******/
|
|
36
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
37
|
-
/******/ __webpack_require__.m = modules;
|
|
38
|
-
/******/
|
|
39
|
-
/******/ // expose the module cache
|
|
40
|
-
/******/ __webpack_require__.c = installedModules;
|
|
41
|
-
/******/
|
|
42
|
-
/******/ // define getter function for harmony exports
|
|
43
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
44
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
45
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
46
|
-
/******/ }
|
|
47
|
-
/******/ };
|
|
48
|
-
/******/
|
|
49
|
-
/******/ // define __esModule on exports
|
|
50
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
51
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
52
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
53
|
-
/******/ }
|
|
54
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
55
|
-
/******/ };
|
|
56
|
-
/******/
|
|
57
|
-
/******/ // create a fake namespace object
|
|
58
|
-
/******/ // mode & 1: value is a module id, require it
|
|
59
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
60
|
-
/******/ // mode & 4: return value when already ns object
|
|
61
|
-
/******/ // mode & 8|1: behave like require
|
|
62
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
63
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
64
|
-
/******/ if(mode & 8) return value;
|
|
65
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
66
|
-
/******/ var ns = Object.create(null);
|
|
67
|
-
/******/ __webpack_require__.r(ns);
|
|
68
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
69
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
70
|
-
/******/ return ns;
|
|
71
|
-
/******/ };
|
|
72
|
-
/******/
|
|
73
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
74
|
-
/******/ __webpack_require__.n = function(module) {
|
|
75
|
-
/******/ var getter = module && module.__esModule ?
|
|
76
|
-
/******/ function getDefault() { return module['default']; } :
|
|
77
|
-
/******/ function getModuleExports() { return module; };
|
|
78
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
79
|
-
/******/ return getter;
|
|
80
|
-
/******/ };
|
|
81
|
-
/******/
|
|
82
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
83
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
84
|
-
/******/
|
|
85
|
-
/******/ // __webpack_public_path__
|
|
86
|
-
/******/ __webpack_require__.p = "";
|
|
87
|
-
/******/
|
|
88
|
-
/******/
|
|
89
|
-
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s = 65);
|
|
91
|
-
/******/ })
|
|
92
|
-
/************************************************************************/
|
|
93
|
-
/******/ ({
|
|
94
|
-
|
|
95
|
-
/***/ 0:
|
|
96
|
-
/***/ (function(module, exports) {
|
|
97
|
-
|
|
98
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
99
|
-
|
|
100
|
-
/***/ }),
|
|
101
|
-
|
|
102
|
-
/***/ 1:
|
|
103
|
-
/***/ (function(module, exports) {
|
|
104
|
-
|
|
105
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
106
|
-
|
|
107
|
-
/***/ }),
|
|
108
|
-
|
|
109
|
-
/***/ 10:
|
|
110
|
-
/***/ (function(module, exports) {
|
|
111
|
-
|
|
112
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
113
|
-
|
|
114
|
-
/***/ }),
|
|
115
|
-
|
|
116
|
-
/***/ 11:
|
|
117
|
-
/***/ (function(module, exports) {
|
|
118
|
-
|
|
119
|
-
module.exports = require("@splunk/visualization-icons");
|
|
120
|
-
|
|
121
|
-
/***/ }),
|
|
122
|
-
|
|
123
|
-
/***/ 12:
|
|
124
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
125
|
-
|
|
126
|
-
"use strict";
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
Object.defineProperty(exports, "__esModule", {
|
|
130
|
-
value: true
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
var i18n_1 = __webpack_require__(0);
|
|
134
|
-
|
|
135
|
-
var background = function background(_ref) {
|
|
136
|
-
var label = _ref.label,
|
|
137
|
-
themes = _ref.themes,
|
|
138
|
-
labelPosition = _ref.labelPosition;
|
|
139
|
-
return [{
|
|
140
|
-
label: (0, i18n_1._)(label || 'Background color'),
|
|
141
|
-
option: 'backgroundColor',
|
|
142
|
-
editor: 'editor.color',
|
|
143
|
-
editorProps: {
|
|
144
|
-
labelPosition: labelPosition || 'top',
|
|
145
|
-
themes: themes
|
|
146
|
-
}
|
|
147
|
-
}];
|
|
1
|
+
/* Copyright © 2020 Splunk Inc.
|
|
2
|
+
SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
3
|
+
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defProps = Object.defineProperties;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
9
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
11
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
12
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
14
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15
|
+
var __spreadValues = (a, b) => {
|
|
16
|
+
for (var prop in b || (b = {}))
|
|
17
|
+
if (__hasOwnProp.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
if (__getOwnPropSymbols)
|
|
20
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
21
|
+
if (__propIsEnum.call(b, prop))
|
|
22
|
+
__defNormalProp(a, prop, b[prop]);
|
|
23
|
+
}
|
|
24
|
+
return a;
|
|
148
25
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
26
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
27
|
+
var __export = (target, all) => {
|
|
28
|
+
for (var name in all)
|
|
29
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
30
|
+
};
|
|
31
|
+
var __copyProps = (to, from, except, desc) => {
|
|
32
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
33
|
+
for (let key of __getOwnPropNames(from))
|
|
34
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
35
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
36
|
+
}
|
|
37
|
+
return to;
|
|
38
|
+
};
|
|
39
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
40
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
41
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
42
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
43
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
44
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
45
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
46
|
+
mod
|
|
47
|
+
));
|
|
48
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
49
|
+
|
|
50
|
+
// src/Scatter/config.ts
|
|
51
|
+
var config_exports = {};
|
|
52
|
+
__export(config_exports, {
|
|
53
|
+
default: () => config_default
|
|
164
54
|
});
|
|
165
|
-
|
|
55
|
+
module.exports = __toCommonJS(config_exports);
|
|
166
56
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
57
|
+
// esm-externals:@splunk/visualization-icons
|
|
58
|
+
var visualization_icons_exports = {};
|
|
59
|
+
__export(visualization_icons_exports, {
|
|
60
|
+
default: () => visualization_icons_default
|
|
61
|
+
});
|
|
62
|
+
var defaultImport = __toESM(require("@splunk/visualization-icons"));
|
|
63
|
+
__reExport(visualization_icons_exports, require("@splunk/visualization-icons"));
|
|
64
|
+
var visualization_icons_default = "default" in defaultImport ? defaultImport.default : defaultImport;
|
|
65
|
+
|
|
66
|
+
// esm-externals:@splunk/visualization-icons/placeholders
|
|
67
|
+
var placeholders_exports = {};
|
|
68
|
+
__export(placeholders_exports, {
|
|
69
|
+
default: () => placeholders_default
|
|
70
|
+
});
|
|
71
|
+
var defaultImport2 = __toESM(require("@splunk/visualization-icons/placeholders"));
|
|
72
|
+
__reExport(placeholders_exports, require("@splunk/visualization-icons/placeholders"));
|
|
73
|
+
var placeholders_default = "default" in defaultImport2 ? defaultImport2.default : defaultImport2;
|
|
74
|
+
|
|
75
|
+
// esm-externals:@splunk/themes/pick
|
|
76
|
+
var pick_exports = {};
|
|
77
|
+
__export(pick_exports, {
|
|
78
|
+
default: () => pick_default
|
|
79
|
+
});
|
|
80
|
+
var defaultImport3 = __toESM(require("@splunk/themes/pick"));
|
|
81
|
+
__reExport(pick_exports, require("@splunk/themes/pick"));
|
|
82
|
+
var pick_default = "default" in defaultImport3 ? defaultImport3.default : defaultImport3;
|
|
83
|
+
|
|
84
|
+
// esm-externals:@splunk/themes/variables
|
|
85
|
+
var variables_exports = {};
|
|
86
|
+
__export(variables_exports, {
|
|
87
|
+
default: () => variables_default
|
|
88
|
+
});
|
|
89
|
+
var defaultImport4 = __toESM(require("@splunk/themes/variables"));
|
|
90
|
+
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
91
|
+
var variables_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
|
|
92
|
+
|
|
93
|
+
// esm-externals:@splunk/visualization-schemas
|
|
94
|
+
var visualization_schemas_exports = {};
|
|
95
|
+
__export(visualization_schemas_exports, {
|
|
96
|
+
default: () => visualization_schemas_default
|
|
97
|
+
});
|
|
98
|
+
var defaultImport5 = __toESM(require("@splunk/visualization-schemas"));
|
|
99
|
+
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
100
|
+
var visualization_schemas_default = "default" in defaultImport5 ? defaultImport5.default : defaultImport5;
|
|
101
|
+
|
|
102
|
+
// esm-externals:@splunk/ui-utils/i18n
|
|
103
|
+
var i18n_exports = {};
|
|
104
|
+
__export(i18n_exports, {
|
|
105
|
+
default: () => i18n_default
|
|
106
|
+
});
|
|
107
|
+
var defaultImport6 = __toESM(require("@splunk/ui-utils/i18n"));
|
|
108
|
+
__reExport(i18n_exports, require("@splunk/ui-utils/i18n"));
|
|
109
|
+
var i18n_default = "default" in defaultImport6 ? defaultImport6.default : defaultImport6;
|
|
110
|
+
|
|
111
|
+
// esm-externals:lodash
|
|
112
|
+
var lodash_exports = {};
|
|
113
|
+
__export(lodash_exports, {
|
|
114
|
+
default: () => lodash_default
|
|
115
|
+
});
|
|
116
|
+
var defaultImport7 = __toESM(require("lodash"));
|
|
117
|
+
__reExport(lodash_exports, require("lodash"));
|
|
118
|
+
var lodash_default = "default" in defaultImport7 ? defaultImport7.default : defaultImport7;
|
|
119
|
+
|
|
120
|
+
// esm-externals:@splunk/visualizations-shared/configUtils
|
|
121
|
+
var configUtils_exports = {};
|
|
122
|
+
__export(configUtils_exports, {
|
|
123
|
+
default: () => configUtils_default
|
|
124
|
+
});
|
|
125
|
+
var defaultImport8 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
126
|
+
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
127
|
+
var configUtils_default = "default" in defaultImport8 ? defaultImport8.default : defaultImport8;
|
|
170
128
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
editorProps: {
|
|
178
|
-
dataSourceKey: 'primary',
|
|
179
|
-
supportsDSL: true,
|
|
180
|
-
expectedDataPrimitive: ['series']
|
|
181
|
-
}
|
|
182
|
-
}], [{
|
|
183
|
-
label: (0, i18n_1._)('Y'),
|
|
184
|
-
option: 'y',
|
|
185
|
-
editor: 'editor.columnMultiSelector',
|
|
186
|
-
editorProps: {
|
|
187
|
-
dataSourceKey: 'primary',
|
|
188
|
-
filterByTypes: ['number'],
|
|
189
|
-
supportsDSL: true,
|
|
190
|
-
expectedDataPrimitive: ['series', 'frame']
|
|
191
|
-
}
|
|
192
|
-
}], [{
|
|
193
|
-
label: (0, i18n_1._)('Result limit'),
|
|
194
|
-
option: 'resultLimit',
|
|
195
|
-
editor: 'editor.number',
|
|
196
|
-
editorProps: {
|
|
197
|
-
dataSourceKey: 'primary'
|
|
129
|
+
// src/common/utils/configUtils.ts
|
|
130
|
+
function enhanceConfig(vizConfig) {
|
|
131
|
+
const enhancedConfig = __spreadValues({}, vizConfig);
|
|
132
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(
|
|
133
|
+
(config2) => {
|
|
134
|
+
return __spreadProps(__spreadValues({}, config2), { open: config2.open || false });
|
|
198
135
|
}
|
|
199
|
-
|
|
136
|
+
);
|
|
137
|
+
return enhancedConfig;
|
|
138
|
+
}
|
|
139
|
+
var insertLayout = (layout, index, ...layoutItems) => [
|
|
140
|
+
// copy part of the array before the specified index
|
|
141
|
+
...layout.slice(0, index),
|
|
142
|
+
// inserted layout item
|
|
143
|
+
...layoutItems,
|
|
144
|
+
// copy part of the array after the specified index
|
|
145
|
+
...layout.slice(index)
|
|
146
|
+
];
|
|
147
|
+
|
|
148
|
+
// src/common/editorConfig/AxesChartDataConfig.ts
|
|
149
|
+
var AxesChartDataConfig = {
|
|
150
|
+
label: (0, i18n_exports._)("Data configurations"),
|
|
151
|
+
layout: [
|
|
152
|
+
[
|
|
153
|
+
{
|
|
154
|
+
label: (0, i18n_exports._)("X"),
|
|
155
|
+
option: "x",
|
|
156
|
+
editor: "editor.columnSelector",
|
|
157
|
+
editorProps: {
|
|
158
|
+
dataSourceKey: "primary",
|
|
159
|
+
supportsDSL: true,
|
|
160
|
+
expectedDataPrimitive: ["series"]
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
[
|
|
165
|
+
{
|
|
166
|
+
label: (0, i18n_exports._)("Y"),
|
|
167
|
+
option: "y",
|
|
168
|
+
editor: "editor.columnMultiSelector",
|
|
169
|
+
editorProps: {
|
|
170
|
+
dataSourceKey: "primary",
|
|
171
|
+
filterByTypes: ["number"],
|
|
172
|
+
supportsDSL: true,
|
|
173
|
+
expectedDataPrimitive: ["series", "frame"]
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
{
|
|
179
|
+
label: (0, i18n_exports._)("Result limit"),
|
|
180
|
+
option: "resultLimit",
|
|
181
|
+
editor: "editor.number",
|
|
182
|
+
editorProps: {
|
|
183
|
+
dataSourceKey: "primary"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
]
|
|
200
188
|
};
|
|
201
|
-
|
|
189
|
+
var AxesChartDataConfigBar = {
|
|
202
190
|
label: AxesChartDataConfig.label,
|
|
203
191
|
// insert Y2 after Y
|
|
204
|
-
layout:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
192
|
+
layout: insertLayout(AxesChartDataConfig.layout, 2, [
|
|
193
|
+
{
|
|
194
|
+
label: (0, i18n_exports._)("Y2"),
|
|
195
|
+
option: "y2",
|
|
196
|
+
editor: "editor.columnMultiSelector",
|
|
197
|
+
editorProps: {
|
|
198
|
+
dataSourceKey: "primary",
|
|
199
|
+
filterByTypes: ["number"],
|
|
200
|
+
supportsDSL: true,
|
|
201
|
+
expectedDataPrimitive: ["series", "frame"]
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
])
|
|
215
205
|
};
|
|
216
|
-
|
|
206
|
+
var AxesChartDataConfigScatter = {
|
|
217
207
|
label: AxesChartDataConfig.label,
|
|
218
|
-
layout: [
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
208
|
+
layout: [
|
|
209
|
+
[
|
|
210
|
+
{
|
|
211
|
+
label: (0, i18n_exports._)("X"),
|
|
212
|
+
option: "x",
|
|
213
|
+
editor: "editor.columnSelector",
|
|
214
|
+
editorProps: {
|
|
215
|
+
dataSourceKey: "primary",
|
|
216
|
+
supportsDSL: true,
|
|
217
|
+
expectedDataPrimitive: ["series"]
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
[
|
|
222
|
+
{
|
|
223
|
+
label: (0, i18n_exports._)("Y"),
|
|
224
|
+
option: "y",
|
|
225
|
+
editor: "editor.columnSelector",
|
|
226
|
+
editorProps: {
|
|
227
|
+
dataSourceKey: "primary",
|
|
228
|
+
filterByTypes: ["number"],
|
|
229
|
+
supportsDSL: true,
|
|
230
|
+
expectedDataPrimitive: ["series"]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
[
|
|
235
|
+
{
|
|
236
|
+
label: (0, i18n_exports._)("Category"),
|
|
237
|
+
option: "category",
|
|
238
|
+
editor: "editor.columnSelector",
|
|
239
|
+
editorProps: {
|
|
240
|
+
dataSourceKey: "primary",
|
|
241
|
+
supportsDSL: true,
|
|
242
|
+
expectedDataPrimitive: ["series"]
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
[
|
|
247
|
+
{
|
|
248
|
+
label: (0, i18n_exports._)("Result limit"),
|
|
249
|
+
option: "resultLimit",
|
|
250
|
+
editor: "editor.number",
|
|
251
|
+
editorProps: {
|
|
252
|
+
dataSourceKey: "primary"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
]
|
|
254
257
|
};
|
|
255
|
-
|
|
256
|
-
label:
|
|
258
|
+
var AxesChartDataConfigBubble = {
|
|
259
|
+
label: AxesChartDataConfigScatter.label,
|
|
257
260
|
// layout: insert Size after Category
|
|
258
|
-
layout:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
261
|
+
layout: insertLayout(AxesChartDataConfigScatter.layout, 3, [
|
|
262
|
+
{
|
|
263
|
+
label: (0, i18n_exports._)("Size"),
|
|
264
|
+
option: "size",
|
|
265
|
+
editor: "editor.columnSelector",
|
|
266
|
+
editorProps: {
|
|
267
|
+
dataSourceKey: "primary",
|
|
268
|
+
supportsDSL: true,
|
|
269
|
+
expectedDataPrimitive: ["series"]
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
])
|
|
268
273
|
};
|
|
269
|
-
|
|
270
|
-
label:
|
|
271
|
-
layout: [
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
274
|
+
var AxesChartDataConfigAreaColumnLine = {
|
|
275
|
+
label: AxesChartDataConfigBar.label,
|
|
276
|
+
layout: [
|
|
277
|
+
...AxesChartDataConfigBar.layout,
|
|
278
|
+
[
|
|
279
|
+
{
|
|
280
|
+
label: (0, i18n_exports._)("Annotation x"),
|
|
281
|
+
option: "annotationX",
|
|
282
|
+
editor: "editor.columnSelector",
|
|
283
|
+
editorProps: {
|
|
284
|
+
dataSourceKey: "annotation",
|
|
285
|
+
supportsDSL: true,
|
|
286
|
+
expectedDataPrimitive: ["series"]
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
[
|
|
291
|
+
{
|
|
292
|
+
label: (0, i18n_exports._)("Annotation labels"),
|
|
293
|
+
option: "annotationLabel",
|
|
294
|
+
editor: "editor.columnSelector",
|
|
295
|
+
editorProps: {
|
|
296
|
+
dataSourceKey: "annotation",
|
|
297
|
+
supportsDSL: true,
|
|
298
|
+
expectedDataPrimitive: ["series"]
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
]
|
|
290
303
|
};
|
|
291
|
-
exports.default = AxesChartDataConfig;
|
|
292
|
-
|
|
293
|
-
/***/ }),
|
|
294
|
-
|
|
295
|
-
/***/ 15:
|
|
296
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
297
|
-
|
|
298
|
-
"use strict";
|
|
299
|
-
|
|
300
304
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
305
|
+
// src/common/editorConfig/AxesChartXGridAndLabels.ts
|
|
306
|
+
var AxesChartXGridAndLabelsCommon = {
|
|
307
|
+
label: (0, i18n_exports._)("X-axis grid and labels"),
|
|
308
|
+
layout: [
|
|
309
|
+
[
|
|
310
|
+
{
|
|
311
|
+
label: (0, i18n_exports._)("Axis title"),
|
|
312
|
+
option: "xAxisTitleVisibility",
|
|
313
|
+
editor: "editor.toggle"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
[
|
|
317
|
+
{
|
|
318
|
+
label: (0, i18n_exports._)("Axis title text"),
|
|
319
|
+
option: "xAxisTitleText",
|
|
320
|
+
editor: "editor.text",
|
|
321
|
+
showEditor: ({ options }) => options.xAxisTitleVisibility === "show" || options.xAxisTitleVisibility === void 0
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
[
|
|
325
|
+
{
|
|
326
|
+
label: (0, i18n_exports._)("Label visibility"),
|
|
327
|
+
option: "xAxisLabelVisibility",
|
|
328
|
+
editor: "editor.radioBar",
|
|
329
|
+
editorProps: {
|
|
330
|
+
values: [
|
|
331
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
332
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
333
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
]
|
|
338
|
+
]
|
|
323
339
|
};
|
|
324
|
-
var
|
|
325
|
-
label:
|
|
326
|
-
layout: [
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
340
|
+
var AxesChartXGridAndLabels = {
|
|
341
|
+
label: AxesChartXGridAndLabelsCommon.label,
|
|
342
|
+
layout: [
|
|
343
|
+
...AxesChartXGridAndLabelsCommon.layout,
|
|
344
|
+
[
|
|
345
|
+
{
|
|
346
|
+
label: (0, i18n_exports._)("Label rotation"),
|
|
347
|
+
option: "xAxisLabelRotation",
|
|
348
|
+
editor: "editor.select",
|
|
349
|
+
editorProps: {
|
|
350
|
+
values: [
|
|
351
|
+
{ label: (0, i18n_exports._)("-90"), value: -90 },
|
|
352
|
+
{ label: (0, i18n_exports._)("-45"), value: -45 },
|
|
353
|
+
{ label: (0, i18n_exports._)("0"), value: 0 },
|
|
354
|
+
{ label: (0, i18n_exports._)("45"), value: 45 },
|
|
355
|
+
{ label: (0, i18n_exports._)("90"), value: 90 }
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
[
|
|
362
|
+
{
|
|
363
|
+
label: (0, i18n_exports._)("Number of time label parts"),
|
|
364
|
+
option: "xAxisMaxLabelParts",
|
|
365
|
+
editor: "editor.number",
|
|
366
|
+
editorProps: {
|
|
367
|
+
min: 1,
|
|
368
|
+
max: 3
|
|
369
|
+
},
|
|
370
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
[
|
|
374
|
+
{
|
|
375
|
+
label: (0, i18n_exports._)("Axis line visibility"),
|
|
376
|
+
option: "xAxisLineVisibility",
|
|
377
|
+
editor: "editor.checkbox"
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
[
|
|
381
|
+
{
|
|
382
|
+
label: (0, i18n_exports._)("Major gridlines"),
|
|
383
|
+
option: "showXMajorGridLines",
|
|
384
|
+
editor: "editor.checkbox"
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
[
|
|
388
|
+
{
|
|
389
|
+
label: (0, i18n_exports._)("Major tick visibility"),
|
|
390
|
+
option: "xAxisMajorTickVisibility",
|
|
391
|
+
editor: "editor.radioBar",
|
|
392
|
+
editorProps: {
|
|
393
|
+
values: [
|
|
394
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
395
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
396
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
[
|
|
402
|
+
{
|
|
403
|
+
label: (0, i18n_exports._)("Major tick size (px)"),
|
|
404
|
+
option: "xAxisMajorTickSize",
|
|
405
|
+
editor: "editor.slider",
|
|
406
|
+
editorProps: {
|
|
407
|
+
min: 0,
|
|
408
|
+
max: 10,
|
|
409
|
+
step: 1
|
|
410
|
+
},
|
|
411
|
+
showEditor: ({ options }) => options.xAxisMajorTickVisibility === "show" || options.xAxisMajorTickVisibility === "auto" || options.xAxisMajorTickVisibility === void 0
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
]
|
|
337
415
|
};
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
416
|
+
var AxesChartXGridAndLabelsBubbleScatter = {
|
|
417
|
+
label: AxesChartXGridAndLabelsCommon.label,
|
|
418
|
+
layout: [
|
|
419
|
+
...insertLayout(AxesChartXGridAndLabelsCommon.layout, 2, [
|
|
420
|
+
{
|
|
421
|
+
label: (0, i18n_exports._)("Axis scale"),
|
|
422
|
+
option: "xAxisScale",
|
|
423
|
+
editor: "editor.radioBar",
|
|
424
|
+
editorProps: {
|
|
425
|
+
values: [
|
|
426
|
+
{ label: (0, i18n_exports._)("Linear"), value: "linear" },
|
|
427
|
+
{ label: (0, i18n_exports._)("Log"), value: "log" }
|
|
428
|
+
]
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
]),
|
|
432
|
+
[
|
|
433
|
+
{
|
|
434
|
+
label: (0, i18n_exports._)("Label rotation"),
|
|
435
|
+
option: "xAxisLabelRotation",
|
|
436
|
+
editor: "editor.select",
|
|
437
|
+
editorProps: {
|
|
438
|
+
values: [
|
|
439
|
+
{ label: (0, i18n_exports._)("-90"), value: -90 },
|
|
440
|
+
{ label: (0, i18n_exports._)("-45"), value: -45 },
|
|
441
|
+
{ label: (0, i18n_exports._)("0"), value: 0 },
|
|
442
|
+
{ label: (0, i18n_exports._)("45"), value: 45 },
|
|
443
|
+
{ label: (0, i18n_exports._)("90"), value: 90 }
|
|
444
|
+
]
|
|
445
|
+
},
|
|
446
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
447
|
+
}
|
|
448
|
+
],
|
|
449
|
+
[
|
|
450
|
+
{
|
|
451
|
+
label: (0, i18n_exports._)("Round axis labels"),
|
|
452
|
+
option: "showRoundedXAxisLabels",
|
|
453
|
+
editor: "editor.checkbox",
|
|
454
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
[
|
|
458
|
+
{
|
|
459
|
+
label: (0, i18n_exports._)("SI prefix abbreviation for labels"),
|
|
460
|
+
option: "xAxisAbbreviation",
|
|
461
|
+
editor: "editor.checkbox",
|
|
462
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
[
|
|
466
|
+
{
|
|
467
|
+
label: (0, i18n_exports._)("Include zero"),
|
|
468
|
+
option: "showXAxisWithZero",
|
|
469
|
+
editor: "editor.checkbox"
|
|
470
|
+
}
|
|
471
|
+
],
|
|
472
|
+
[
|
|
473
|
+
{
|
|
474
|
+
label: (0, i18n_exports._)("Extend to whole grid"),
|
|
475
|
+
option: "showXAxisExtendedRange",
|
|
476
|
+
editor: "editor.checkbox"
|
|
477
|
+
}
|
|
478
|
+
],
|
|
479
|
+
[
|
|
480
|
+
{
|
|
481
|
+
label: (0, i18n_exports._)("Minimum axis value"),
|
|
482
|
+
option: "xAxisMin",
|
|
483
|
+
editor: "editor.number"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
label: (0, i18n_exports._)("Maximum axis value"),
|
|
487
|
+
option: "xAxisMax",
|
|
488
|
+
editor: "editor.number"
|
|
489
|
+
}
|
|
490
|
+
],
|
|
491
|
+
[
|
|
492
|
+
{
|
|
493
|
+
label: (0, i18n_exports._)("Axis line visibility"),
|
|
494
|
+
option: "xAxisLineVisibility",
|
|
495
|
+
editor: "editor.checkbox"
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
// this option is disabled for bubble and scatter
|
|
499
|
+
// [
|
|
500
|
+
// {
|
|
501
|
+
// label: _('Major gridlines'),
|
|
502
|
+
// option: 'showXMajorGridLines',
|
|
503
|
+
// editor: 'editor.checkbox',
|
|
504
|
+
// },
|
|
505
|
+
// ],
|
|
506
|
+
[
|
|
507
|
+
{
|
|
508
|
+
label: (0, i18n_exports._)("Major tick visibility"),
|
|
509
|
+
option: "xAxisMajorTickVisibility",
|
|
510
|
+
editor: "editor.radioBar",
|
|
511
|
+
editorProps: {
|
|
512
|
+
values: [
|
|
513
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
514
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
515
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
516
|
+
]
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
[
|
|
521
|
+
{
|
|
522
|
+
label: (0, i18n_exports._)("Major tick size (px)"),
|
|
523
|
+
option: "xAxisMajorTickSize",
|
|
524
|
+
editor: "editor.slider",
|
|
525
|
+
editorProps: {
|
|
526
|
+
min: 0,
|
|
527
|
+
max: 10,
|
|
528
|
+
step: 1
|
|
529
|
+
},
|
|
530
|
+
showEditor: ({ options }) => options.xAxisMajorTickVisibility === "show" || options.xAxisMajorTickVisibility === "auto" || options.xAxisMajorTickVisibility === void 0
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
[
|
|
534
|
+
{
|
|
535
|
+
label: (0, i18n_exports._)("Major tick interval spacing"),
|
|
536
|
+
option: "xAxisMajorTickInterval",
|
|
537
|
+
editor: "editor.number",
|
|
538
|
+
showEditor: ({ options }) => options.xAxisMajorTickVisibility === "show" || options.xAxisMajorTickVisibility === "auto" || options.xAxisMajorTickVisibility === void 0
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
[
|
|
542
|
+
{
|
|
543
|
+
label: (0, i18n_exports._)("Minor gridlines"),
|
|
544
|
+
option: "showXMinorGridLines",
|
|
545
|
+
editor: "editor.checkbox"
|
|
546
|
+
}
|
|
547
|
+
],
|
|
548
|
+
[
|
|
549
|
+
{
|
|
550
|
+
label: (0, i18n_exports._)("Minor tick visibility"),
|
|
551
|
+
option: "xAxisMinorTickVisibility",
|
|
552
|
+
editor: "editor.radioBar",
|
|
553
|
+
editorProps: {
|
|
554
|
+
values: [
|
|
555
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
556
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
557
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
558
|
+
]
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
[
|
|
563
|
+
{
|
|
564
|
+
label: (0, i18n_exports._)("Minor tick size (px)"),
|
|
565
|
+
option: "xAxisMinorTickSize",
|
|
566
|
+
editor: "editor.slider",
|
|
567
|
+
editorProps: {
|
|
568
|
+
min: 0,
|
|
569
|
+
max: 10,
|
|
570
|
+
step: 1
|
|
571
|
+
},
|
|
572
|
+
showEditor: ({ options }) => options.xAxisMinorTickVisibility === "show" || options.xAxisMinorTickVisibility === "auto" || options.xAxisMinorTickVisibility === void 0
|
|
573
|
+
}
|
|
574
|
+
]
|
|
575
|
+
]
|
|
402
576
|
};
|
|
403
|
-
exports.default = AxesChartLegend;
|
|
404
|
-
|
|
405
|
-
/***/ }),
|
|
406
|
-
|
|
407
|
-
/***/ 17:
|
|
408
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
409
|
-
|
|
410
|
-
"use strict";
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
var _toConsumableArray = __webpack_require__(1);
|
|
414
|
-
|
|
415
|
-
Object.defineProperty(exports, "__esModule", {
|
|
416
|
-
value: true
|
|
417
|
-
});
|
|
418
|
-
exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCommon = void 0;
|
|
419
|
-
|
|
420
|
-
var i18n_1 = __webpack_require__(0);
|
|
421
|
-
|
|
422
|
-
var configUtils_1 = __webpack_require__(3);
|
|
423
577
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
label: (0,
|
|
432
|
-
option:
|
|
433
|
-
editor:
|
|
434
|
-
showEditor: function showEditor(_ref) {
|
|
435
|
-
var options = _ref.options;
|
|
436
|
-
return options.xAxisTitleVisibility === 'show' || options.xAxisTitleVisibility === undefined;
|
|
437
|
-
}
|
|
438
|
-
}], [{
|
|
439
|
-
label: (0, i18n_1._)('Label visibility'),
|
|
440
|
-
option: 'xAxisLabelVisibility',
|
|
441
|
-
editor: 'editor.radioBar',
|
|
442
|
-
editorProps: {
|
|
443
|
-
values: [{
|
|
444
|
-
label: (0, i18n_1._)('Auto'),
|
|
445
|
-
value: 'auto'
|
|
446
|
-
}, {
|
|
447
|
-
label: (0, i18n_1._)('Show'),
|
|
448
|
-
value: 'show'
|
|
449
|
-
}, {
|
|
450
|
-
label: (0, i18n_1._)('Hide'),
|
|
451
|
-
value: 'hide'
|
|
452
|
-
}]
|
|
453
|
-
}
|
|
454
|
-
}]]
|
|
455
|
-
};
|
|
456
|
-
var AxesChartXGridAndLabels = {
|
|
457
|
-
label: exports.AxesChartXGridAndLabelsCommon.label,
|
|
458
|
-
layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
|
|
459
|
-
label: (0, i18n_1._)('Label rotation'),
|
|
460
|
-
option: 'xAxisLabelRotation',
|
|
461
|
-
editor: 'editor.select',
|
|
462
|
-
editorProps: {
|
|
463
|
-
values: [{
|
|
464
|
-
label: (0, i18n_1._)('-90'),
|
|
465
|
-
value: -90
|
|
466
|
-
}, {
|
|
467
|
-
label: (0, i18n_1._)('-45'),
|
|
468
|
-
value: -45
|
|
469
|
-
}, {
|
|
470
|
-
label: (0, i18n_1._)('0'),
|
|
471
|
-
value: 0
|
|
472
|
-
}, {
|
|
473
|
-
label: (0, i18n_1._)('45'),
|
|
474
|
-
value: 45
|
|
475
|
-
}, {
|
|
476
|
-
label: (0, i18n_1._)('90'),
|
|
477
|
-
value: 90
|
|
478
|
-
}]
|
|
479
|
-
},
|
|
480
|
-
showEditor: function showEditor(_ref2) {
|
|
481
|
-
var options = _ref2.options;
|
|
482
|
-
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
483
|
-
}
|
|
484
|
-
}], [{
|
|
485
|
-
label: (0, i18n_1._)('Number of time label parts'),
|
|
486
|
-
option: 'xAxisMaxLabelParts',
|
|
487
|
-
editor: 'editor.number',
|
|
488
|
-
editorProps: {
|
|
489
|
-
min: 1,
|
|
490
|
-
max: 3
|
|
491
|
-
},
|
|
492
|
-
showEditor: function showEditor(_ref3) {
|
|
493
|
-
var options = _ref3.options;
|
|
494
|
-
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
495
|
-
}
|
|
496
|
-
}], [{
|
|
497
|
-
label: (0, i18n_1._)('Axis line visibility'),
|
|
498
|
-
option: 'xAxisLineVisibility',
|
|
499
|
-
editor: 'editor.checkbox'
|
|
500
|
-
}], [{
|
|
501
|
-
label: (0, i18n_1._)('Major gridlines'),
|
|
502
|
-
option: 'showXMajorGridLines',
|
|
503
|
-
editor: 'editor.checkbox'
|
|
504
|
-
}], [{
|
|
505
|
-
label: (0, i18n_1._)('Major tick visibility'),
|
|
506
|
-
option: 'xAxisMajorTickVisibility',
|
|
507
|
-
editor: 'editor.radioBar',
|
|
578
|
+
// src/common/editorConfig/BackgroundColor.ts
|
|
579
|
+
var background = ({
|
|
580
|
+
label,
|
|
581
|
+
themes: themes3,
|
|
582
|
+
labelPosition
|
|
583
|
+
}) => [
|
|
584
|
+
{
|
|
585
|
+
label: (0, i18n_exports._)(label || "Background color"),
|
|
586
|
+
option: "backgroundColor",
|
|
587
|
+
editor: "editor.color",
|
|
508
588
|
editorProps: {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
value: 'auto'
|
|
512
|
-
}, {
|
|
513
|
-
label: (0, i18n_1._)('Show'),
|
|
514
|
-
value: 'show'
|
|
515
|
-
}, {
|
|
516
|
-
label: (0, i18n_1._)('Hide'),
|
|
517
|
-
value: 'hide'
|
|
518
|
-
}]
|
|
589
|
+
labelPosition: labelPosition || "top",
|
|
590
|
+
themes: themes3
|
|
519
591
|
}
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
592
|
+
}
|
|
593
|
+
];
|
|
594
|
+
var BackgroundColor_default = background;
|
|
595
|
+
|
|
596
|
+
// src/common/editorConfig/AxesChartColorAndStyle.ts
|
|
597
|
+
var themes = {
|
|
598
|
+
defaultBackgroundColor: (props) => pick_default({
|
|
599
|
+
enterprise: {
|
|
600
|
+
dark: variables_default.black(props),
|
|
601
|
+
light: variables_default.backgroundColor(props)
|
|
528
602
|
},
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
532
|
-
}
|
|
533
|
-
}]])
|
|
603
|
+
prisma: variables_default.backgroundColorSidebar(props)
|
|
604
|
+
})(props)
|
|
534
605
|
};
|
|
535
|
-
|
|
536
|
-
label:
|
|
537
|
-
layout: [
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
editorProps: {
|
|
555
|
-
values: [{
|
|
556
|
-
label: (0, i18n_1._)('-90'),
|
|
557
|
-
value: -90
|
|
558
|
-
}, {
|
|
559
|
-
label: (0, i18n_1._)('-45'),
|
|
560
|
-
value: -45
|
|
561
|
-
}, {
|
|
562
|
-
label: (0, i18n_1._)('0'),
|
|
563
|
-
value: 0
|
|
564
|
-
}, {
|
|
565
|
-
label: (0, i18n_1._)('45'),
|
|
566
|
-
value: 45
|
|
567
|
-
}, {
|
|
568
|
-
label: (0, i18n_1._)('90'),
|
|
569
|
-
value: 90
|
|
570
|
-
}]
|
|
571
|
-
},
|
|
572
|
-
showEditor: function showEditor(_ref5) {
|
|
573
|
-
var options = _ref5.options;
|
|
574
|
-
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
575
|
-
}
|
|
576
|
-
}], [{
|
|
577
|
-
label: (0, i18n_1._)('Round axis labels'),
|
|
578
|
-
option: 'showRoundedXAxisLabels',
|
|
579
|
-
editor: 'editor.checkbox',
|
|
580
|
-
showEditor: function showEditor(_ref6) {
|
|
581
|
-
var options = _ref6.options;
|
|
582
|
-
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
583
|
-
}
|
|
584
|
-
}], [{
|
|
585
|
-
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
586
|
-
option: 'xAxisAbbreviation',
|
|
587
|
-
editor: 'editor.checkbox',
|
|
588
|
-
showEditor: function showEditor(_ref7) {
|
|
589
|
-
var options = _ref7.options;
|
|
590
|
-
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
591
|
-
}
|
|
592
|
-
}], [{
|
|
593
|
-
label: (0, i18n_1._)('Include zero'),
|
|
594
|
-
option: 'showXAxisWithZero',
|
|
595
|
-
editor: 'editor.checkbox'
|
|
596
|
-
}], [{
|
|
597
|
-
label: (0, i18n_1._)('Extend to whole grid'),
|
|
598
|
-
option: 'showXAxisExtendedRange',
|
|
599
|
-
editor: 'editor.checkbox'
|
|
600
|
-
}], [{
|
|
601
|
-
label: (0, i18n_1._)('Minimum axis value'),
|
|
602
|
-
option: 'xAxisMin',
|
|
603
|
-
editor: 'editor.number'
|
|
604
|
-
}, {
|
|
605
|
-
label: (0, i18n_1._)('Maximum axis value'),
|
|
606
|
-
option: 'xAxisMax',
|
|
607
|
-
editor: 'editor.number'
|
|
608
|
-
}], [{
|
|
609
|
-
label: (0, i18n_1._)('Axis line visibility'),
|
|
610
|
-
option: 'xAxisLineVisibility',
|
|
611
|
-
editor: 'editor.checkbox'
|
|
612
|
-
}], // this option is disabled for bubble and scatter
|
|
613
|
-
// [
|
|
614
|
-
// {
|
|
615
|
-
// label: _('Major gridlines'),
|
|
616
|
-
// option: 'showXMajorGridLines',
|
|
617
|
-
// editor: 'editor.checkbox',
|
|
618
|
-
// },
|
|
619
|
-
// ],
|
|
620
|
-
[{
|
|
621
|
-
label: (0, i18n_1._)('Major tick visibility'),
|
|
622
|
-
option: 'xAxisMajorTickVisibility',
|
|
623
|
-
editor: 'editor.radioBar',
|
|
624
|
-
editorProps: {
|
|
625
|
-
values: [{
|
|
626
|
-
label: (0, i18n_1._)('Auto'),
|
|
627
|
-
value: 'auto'
|
|
628
|
-
}, {
|
|
629
|
-
label: (0, i18n_1._)('Show'),
|
|
630
|
-
value: 'show'
|
|
631
|
-
}, {
|
|
632
|
-
label: (0, i18n_1._)('Hide'),
|
|
633
|
-
value: 'hide'
|
|
634
|
-
}]
|
|
635
|
-
}
|
|
636
|
-
}], [{
|
|
637
|
-
label: (0, i18n_1._)('Major tick size (px)'),
|
|
638
|
-
option: 'xAxisMajorTickSize',
|
|
639
|
-
editor: 'editor.slider',
|
|
640
|
-
editorProps: {
|
|
641
|
-
min: 0,
|
|
642
|
-
max: 10,
|
|
643
|
-
step: 1
|
|
644
|
-
},
|
|
645
|
-
showEditor: function showEditor(_ref8) {
|
|
646
|
-
var options = _ref8.options;
|
|
647
|
-
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
648
|
-
}
|
|
649
|
-
}], [{
|
|
650
|
-
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
651
|
-
option: 'xAxisMajorTickInterval',
|
|
652
|
-
editor: 'editor.number',
|
|
653
|
-
showEditor: function showEditor(_ref9) {
|
|
654
|
-
var options = _ref9.options;
|
|
655
|
-
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
656
|
-
}
|
|
657
|
-
}], [{
|
|
658
|
-
label: (0, i18n_1._)('Minor gridlines'),
|
|
659
|
-
option: 'showXMinorGridLines',
|
|
660
|
-
editor: 'editor.checkbox'
|
|
661
|
-
}], [{
|
|
662
|
-
label: (0, i18n_1._)('Minor tick visibility'),
|
|
663
|
-
option: 'xAxisMinorTickVisibility',
|
|
664
|
-
editor: 'editor.radioBar',
|
|
665
|
-
editorProps: {
|
|
666
|
-
values: [{
|
|
667
|
-
label: (0, i18n_1._)('Auto'),
|
|
668
|
-
value: 'auto'
|
|
669
|
-
}, {
|
|
670
|
-
label: (0, i18n_1._)('Show'),
|
|
671
|
-
value: 'show'
|
|
672
|
-
}, {
|
|
673
|
-
label: (0, i18n_1._)('Hide'),
|
|
674
|
-
value: 'hide'
|
|
675
|
-
}]
|
|
676
|
-
}
|
|
677
|
-
}], [{
|
|
678
|
-
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
679
|
-
option: 'xAxisMinorTickSize',
|
|
680
|
-
editor: 'editor.slider',
|
|
681
|
-
editorProps: {
|
|
682
|
-
min: 0,
|
|
683
|
-
max: 10,
|
|
684
|
-
step: 1
|
|
685
|
-
},
|
|
686
|
-
showEditor: function showEditor(_ref10) {
|
|
687
|
-
var options = _ref10.options;
|
|
688
|
-
return options.xAxisMinorTickVisibility === 'show' || options.xAxisMinorTickVisibility === 'auto' || options.xAxisMinorTickVisibility === undefined;
|
|
689
|
-
}
|
|
690
|
-
}]])
|
|
606
|
+
var AxesChartColorAndStyle = {
|
|
607
|
+
label: (0, i18n_exports._)("Color and style"),
|
|
608
|
+
layout: [
|
|
609
|
+
BackgroundColor_default({ themes }),
|
|
610
|
+
[
|
|
611
|
+
{
|
|
612
|
+
label: (0, i18n_exports._)("Series colors"),
|
|
613
|
+
option: "seriesColors",
|
|
614
|
+
editor: "editor.seriesColors"
|
|
615
|
+
}
|
|
616
|
+
],
|
|
617
|
+
[
|
|
618
|
+
{
|
|
619
|
+
label: (0, i18n_exports._)("Series colors by field name"),
|
|
620
|
+
option: "seriesColorsByField",
|
|
621
|
+
editor: "editor.seriesColorsByField"
|
|
622
|
+
}
|
|
623
|
+
]
|
|
624
|
+
]
|
|
691
625
|
};
|
|
692
|
-
|
|
626
|
+
var AxesChartColorAndStyle_default = AxesChartColorAndStyle;
|
|
693
627
|
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
label: (0, i18n_1._)('Log'),
|
|
732
|
-
value: 'log'
|
|
733
|
-
}]
|
|
734
|
-
}
|
|
735
|
-
}], [{
|
|
736
|
-
label: (0, i18n_1._)('Label visibility'),
|
|
737
|
-
option: 'yAxisLabelVisibility',
|
|
738
|
-
editor: 'editor.radioBar',
|
|
739
|
-
editorProps: {
|
|
740
|
-
values: [{
|
|
741
|
-
label: (0, i18n_1._)('Auto'),
|
|
742
|
-
value: 'auto'
|
|
743
|
-
}, {
|
|
744
|
-
label: (0, i18n_1._)('Show'),
|
|
745
|
-
value: 'show'
|
|
746
|
-
}, {
|
|
747
|
-
label: (0, i18n_1._)('Hide'),
|
|
748
|
-
value: 'hide'
|
|
749
|
-
}]
|
|
750
|
-
}
|
|
751
|
-
}], [{
|
|
752
|
-
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
753
|
-
option: 'yAxisAbbreviation',
|
|
754
|
-
editor: 'editor.checkbox',
|
|
755
|
-
showEditor: function showEditor(_ref2) {
|
|
756
|
-
var options = _ref2.options;
|
|
757
|
-
return options.yAxisLabelVisibility === 'show' || options.yAxisLabelVisibility === 'auto' || options.yAxisLabelVisibility === undefined;
|
|
758
|
-
}
|
|
759
|
-
}], [{
|
|
760
|
-
label: (0, i18n_1._)('Include zero'),
|
|
761
|
-
option: 'showYAxisWithZero',
|
|
762
|
-
editor: 'editor.checkbox'
|
|
763
|
-
}], [{
|
|
764
|
-
label: (0, i18n_1._)('Extend to whole grid'),
|
|
765
|
-
option: 'showYAxisExtendedRange',
|
|
766
|
-
editor: 'editor.checkbox'
|
|
767
|
-
}], [{
|
|
768
|
-
label: (0, i18n_1._)('Minimum axis value'),
|
|
769
|
-
option: 'yAxisMin',
|
|
770
|
-
editor: 'editor.number'
|
|
771
|
-
}, {
|
|
772
|
-
label: (0, i18n_1._)('Maximum axis value'),
|
|
773
|
-
option: 'yAxisMax',
|
|
774
|
-
editor: 'editor.number'
|
|
775
|
-
}], [{
|
|
776
|
-
label: (0, i18n_1._)('Axis line visibility'),
|
|
777
|
-
option: 'yAxisLineVisibility',
|
|
778
|
-
editor: 'editor.checkbox'
|
|
779
|
-
}], [{
|
|
780
|
-
label: (0, i18n_1._)('Major gridlines'),
|
|
781
|
-
option: 'showYMajorGridLines',
|
|
782
|
-
editor: 'editor.checkbox'
|
|
783
|
-
}], [{
|
|
784
|
-
label: (0, i18n_1._)('Major tick visibility'),
|
|
785
|
-
option: 'yAxisMajorTickVisibility',
|
|
786
|
-
editor: 'editor.radioBar',
|
|
787
|
-
editorProps: {
|
|
788
|
-
values: [{
|
|
789
|
-
label: (0, i18n_1._)('Auto'),
|
|
790
|
-
value: 'auto'
|
|
791
|
-
}, {
|
|
792
|
-
label: (0, i18n_1._)('Show'),
|
|
793
|
-
value: 'show'
|
|
794
|
-
}, {
|
|
795
|
-
label: (0, i18n_1._)('Hide'),
|
|
796
|
-
value: 'hide'
|
|
797
|
-
}]
|
|
798
|
-
}
|
|
799
|
-
}], [{
|
|
800
|
-
label: (0, i18n_1._)('Major tick size (px)'),
|
|
801
|
-
option: 'yAxisMajorTickSize',
|
|
802
|
-
editor: 'editor.slider',
|
|
803
|
-
editorProps: {
|
|
804
|
-
min: 0,
|
|
805
|
-
max: 10,
|
|
806
|
-
step: 1
|
|
807
|
-
},
|
|
808
|
-
showEditor: function showEditor(_ref3) {
|
|
809
|
-
var options = _ref3.options;
|
|
810
|
-
return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
|
|
811
|
-
}
|
|
812
|
-
}], [{
|
|
813
|
-
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
814
|
-
option: 'yAxisMajorTickInterval',
|
|
815
|
-
editor: 'editor.number',
|
|
816
|
-
showEditor: function showEditor(_ref4) {
|
|
817
|
-
var options = _ref4.options;
|
|
818
|
-
return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
|
|
819
|
-
}
|
|
820
|
-
}], [{
|
|
821
|
-
label: (0, i18n_1._)('Minor gridlines'),
|
|
822
|
-
option: 'showYMinorGridLines',
|
|
823
|
-
editor: 'editor.checkbox'
|
|
824
|
-
}], [{
|
|
825
|
-
label: (0, i18n_1._)('Minor tick visibility'),
|
|
826
|
-
option: 'yAxisMinorTickVisibility',
|
|
827
|
-
editor: 'editor.radioBar',
|
|
828
|
-
editorProps: {
|
|
829
|
-
values: [{
|
|
830
|
-
label: (0, i18n_1._)('Auto'),
|
|
831
|
-
value: 'auto'
|
|
832
|
-
}, {
|
|
833
|
-
label: (0, i18n_1._)('Show'),
|
|
834
|
-
value: 'show'
|
|
835
|
-
}, {
|
|
836
|
-
label: (0, i18n_1._)('Hide'),
|
|
837
|
-
value: 'hide'
|
|
838
|
-
}]
|
|
839
|
-
}
|
|
840
|
-
}], [{
|
|
841
|
-
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
842
|
-
option: 'yAxisMinorTickSize',
|
|
843
|
-
editor: 'editor.slider',
|
|
844
|
-
editorProps: {
|
|
845
|
-
min: 0,
|
|
846
|
-
max: 10,
|
|
847
|
-
step: 1
|
|
848
|
-
},
|
|
849
|
-
showEditor: function showEditor(_ref5) {
|
|
850
|
-
var options = _ref5.options;
|
|
851
|
-
return options.yAxisMinorTickVisibility === 'show' || options.yAxisMinorTickVisibility === 'auto' || options.yAxisMinorTickVisibility === undefined;
|
|
852
|
-
}
|
|
853
|
-
}]]
|
|
628
|
+
// src/common/editorConfig/AxesChartLegend.ts
|
|
629
|
+
var AxesChartLegend = {
|
|
630
|
+
label: (0, i18n_exports._)("Legend"),
|
|
631
|
+
layout: [
|
|
632
|
+
[
|
|
633
|
+
{
|
|
634
|
+
label: (0, i18n_exports._)("Legend display"),
|
|
635
|
+
option: "legendDisplay",
|
|
636
|
+
editor: "editor.select",
|
|
637
|
+
editorProps: {
|
|
638
|
+
values: [
|
|
639
|
+
{ label: (0, i18n_exports._)("Right"), value: "right" },
|
|
640
|
+
{ label: (0, i18n_exports._)("Left"), value: "left" },
|
|
641
|
+
{ label: (0, i18n_exports._)("Top"), value: "top" },
|
|
642
|
+
{ label: (0, i18n_exports._)("Bottom"), value: "bottom" },
|
|
643
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
644
|
+
]
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
],
|
|
648
|
+
[
|
|
649
|
+
{
|
|
650
|
+
label: (0, i18n_exports._)("Legend truncation"),
|
|
651
|
+
option: "legendTruncation",
|
|
652
|
+
editor: "editor.radioBar",
|
|
653
|
+
editorProps: {
|
|
654
|
+
values: [
|
|
655
|
+
{ label: (0, i18n_exports._)("A..."), value: "ellipsisEnd" },
|
|
656
|
+
{ label: (0, i18n_exports._)("A...Z"), value: "ellipsisMiddle" },
|
|
657
|
+
{ label: (0, i18n_exports._)("...Z"), value: "ellipsisStart" },
|
|
658
|
+
{ label: (0, i18n_exports._)("Off"), value: "ellipsisOff" }
|
|
659
|
+
]
|
|
660
|
+
},
|
|
661
|
+
showEditor: ({ options }) => options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || options.legendDisplay === void 0
|
|
662
|
+
}
|
|
663
|
+
]
|
|
664
|
+
]
|
|
854
665
|
};
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
/***/ }),
|
|
858
|
-
|
|
859
|
-
/***/ 2:
|
|
860
|
-
/***/ (function(module, exports) {
|
|
861
|
-
|
|
862
|
-
module.exports = require("@splunk/visualization-schemas");
|
|
863
|
-
|
|
864
|
-
/***/ }),
|
|
865
|
-
|
|
866
|
-
/***/ 3:
|
|
867
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
868
|
-
|
|
869
|
-
"use strict";
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
var _toConsumableArray = __webpack_require__(1);
|
|
873
|
-
|
|
874
|
-
Object.defineProperty(exports, "__esModule", {
|
|
875
|
-
value: true
|
|
876
|
-
});
|
|
877
|
-
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
878
|
-
|
|
879
|
-
var lodash_1 = __webpack_require__(5); // included for backwards compatibility
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
var visualization_schemas_1 = __webpack_require__(2);
|
|
883
|
-
|
|
884
|
-
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
885
|
-
enumerable: true,
|
|
886
|
-
get: function get() {
|
|
887
|
-
return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
|
|
888
|
-
}
|
|
889
|
-
});
|
|
890
|
-
/**
|
|
891
|
-
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
892
|
-
* this function also collapse all editor panels
|
|
893
|
-
* @param vizConfig a Visualization Config
|
|
894
|
-
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
895
|
-
* and containing `open: false` for all editor panels in editorConfig
|
|
896
|
-
*/
|
|
897
|
-
|
|
898
|
-
function enhanceConfig(vizConfig) {
|
|
899
|
-
var enhancedConfig = Object.assign({}, vizConfig);
|
|
900
|
-
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
901
|
-
return Object.assign(Object.assign({}, config), {
|
|
902
|
-
open: config.open || false
|
|
903
|
-
});
|
|
904
|
-
});
|
|
905
|
-
return enhancedConfig;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
exports.enhanceConfig = enhanceConfig;
|
|
909
|
-
/**
|
|
910
|
-
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
911
|
-
* Created for editor unit tests
|
|
912
|
-
* @param vizConfig a Visualization Config
|
|
913
|
-
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
914
|
-
*/
|
|
915
|
-
|
|
916
|
-
function uncollapseEditorConfig(vizConfig) {
|
|
917
|
-
var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
|
|
918
|
-
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
919
|
-
return Object.assign(Object.assign({}, config), {
|
|
920
|
-
open: true
|
|
921
|
-
});
|
|
922
|
-
});
|
|
923
|
-
return editorPanelUncollapsedConfig;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
927
|
-
|
|
928
|
-
function isDynamicOption(option) {
|
|
929
|
-
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
|
|
933
|
-
// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
|
|
666
|
+
var AxesChartLegend_default = AxesChartLegend;
|
|
934
667
|
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
668
|
+
// src/common/editorConfig/AxesChartYGridAndLabels.ts
|
|
669
|
+
var AxesChartYGridAndLabels = {
|
|
670
|
+
label: (0, i18n_exports._)("Y-axis grid and labels"),
|
|
671
|
+
layout: [
|
|
672
|
+
[
|
|
673
|
+
{
|
|
674
|
+
label: (0, i18n_exports._)("Axis title"),
|
|
675
|
+
option: "yAxisTitleVisibility",
|
|
676
|
+
editor: "editor.toggle"
|
|
677
|
+
}
|
|
678
|
+
],
|
|
679
|
+
[
|
|
680
|
+
{
|
|
681
|
+
label: (0, i18n_exports._)("Axis title text"),
|
|
682
|
+
option: "yAxisTitleText",
|
|
683
|
+
editor: "editor.text",
|
|
684
|
+
showEditor: ({ options }) => options.yAxisTitleVisibility === "show" || options.yAxisTitleVisibility === void 0
|
|
685
|
+
}
|
|
686
|
+
],
|
|
687
|
+
[
|
|
688
|
+
{
|
|
689
|
+
label: (0, i18n_exports._)("Scale"),
|
|
690
|
+
option: "yAxisScale",
|
|
691
|
+
editor: "editor.radioBar",
|
|
692
|
+
editorProps: {
|
|
693
|
+
values: [
|
|
694
|
+
{ label: (0, i18n_exports._)("Linear"), value: "linear" },
|
|
695
|
+
{ label: (0, i18n_exports._)("Log"), value: "log" }
|
|
696
|
+
]
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
[
|
|
701
|
+
{
|
|
702
|
+
label: (0, i18n_exports._)("Label visibility"),
|
|
703
|
+
option: "yAxisLabelVisibility",
|
|
704
|
+
editor: "editor.radioBar",
|
|
705
|
+
editorProps: {
|
|
706
|
+
values: [
|
|
707
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
708
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
709
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
710
|
+
]
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
],
|
|
714
|
+
[
|
|
715
|
+
{
|
|
716
|
+
label: (0, i18n_exports._)("SI prefix abbreviation for labels"),
|
|
717
|
+
option: "yAxisAbbreviation",
|
|
718
|
+
editor: "editor.checkbox",
|
|
719
|
+
showEditor: ({ options }) => options.yAxisLabelVisibility === "show" || options.yAxisLabelVisibility === "auto" || options.yAxisLabelVisibility === void 0
|
|
720
|
+
}
|
|
721
|
+
],
|
|
722
|
+
[
|
|
723
|
+
{
|
|
724
|
+
label: (0, i18n_exports._)("Include zero"),
|
|
725
|
+
option: "showYAxisWithZero",
|
|
726
|
+
editor: "editor.checkbox"
|
|
727
|
+
}
|
|
728
|
+
],
|
|
729
|
+
[
|
|
730
|
+
{
|
|
731
|
+
label: (0, i18n_exports._)("Extend to whole grid"),
|
|
732
|
+
option: "showYAxisExtendedRange",
|
|
733
|
+
editor: "editor.checkbox"
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
[
|
|
737
|
+
{
|
|
738
|
+
label: (0, i18n_exports._)("Minimum axis value"),
|
|
739
|
+
option: "yAxisMin",
|
|
740
|
+
editor: "editor.number"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
label: (0, i18n_exports._)("Maximum axis value"),
|
|
744
|
+
option: "yAxisMax",
|
|
745
|
+
editor: "editor.number"
|
|
746
|
+
}
|
|
747
|
+
],
|
|
748
|
+
[
|
|
749
|
+
{
|
|
750
|
+
label: (0, i18n_exports._)("Axis line visibility"),
|
|
751
|
+
option: "yAxisLineVisibility",
|
|
752
|
+
editor: "editor.checkbox"
|
|
753
|
+
}
|
|
754
|
+
],
|
|
755
|
+
[
|
|
756
|
+
{
|
|
757
|
+
label: (0, i18n_exports._)("Major gridlines"),
|
|
758
|
+
option: "showYMajorGridLines",
|
|
759
|
+
editor: "editor.checkbox"
|
|
760
|
+
}
|
|
761
|
+
],
|
|
762
|
+
[
|
|
763
|
+
{
|
|
764
|
+
label: (0, i18n_exports._)("Major tick visibility"),
|
|
765
|
+
option: "yAxisMajorTickVisibility",
|
|
766
|
+
editor: "editor.radioBar",
|
|
767
|
+
editorProps: {
|
|
768
|
+
values: [
|
|
769
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
770
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
771
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
772
|
+
]
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
],
|
|
776
|
+
[
|
|
777
|
+
{
|
|
778
|
+
label: (0, i18n_exports._)("Major tick size (px)"),
|
|
779
|
+
option: "yAxisMajorTickSize",
|
|
780
|
+
editor: "editor.slider",
|
|
781
|
+
editorProps: {
|
|
782
|
+
min: 0,
|
|
783
|
+
max: 10,
|
|
784
|
+
step: 1
|
|
785
|
+
},
|
|
786
|
+
showEditor: ({ options }) => options.yAxisMajorTickVisibility === "show" || options.yAxisMajorTickVisibility === "auto" || options.yAxisMajorTickVisibility === void 0
|
|
787
|
+
}
|
|
788
|
+
],
|
|
789
|
+
[
|
|
790
|
+
{
|
|
791
|
+
label: (0, i18n_exports._)("Major tick interval spacing"),
|
|
792
|
+
option: "yAxisMajorTickInterval",
|
|
793
|
+
editor: "editor.number",
|
|
794
|
+
showEditor: ({ options }) => options.yAxisMajorTickVisibility === "show" || options.yAxisMajorTickVisibility === "auto" || options.yAxisMajorTickVisibility === void 0
|
|
795
|
+
}
|
|
796
|
+
],
|
|
797
|
+
[
|
|
798
|
+
{
|
|
799
|
+
label: (0, i18n_exports._)("Minor gridlines"),
|
|
800
|
+
option: "showYMinorGridLines",
|
|
801
|
+
editor: "editor.checkbox"
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
[
|
|
805
|
+
{
|
|
806
|
+
label: (0, i18n_exports._)("Minor tick visibility"),
|
|
807
|
+
option: "yAxisMinorTickVisibility",
|
|
808
|
+
editor: "editor.radioBar",
|
|
809
|
+
editorProps: {
|
|
810
|
+
values: [
|
|
811
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
812
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
813
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
814
|
+
]
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
],
|
|
818
|
+
[
|
|
819
|
+
{
|
|
820
|
+
label: (0, i18n_exports._)("Minor tick size (px)"),
|
|
821
|
+
option: "yAxisMinorTickSize",
|
|
822
|
+
editor: "editor.slider",
|
|
823
|
+
editorProps: {
|
|
824
|
+
min: 0,
|
|
825
|
+
max: 10,
|
|
826
|
+
step: 1
|
|
827
|
+
},
|
|
828
|
+
showEditor: ({ options }) => options.yAxisMinorTickVisibility === "show" || options.yAxisMinorTickVisibility === "auto" || options.yAxisMinorTickVisibility === void 0
|
|
829
|
+
}
|
|
830
|
+
]
|
|
831
|
+
]
|
|
1017
832
|
};
|
|
833
|
+
var AxesChartYGridAndLabels_default = AxesChartYGridAndLabels;
|
|
1018
834
|
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
/***/ }),
|
|
1022
|
-
|
|
1023
|
-
/***/ 5:
|
|
1024
|
-
/***/ (function(module, exports) {
|
|
1025
|
-
|
|
1026
|
-
module.exports = require("lodash");
|
|
1027
|
-
|
|
1028
|
-
/***/ }),
|
|
1029
|
-
|
|
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
|
-
*/
|
|
1062
|
-
|
|
1063
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
1064
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
1065
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
1066
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
1067
|
-
|
|
1068
|
-
/***/ }),
|
|
1069
|
-
|
|
1070
|
-
/***/ 65:
|
|
1071
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1072
|
-
|
|
1073
|
-
"use strict";
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
var _toConsumableArray = __webpack_require__(1);
|
|
1077
|
-
|
|
1078
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1079
|
-
value: true
|
|
1080
|
-
});
|
|
1081
|
-
|
|
1082
|
-
var visualization_icons_1 = __webpack_require__(11);
|
|
1083
|
-
|
|
1084
|
-
var placeholders_1 = __webpack_require__(10);
|
|
1085
|
-
|
|
1086
|
-
var pick_1 = __webpack_require__(8);
|
|
1087
|
-
|
|
1088
|
-
var variables_1 = __webpack_require__(9);
|
|
1089
|
-
|
|
1090
|
-
var visualization_schemas_1 = __webpack_require__(2);
|
|
1091
|
-
|
|
1092
|
-
var i18n_1 = __webpack_require__(0);
|
|
1093
|
-
|
|
1094
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
1095
|
-
|
|
1096
|
-
var VizCategory_1 = __webpack_require__(7);
|
|
1097
|
-
|
|
1098
|
-
var configUtils_1 = __webpack_require__(3);
|
|
1099
|
-
|
|
1100
|
-
var AxesChartDataConfig_1 = __webpack_require__(14);
|
|
1101
|
-
|
|
1102
|
-
var AxesChartXGridAndLabels_1 = __webpack_require__(17);
|
|
1103
|
-
|
|
1104
|
-
var AxesChartColorAndStyle_1 = __webpack_require__(15);
|
|
1105
|
-
|
|
1106
|
-
var AxesChartLegend_1 = __webpack_require__(16);
|
|
1107
|
-
|
|
1108
|
-
var AxesChartYGridAndLabels_1 = __webpack_require__(18);
|
|
1109
|
-
|
|
835
|
+
// src/Scatter/config.ts
|
|
1110
836
|
var dataContract = {
|
|
1111
|
-
requiredDataSources: [
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
837
|
+
requiredDataSources: [
|
|
838
|
+
{
|
|
839
|
+
name: "primary",
|
|
840
|
+
description: "DataSource that powers the visualization"
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
optionalDataSources: [
|
|
844
|
+
// Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
|
|
1116
845
|
// {
|
|
1117
846
|
// name: 'annotation',
|
|
1118
847
|
// description: 'DataSource that populates event annotations',
|
|
1119
848
|
// },
|
|
1120
849
|
],
|
|
1121
850
|
initialRequestParams: {
|
|
1122
|
-
primary: {
|
|
1123
|
-
|
|
1124
|
-
count: 10000
|
|
1125
|
-
},
|
|
1126
|
-
annotation: {
|
|
1127
|
-
offset: 0,
|
|
1128
|
-
count: 10000
|
|
1129
|
-
}
|
|
851
|
+
primary: { offset: 0, count: 1e4 },
|
|
852
|
+
annotation: { offset: 0, count: 1e4 }
|
|
1130
853
|
}
|
|
1131
854
|
};
|
|
1132
855
|
var size = {
|
|
@@ -1134,120 +857,79 @@ var size = {
|
|
|
1134
857
|
initialHeight: 300
|
|
1135
858
|
};
|
|
1136
859
|
var defaultContext = {};
|
|
1137
|
-
var
|
|
1138
|
-
defaultBackgroundColor:
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
})(props);
|
|
1146
|
-
}
|
|
860
|
+
var themes2 = {
|
|
861
|
+
defaultBackgroundColor: (props) => pick_default({
|
|
862
|
+
enterprise: {
|
|
863
|
+
dark: variables_default.black(props),
|
|
864
|
+
light: variables_default.backgroundColor(props)
|
|
865
|
+
},
|
|
866
|
+
prisma: variables_default.backgroundColorSidebar(props)
|
|
867
|
+
})(props)
|
|
1147
868
|
};
|
|
1148
|
-
var editorConfig = [
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
label:
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
869
|
+
var editorConfig = [
|
|
870
|
+
AxesChartDataConfigScatter,
|
|
871
|
+
{
|
|
872
|
+
label: AxesChartColorAndStyle_default.label,
|
|
873
|
+
layout: [
|
|
874
|
+
...AxesChartColorAndStyle_default.layout.slice(0, 2),
|
|
875
|
+
[
|
|
876
|
+
{
|
|
877
|
+
label: (0, i18n_exports._)("Series colors by category name"),
|
|
878
|
+
option: "seriesColorsByField",
|
|
879
|
+
editor: "editor.seriesColorsByField",
|
|
880
|
+
editorProps: {
|
|
881
|
+
isCategorical: true
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
],
|
|
885
|
+
[
|
|
886
|
+
{
|
|
887
|
+
label: (0, i18n_exports._)("Marker size"),
|
|
888
|
+
option: "markerSize",
|
|
889
|
+
editor: "editor.slider",
|
|
890
|
+
editorProps: {
|
|
891
|
+
min: 0,
|
|
892
|
+
max: 20,
|
|
893
|
+
step: 1
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
]
|
|
897
|
+
]
|
|
898
|
+
},
|
|
899
|
+
AxesChartLegend_default,
|
|
900
|
+
AxesChartXGridAndLabelsBubbleScatter,
|
|
901
|
+
AxesChartYGridAndLabels_default
|
|
902
|
+
];
|
|
1172
903
|
var config = {
|
|
1173
904
|
/**
|
|
1174
905
|
* unique viz key
|
|
1175
906
|
*/
|
|
1176
|
-
key:
|
|
1177
|
-
|
|
907
|
+
key: "splunk.scatter",
|
|
1178
908
|
/**
|
|
1179
909
|
* viz name
|
|
1180
910
|
*/
|
|
1181
|
-
name: (0,
|
|
1182
|
-
category:
|
|
1183
|
-
|
|
911
|
+
name: (0, i18n_exports._)("Scatter"),
|
|
912
|
+
category: "Correlation" /* CORRELATION */,
|
|
1184
913
|
/**
|
|
1185
914
|
* viz icon
|
|
1186
915
|
*/
|
|
1187
|
-
icon:
|
|
1188
|
-
placeholderIcon:
|
|
1189
|
-
dataContract
|
|
1190
|
-
size
|
|
1191
|
-
defaultContext
|
|
1192
|
-
optionsSchema:
|
|
1193
|
-
editorConfig
|
|
916
|
+
icon: visualization_icons_exports.Scatter,
|
|
917
|
+
placeholderIcon: placeholders_exports.Scatter,
|
|
918
|
+
dataContract,
|
|
919
|
+
size,
|
|
920
|
+
defaultContext,
|
|
921
|
+
optionsSchema: visualization_schemas_exports.scatterOptionsSchema,
|
|
922
|
+
editorConfig,
|
|
1194
923
|
events: {
|
|
1195
|
-
|
|
1196
|
-
description:
|
|
924
|
+
"legend.click": {
|
|
925
|
+
description: "triggered when user clicks on chart legend"
|
|
1197
926
|
},
|
|
1198
|
-
|
|
1199
|
-
description:
|
|
927
|
+
"point.click": {
|
|
928
|
+
description: "triggered when user clicks on a point in the scatter chart"
|
|
1200
929
|
}
|
|
1201
930
|
},
|
|
1202
|
-
supports: [
|
|
1203
|
-
themes:
|
|
931
|
+
supports: ["dynamic-options" /* DYNAMIC_OPTIONS */, "placeholder" /* PLACEHOLDER */],
|
|
932
|
+
themes: themes2
|
|
1204
933
|
};
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
/***/ }),
|
|
1208
|
-
|
|
1209
|
-
/***/ 7:
|
|
1210
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1211
|
-
|
|
1212
|
-
"use strict";
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1216
|
-
value: true
|
|
1217
|
-
});
|
|
1218
|
-
exports.VizCategory = void 0;
|
|
1219
|
-
var VizCategory;
|
|
1220
|
-
|
|
1221
|
-
(function (VizCategory) {
|
|
1222
|
-
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
1223
|
-
VizCategory["TRENDS"] = "Trends";
|
|
1224
|
-
VizCategory["COMPARISONS"] = "Comparisons";
|
|
1225
|
-
VizCategory["TABLE"] = "Table";
|
|
1226
|
-
VizCategory["GAUGE"] = "Gauge";
|
|
1227
|
-
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
1228
|
-
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
1229
|
-
VizCategory["SHAPES"] = "Shapes";
|
|
1230
|
-
VizCategory["MISC"] = "misc";
|
|
1231
|
-
VizCategory["FLOW"] = "Flow";
|
|
1232
|
-
VizCategory["CORRELATION"] = "Correlation";
|
|
1233
|
-
VizCategory["SPATIAL"] = "Spatial";
|
|
1234
|
-
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
1235
|
-
|
|
1236
|
-
/***/ }),
|
|
1237
|
-
|
|
1238
|
-
/***/ 8:
|
|
1239
|
-
/***/ (function(module, exports) {
|
|
1240
|
-
|
|
1241
|
-
module.exports = require("@splunk/themes/pick");
|
|
1242
|
-
|
|
1243
|
-
/***/ }),
|
|
1244
|
-
|
|
1245
|
-
/***/ 9:
|
|
1246
|
-
/***/ (function(module, exports) {
|
|
1247
|
-
|
|
1248
|
-
module.exports = require("@splunk/themes/variables");
|
|
1249
|
-
|
|
1250
|
-
/***/ })
|
|
1251
|
-
|
|
1252
|
-
/******/ });
|
|
1253
|
-
//# sourceMappingURL=Scatter.config.js.map
|
|
934
|
+
var config_default = enhanceConfig(config);
|
|
935
|
+
//# sourceMappingURL=Scatter.config.js.map
|