@splunk/visualizations 26.4.1 → 27.1.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 +1399 -1590
- package/Area.config.js.map +7 -1
- package/Area.js +3750 -4822
- package/Area.js.map +7 -1
- package/Bar.config.js +1423 -1566
- package/Bar.config.js.map +7 -1
- package/Bar.js +3856 -4884
- package/Bar.js.map +7 -1
- package/Bubble.config.js +1009 -1200
- package/Bubble.config.js.map +7 -1
- package/Bubble.js +2768 -4491
- package/Bubble.js.map +7 -1
- package/ChoroplethSvg.config.js +282 -582
- package/ChoroplethSvg.config.js.map +7 -1
- package/ChoroplethSvg.js +2032 -3808
- package/ChoroplethSvg.js.map +7 -1
- package/Column.config.js +1390 -1534
- package/Column.config.js.map +7 -1
- package/Column.js +3849 -4906
- package/Column.js.map +7 -1
- package/Ellipse.config.js +443 -774
- package/Ellipse.config.js.map +7 -1
- package/Ellipse.js +1667 -3327
- package/Ellipse.js.map +7 -1
- package/Events.config.js +207 -492
- package/Events.config.js.map +7 -1
- package/Events.js +2643 -4647
- package/Events.js.map +7 -1
- package/FillerGauge.config.js +420 -775
- package/FillerGauge.config.js.map +7 -1
- package/FillerGauge.js +2164 -4575
- package/FillerGauge.js.map +7 -1
- package/Image.config.js +144 -411
- package/Image.config.js.map +7 -1
- package/Image.js +1423 -3046
- package/Image.js.map +7 -1
- package/Line.config.js +1421 -1616
- package/Line.config.js.map +7 -1
- package/Line.js +3790 -4901
- package/Line.js.map +7 -1
- package/LinkGraph.config.js +390 -632
- package/LinkGraph.config.js.map +7 -1
- package/LinkGraph.js +5272 -6185
- package/LinkGraph.js.map +7 -1
- package/MIGRATION.md +6 -0
- package/Map.config.js +501 -801
- package/Map.config.js.map +7 -1
- package/Map.js +3382 -5659
- package/Map.js.map +7 -1
- package/Markdown.config.js +232 -528
- package/Markdown.config.js.map +7 -1
- package/Markdown.js +1671 -3212
- package/Markdown.js.map +7 -1
- package/MarkerGauge.config.js +308 -613
- package/MarkerGauge.config.js.map +7 -1
- package/MarkerGauge.js +2215 -4531
- package/MarkerGauge.js.map +7 -1
- package/ParallelCoordinates.config.js +282 -581
- package/ParallelCoordinates.config.js.map +7 -1
- package/ParallelCoordinates.js +2057 -4718
- package/ParallelCoordinates.js.map +7 -1
- package/Pie.config.js +278 -547
- package/Pie.config.js.map +7 -1
- package/Pie.js +2107 -3984
- package/Pie.js.map +7 -1
- package/Punchcard.config.js +291 -578
- package/Punchcard.config.js.map +7 -1
- package/Punchcard.js +2734 -5037
- package/Punchcard.js.map +7 -1
- package/Rectangle.config.js +455 -770
- package/Rectangle.config.js.map +7 -1
- package/Rectangle.js +1664 -3258
- package/Rectangle.js.map +7 -1
- package/Sankey.config.js +291 -626
- package/Sankey.config.js.map +7 -1
- package/Sankey.js +2766 -4908
- package/Sankey.js.map +7 -1
- package/Scatter.config.js +988 -1180
- package/Scatter.config.js.map +7 -1
- package/Scatter.js +2801 -4506
- package/Scatter.js.map +7 -1
- package/SingleValue.config.js +794 -1250
- package/SingleValue.config.js.map +7 -1
- package/SingleValue.js +4185 -7327
- package/SingleValue.js.map +7 -1
- package/SingleValueBasic.js +382 -1527
- package/SingleValueBasic.js.map +7 -1
- package/SingleValueIcon.config.js +757 -1207
- package/SingleValueIcon.config.js.map +7 -1
- package/SingleValueIcon.js +3427 -6293
- package/SingleValueIcon.js.map +7 -1
- package/SingleValueRadial.config.js +686 -1121
- package/SingleValueRadial.config.js.map +7 -1
- package/SingleValueRadial.js +3923 -6994
- package/SingleValueRadial.js.map +7 -1
- package/SparkLine.js +439 -746
- package/SparkLine.js.map +7 -1
- package/TRELLIS.md +16 -15
- package/Table.config.js +565 -879
- package/Table.config.js.map +7 -1
- package/Table.js +3260 -5334
- package/Table.js.map +7 -1
- package/common/Charting.js +617 -1498
- 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 +351 -911
- 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 +466 -1013
- 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 +277 -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 +1191 -2431
- package/common/withDashboardViz.js.map +7 -1
- package/package.json +53 -45
package/Line.config.js
CHANGED
|
@@ -1,1504 +1,1348 @@
|
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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 = 52);
|
|
91
|
-
/******/ })
|
|
92
|
-
/************************************************************************/
|
|
93
|
-
/******/ ([
|
|
94
|
-
/* 0 */
|
|
95
|
-
/***/ (function(module, exports) {
|
|
96
|
-
|
|
97
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
98
|
-
|
|
99
|
-
/***/ }),
|
|
100
|
-
/* 1 */
|
|
101
|
-
/***/ (function(module, exports) {
|
|
102
|
-
|
|
103
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
104
|
-
|
|
105
|
-
/***/ }),
|
|
106
|
-
/* 2 */
|
|
107
|
-
/***/ (function(module, exports) {
|
|
108
|
-
|
|
109
|
-
module.exports = require("@splunk/visualization-schemas");
|
|
110
|
-
|
|
111
|
-
/***/ }),
|
|
112
|
-
/* 3 */
|
|
113
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
114
|
-
|
|
115
|
-
"use strict";
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
var _toConsumableArray = __webpack_require__(1);
|
|
119
|
-
|
|
120
|
-
Object.defineProperty(exports, "__esModule", {
|
|
121
|
-
value: true
|
|
122
|
-
});
|
|
123
|
-
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
124
|
-
|
|
125
|
-
var lodash_1 = __webpack_require__(5); // included for backwards compatibility
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
var visualization_schemas_1 = __webpack_require__(2);
|
|
129
|
-
|
|
130
|
-
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
131
|
-
enumerable: true,
|
|
132
|
-
get: function get() {
|
|
133
|
-
return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
/**
|
|
137
|
-
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
138
|
-
* this function also collapse all editor panels
|
|
139
|
-
* @param vizConfig a Visualization Config
|
|
140
|
-
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
141
|
-
* and containing `open: false` for all editor panels in editorConfig
|
|
142
|
-
*/
|
|
143
|
-
|
|
144
|
-
function enhanceConfig(vizConfig) {
|
|
145
|
-
var enhancedConfig = Object.assign({}, vizConfig);
|
|
146
|
-
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
147
|
-
return Object.assign(Object.assign({}, config), {
|
|
148
|
-
open: config.open || false
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
return enhancedConfig;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
exports.enhanceConfig = enhanceConfig;
|
|
155
|
-
/**
|
|
156
|
-
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
157
|
-
* Created for editor unit tests
|
|
158
|
-
* @param vizConfig a Visualization Config
|
|
159
|
-
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
function uncollapseEditorConfig(vizConfig) {
|
|
163
|
-
var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
|
|
164
|
-
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
165
|
-
return Object.assign(Object.assign({}, config), {
|
|
166
|
-
open: true
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
return editorPanelUncollapsedConfig;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
173
|
-
|
|
174
|
-
function isDynamicOption(option) {
|
|
175
|
-
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
|
|
179
|
-
// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
|
|
183
|
-
* if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset
|
|
184
|
-
* the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
|
|
185
|
-
* the internal config contents are irrelevant (as the user could customize them in source), just as long as the presence of `undefined`s match up
|
|
186
|
-
*
|
|
187
|
-
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
function hasCompatibleContexts(vizContext, presetContext) {
|
|
191
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
192
|
-
return presetContextKeys.every(function (contextKey) {
|
|
193
|
-
return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
202
|
-
var presetOptionKeys = Object.keys(presetOptions);
|
|
203
|
-
return presetOptionKeys.every(function (optionKey) {
|
|
204
|
-
return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
|
|
209
|
-
* This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
|
|
210
|
-
*
|
|
211
|
-
* @param {Object} vizContext - the current vizContext definition
|
|
212
|
-
* @param {Object} vizOptions - the current vizOptions definition
|
|
213
|
-
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
214
|
-
*/
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
218
|
-
return presets.find(function (preset) {
|
|
219
|
-
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
220
|
-
var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
|
|
221
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
222
|
-
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
223
|
-
// if not, then the preset is invalid in config.ts
|
|
224
|
-
|
|
225
|
-
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
226
|
-
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
exports.getInitialPreset = getInitialPreset;
|
|
231
|
-
/**
|
|
232
|
-
* generates number precision values for a Select editor
|
|
233
|
-
*
|
|
234
|
-
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
235
|
-
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
236
|
-
*/
|
|
237
|
-
|
|
238
|
-
function generatePrecisionValues(numPrecisionValues) {
|
|
239
|
-
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
240
|
-
return {
|
|
241
|
-
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
242
|
-
value: i
|
|
243
|
-
};
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
exports.generatePrecisionValues = generatePrecisionValues;
|
|
248
|
-
/**
|
|
249
|
-
* insert layout in layout array, return a new layout array instead of updating the original
|
|
250
|
-
*
|
|
251
|
-
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
252
|
-
* @param {Number} index - the index to insert layout item(s)
|
|
253
|
-
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
254
|
-
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
255
|
-
*/
|
|
256
|
-
|
|
257
|
-
var insertLayout = function insertLayout(layout, index) {
|
|
258
|
-
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
259
|
-
layoutItems[_key - 2] = arguments[_key];
|
|
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;
|
|
25
|
+
};
|
|
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 });
|
|
260
36
|
}
|
|
261
|
-
|
|
262
|
-
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
37
|
+
return to;
|
|
263
38
|
};
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
Object.defineProperty(exports, "__esModule", {
|
|
282
|
-
value: true
|
|
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/Line/config.ts
|
|
51
|
+
var config_exports = {};
|
|
52
|
+
__export(config_exports, {
|
|
53
|
+
default: () => config_default
|
|
283
54
|
});
|
|
284
|
-
exports
|
|
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
|
-
*/
|
|
307
|
-
|
|
308
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
309
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
310
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
311
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
312
|
-
|
|
313
|
-
/***/ }),
|
|
314
|
-
/* 7 */
|
|
315
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
55
|
+
module.exports = __toCommonJS(config_exports);
|
|
316
56
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
value: true
|
|
57
|
+
// esm-externals:@splunk/visualization-schemas
|
|
58
|
+
var visualization_schemas_exports = {};
|
|
59
|
+
__export(visualization_schemas_exports, {
|
|
60
|
+
default: () => visualization_schemas_default
|
|
322
61
|
});
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
VizCategory["GAUGE"] = "Gauge";
|
|
332
|
-
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
333
|
-
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
334
|
-
VizCategory["SHAPES"] = "Shapes";
|
|
335
|
-
VizCategory["MISC"] = "misc";
|
|
336
|
-
VizCategory["FLOW"] = "Flow";
|
|
337
|
-
VizCategory["CORRELATION"] = "Correlation";
|
|
338
|
-
VizCategory["SPATIAL"] = "Spatial";
|
|
339
|
-
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
340
|
-
|
|
341
|
-
/***/ }),
|
|
342
|
-
/* 8 */
|
|
343
|
-
/***/ (function(module, exports) {
|
|
344
|
-
|
|
345
|
-
module.exports = require("@splunk/themes/pick");
|
|
346
|
-
|
|
347
|
-
/***/ }),
|
|
348
|
-
/* 9 */
|
|
349
|
-
/***/ (function(module, exports) {
|
|
350
|
-
|
|
351
|
-
module.exports = require("@splunk/themes/variables");
|
|
352
|
-
|
|
353
|
-
/***/ }),
|
|
354
|
-
/* 10 */
|
|
355
|
-
/***/ (function(module, exports) {
|
|
356
|
-
|
|
357
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
358
|
-
|
|
359
|
-
/***/ }),
|
|
360
|
-
/* 11 */
|
|
361
|
-
/***/ (function(module, exports) {
|
|
362
|
-
|
|
363
|
-
module.exports = require("@splunk/visualization-icons");
|
|
364
|
-
|
|
365
|
-
/***/ }),
|
|
366
|
-
/* 12 */
|
|
367
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
368
|
-
|
|
369
|
-
"use strict";
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
Object.defineProperty(exports, "__esModule", {
|
|
373
|
-
value: true
|
|
62
|
+
var defaultImport = __toESM(require("@splunk/visualization-schemas"));
|
|
63
|
+
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
64
|
+
var visualization_schemas_default = "default" in defaultImport ? defaultImport.default : defaultImport;
|
|
65
|
+
|
|
66
|
+
// esm-externals:@splunk/visualization-icons
|
|
67
|
+
var visualization_icons_exports = {};
|
|
68
|
+
__export(visualization_icons_exports, {
|
|
69
|
+
default: () => visualization_icons_default
|
|
374
70
|
});
|
|
71
|
+
var defaultImport2 = __toESM(require("@splunk/visualization-icons"));
|
|
72
|
+
__reExport(visualization_icons_exports, require("@splunk/visualization-icons"));
|
|
73
|
+
var visualization_icons_default = "default" in defaultImport2 ? defaultImport2.default : defaultImport2;
|
|
74
|
+
|
|
75
|
+
// esm-externals:@splunk/visualization-icons/placeholders
|
|
76
|
+
var placeholders_exports = {};
|
|
77
|
+
__export(placeholders_exports, {
|
|
78
|
+
default: () => placeholders_default
|
|
79
|
+
});
|
|
80
|
+
var defaultImport3 = __toESM(require("@splunk/visualization-icons/placeholders"));
|
|
81
|
+
__reExport(placeholders_exports, require("@splunk/visualization-icons/placeholders"));
|
|
82
|
+
var placeholders_default = "default" in defaultImport3 ? defaultImport3.default : defaultImport3;
|
|
83
|
+
|
|
84
|
+
// esm-externals:@splunk/ui-utils/i18n
|
|
85
|
+
var i18n_exports = {};
|
|
86
|
+
__export(i18n_exports, {
|
|
87
|
+
default: () => i18n_default
|
|
88
|
+
});
|
|
89
|
+
var defaultImport4 = __toESM(require("@splunk/ui-utils/i18n"));
|
|
90
|
+
__reExport(i18n_exports, require("@splunk/ui-utils/i18n"));
|
|
91
|
+
var i18n_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
|
|
92
|
+
|
|
93
|
+
// esm-externals:@splunk/themes/pick
|
|
94
|
+
var pick_exports = {};
|
|
95
|
+
__export(pick_exports, {
|
|
96
|
+
default: () => pick_default
|
|
97
|
+
});
|
|
98
|
+
var defaultImport5 = __toESM(require("@splunk/themes/pick"));
|
|
99
|
+
__reExport(pick_exports, require("@splunk/themes/pick"));
|
|
100
|
+
var pick_default = "default" in defaultImport5 ? defaultImport5.default : defaultImport5;
|
|
101
|
+
|
|
102
|
+
// esm-externals:@splunk/themes/variables
|
|
103
|
+
var variables_exports = {};
|
|
104
|
+
__export(variables_exports, {
|
|
105
|
+
default: () => variables_default
|
|
106
|
+
});
|
|
107
|
+
var defaultImport6 = __toESM(require("@splunk/themes/variables"));
|
|
108
|
+
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
109
|
+
var variables_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;
|
|
375
128
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
return [{
|
|
383
|
-
label: (0, i18n_1._)(label || 'Background color'),
|
|
384
|
-
option: 'backgroundColor',
|
|
385
|
-
editor: 'editor.color',
|
|
386
|
-
editorProps: {
|
|
387
|
-
labelPosition: labelPosition || 'top',
|
|
388
|
-
themes: themes
|
|
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 });
|
|
389
135
|
}
|
|
390
|
-
|
|
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 isTrellisFeatureFlagOn = ({ featureFlags }) => {
|
|
150
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
151
|
+
};
|
|
152
|
+
var isTrellisEnabled = ({ options, featureFlags }) => {
|
|
153
|
+
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
154
|
+
return isTrellisFeatureFlagOn({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
391
155
|
};
|
|
392
|
-
|
|
393
|
-
exports.default = background;
|
|
394
|
-
|
|
395
|
-
/***/ }),
|
|
396
|
-
/* 13 */,
|
|
397
|
-
/* 14 */
|
|
398
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
399
|
-
|
|
400
|
-
"use strict";
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
var _toConsumableArray = __webpack_require__(1);
|
|
404
|
-
|
|
405
|
-
Object.defineProperty(exports, "__esModule", {
|
|
406
|
-
value: true
|
|
407
|
-
});
|
|
408
|
-
exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble = exports.AxesChartDataConfigScatter = exports.AxesChartDataConfigBar = void 0;
|
|
409
|
-
|
|
410
|
-
var i18n_1 = __webpack_require__(0);
|
|
411
|
-
|
|
412
|
-
var configUtils_1 = __webpack_require__(3);
|
|
413
|
-
|
|
414
156
|
var AxesChartDataConfig = {
|
|
415
|
-
label: (0,
|
|
416
|
-
layout: [
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
157
|
+
label: (0, i18n_exports._)("Data configurations"),
|
|
158
|
+
layout: [
|
|
159
|
+
[
|
|
160
|
+
{
|
|
161
|
+
label: (0, i18n_exports._)("X"),
|
|
162
|
+
option: "x",
|
|
163
|
+
editor: "editor.columnSelector",
|
|
164
|
+
editorProps: {
|
|
165
|
+
dataSourceKey: "primary",
|
|
166
|
+
supportsDSL: true,
|
|
167
|
+
expectedDataPrimitive: ["series"]
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
[
|
|
172
|
+
{
|
|
173
|
+
label: (0, i18n_exports._)("Y"),
|
|
174
|
+
option: "y",
|
|
175
|
+
editor: "editor.columnMultiSelector",
|
|
176
|
+
editorProps: {
|
|
177
|
+
dataSourceKey: "primary",
|
|
178
|
+
filterByTypes: ["number"],
|
|
179
|
+
supportsDSL: true,
|
|
180
|
+
expectedDataPrimitive: ["series", "frame"]
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
[
|
|
185
|
+
{
|
|
186
|
+
label: (0, i18n_exports._)("Result limit"),
|
|
187
|
+
option: "resultLimit",
|
|
188
|
+
editor: "editor.number",
|
|
189
|
+
editorProps: {
|
|
190
|
+
dataSourceKey: "primary"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
]
|
|
443
195
|
};
|
|
444
|
-
|
|
196
|
+
var AxesChartDataConfigBar = {
|
|
445
197
|
label: AxesChartDataConfig.label,
|
|
446
198
|
// insert Y2 after Y
|
|
447
|
-
layout:
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
199
|
+
layout: insertLayout(AxesChartDataConfig.layout, 2, [
|
|
200
|
+
{
|
|
201
|
+
label: (0, i18n_exports._)("Y2"),
|
|
202
|
+
option: "y2",
|
|
203
|
+
editor: "editor.columnMultiSelector",
|
|
204
|
+
editorProps: {
|
|
205
|
+
dataSourceKey: "primary",
|
|
206
|
+
filterByTypes: ["number"],
|
|
207
|
+
supportsDSL: true,
|
|
208
|
+
expectedDataPrimitive: ["series", "frame"]
|
|
209
|
+
},
|
|
210
|
+
isDisabled: isTrellisEnabled
|
|
456
211
|
}
|
|
457
|
-
|
|
212
|
+
])
|
|
458
213
|
};
|
|
459
|
-
|
|
214
|
+
var AxesChartDataConfigScatter = {
|
|
460
215
|
label: AxesChartDataConfig.label,
|
|
461
|
-
layout: [
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
216
|
+
layout: [
|
|
217
|
+
[
|
|
218
|
+
{
|
|
219
|
+
label: (0, i18n_exports._)("X"),
|
|
220
|
+
option: "x",
|
|
221
|
+
editor: "editor.columnSelector",
|
|
222
|
+
editorProps: {
|
|
223
|
+
dataSourceKey: "primary",
|
|
224
|
+
supportsDSL: true,
|
|
225
|
+
expectedDataPrimitive: ["series"]
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
[
|
|
230
|
+
{
|
|
231
|
+
label: (0, i18n_exports._)("Y"),
|
|
232
|
+
option: "y",
|
|
233
|
+
editor: "editor.columnSelector",
|
|
234
|
+
editorProps: {
|
|
235
|
+
dataSourceKey: "primary",
|
|
236
|
+
filterByTypes: ["number"],
|
|
237
|
+
supportsDSL: true,
|
|
238
|
+
expectedDataPrimitive: ["series"]
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
[
|
|
243
|
+
{
|
|
244
|
+
label: (0, i18n_exports._)("Category"),
|
|
245
|
+
option: "category",
|
|
246
|
+
editor: "editor.columnSelector",
|
|
247
|
+
editorProps: {
|
|
248
|
+
dataSourceKey: "primary",
|
|
249
|
+
supportsDSL: true,
|
|
250
|
+
expectedDataPrimitive: ["series"]
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
[
|
|
255
|
+
{
|
|
256
|
+
label: (0, i18n_exports._)("Result limit"),
|
|
257
|
+
option: "resultLimit",
|
|
258
|
+
editor: "editor.number",
|
|
259
|
+
editorProps: {
|
|
260
|
+
dataSourceKey: "primary"
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
]
|
|
497
265
|
};
|
|
498
|
-
|
|
499
|
-
label:
|
|
266
|
+
var AxesChartDataConfigBubble = {
|
|
267
|
+
label: AxesChartDataConfigScatter.label,
|
|
500
268
|
// layout: insert Size after Category
|
|
501
|
-
layout:
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
269
|
+
layout: insertLayout(AxesChartDataConfigScatter.layout, 3, [
|
|
270
|
+
{
|
|
271
|
+
label: (0, i18n_exports._)("Size"),
|
|
272
|
+
option: "size",
|
|
273
|
+
editor: "editor.columnSelector",
|
|
274
|
+
editorProps: {
|
|
275
|
+
dataSourceKey: "primary",
|
|
276
|
+
supportsDSL: true,
|
|
277
|
+
expectedDataPrimitive: ["series"]
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
])
|
|
511
281
|
};
|
|
512
|
-
|
|
513
|
-
label:
|
|
514
|
-
layout: [
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
282
|
+
var AxesChartDataConfigAreaColumnLine = {
|
|
283
|
+
label: AxesChartDataConfigBar.label,
|
|
284
|
+
layout: [
|
|
285
|
+
...AxesChartDataConfigBar.layout,
|
|
286
|
+
[
|
|
287
|
+
{
|
|
288
|
+
label: (0, i18n_exports._)("Annotation x"),
|
|
289
|
+
option: "annotationX",
|
|
290
|
+
editor: "editor.columnSelector",
|
|
291
|
+
editorProps: {
|
|
292
|
+
dataSourceKey: "annotation",
|
|
293
|
+
supportsDSL: true,
|
|
294
|
+
expectedDataPrimitive: ["series"]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
[
|
|
299
|
+
{
|
|
300
|
+
label: (0, i18n_exports._)("Annotation labels"),
|
|
301
|
+
option: "annotationLabel",
|
|
302
|
+
editor: "editor.columnSelector",
|
|
303
|
+
editorProps: {
|
|
304
|
+
dataSourceKey: "annotation",
|
|
305
|
+
supportsDSL: true,
|
|
306
|
+
expectedDataPrimitive: ["series"]
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
]
|
|
533
311
|
};
|
|
534
|
-
exports.default = AxesChartDataConfig;
|
|
535
|
-
|
|
536
|
-
/***/ }),
|
|
537
|
-
/* 15 */
|
|
538
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
539
312
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
313
|
+
// src/common/editorConfig/TrellisEditors.ts
|
|
314
|
+
var isTrellisFeatureFlagOn2 = ({ featureFlags }) => {
|
|
315
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
316
|
+
};
|
|
317
|
+
var isTrellisEnabled2 = ({ options, featureFlags }) => {
|
|
318
|
+
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
319
|
+
return isTrellisFeatureFlagOn2({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
320
|
+
};
|
|
321
|
+
var TrellisEditorConfig = [
|
|
322
|
+
[
|
|
323
|
+
{
|
|
324
|
+
label: (0, i18n_exports._)("Trellis layout"),
|
|
325
|
+
option: "splitByLayout",
|
|
326
|
+
editor: "editor.toggle",
|
|
327
|
+
showEditor: isTrellisFeatureFlagOn2
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
[
|
|
331
|
+
{
|
|
332
|
+
label: (0, i18n_exports._)("Split by"),
|
|
333
|
+
option: "trellisSplitBy",
|
|
334
|
+
editor: "editor.trellisSplitBy",
|
|
335
|
+
editorProps: {
|
|
336
|
+
dataSourceKey: "primary"
|
|
337
|
+
},
|
|
338
|
+
showEditor: isTrellisEnabled2
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
[
|
|
342
|
+
{
|
|
343
|
+
label: (0, i18n_exports._)("Number of columns"),
|
|
344
|
+
option: "trellisColumns",
|
|
345
|
+
editor: "editor.number",
|
|
346
|
+
editorProps: {
|
|
347
|
+
min: 1
|
|
348
|
+
},
|
|
349
|
+
placeholder: (0, i18n_exports._)("Auto"),
|
|
350
|
+
showEditor: isTrellisEnabled2
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
[
|
|
354
|
+
{
|
|
355
|
+
label: (0, i18n_exports._)("Min column width"),
|
|
356
|
+
option: "trellisMinColumnWidth",
|
|
357
|
+
editor: "editor.number",
|
|
358
|
+
editorProps: {
|
|
359
|
+
min: 1
|
|
360
|
+
},
|
|
361
|
+
showEditor: isTrellisEnabled2
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
label: (0, i18n_exports._)("Row height"),
|
|
365
|
+
option: "trellisRowHeight",
|
|
366
|
+
editor: "editor.number",
|
|
367
|
+
editorProps: {
|
|
368
|
+
min: 1
|
|
369
|
+
},
|
|
370
|
+
showEditor: isTrellisEnabled2
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
[
|
|
374
|
+
{
|
|
375
|
+
label: (0, i18n_exports._)("Max number of components per page"),
|
|
376
|
+
option: "trellisPageCount",
|
|
377
|
+
editor: "editor.number",
|
|
378
|
+
editorProps: {
|
|
379
|
+
min: 1
|
|
380
|
+
},
|
|
381
|
+
showEditor: isTrellisEnabled2
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
];
|
|
385
|
+
var TimechartTrellisEditorConfig = [
|
|
386
|
+
[
|
|
387
|
+
{
|
|
388
|
+
label: (0, i18n_exports._)("Trellis layout"),
|
|
389
|
+
option: "splitByLayout",
|
|
390
|
+
editor: "editor.toggle",
|
|
391
|
+
showEditor: isTrellisFeatureFlagOn2,
|
|
392
|
+
// add help text for timecharts
|
|
393
|
+
editorProps: {
|
|
394
|
+
help: (0, i18n_exports._)(
|
|
395
|
+
"Y2-axis and overlay field configurations are not supported when trellis is enabled."
|
|
396
|
+
),
|
|
397
|
+
helpFormat: "under"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
...TrellisEditorConfig.slice(1),
|
|
402
|
+
[
|
|
403
|
+
{
|
|
404
|
+
label: (0, i18n_exports._)("Shared y-axis scale"),
|
|
405
|
+
option: "trellisSharedScale",
|
|
406
|
+
editor: "editor.checkbox",
|
|
407
|
+
showEditor: isTrellisEnabled2
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
];
|
|
411
|
+
var TrellisBackgroundColorEditor = {
|
|
412
|
+
label: (0, i18n_exports._)("Trellis background"),
|
|
413
|
+
option: "trellisBackgroundColor",
|
|
414
|
+
editor: "editor.color",
|
|
415
|
+
showEditor: isTrellisEnabled2
|
|
416
|
+
};
|
|
550
417
|
|
|
551
|
-
|
|
418
|
+
// src/common/editorConfig/AxesChartDataDisplay.ts
|
|
419
|
+
var isTrellisFeatureFlagOn3 = ({ featureFlags }) => {
|
|
420
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
421
|
+
};
|
|
422
|
+
var isTrellisEnabled3 = ({ options, featureFlags }) => {
|
|
423
|
+
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
424
|
+
return isTrellisFeatureFlagOn3({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
425
|
+
};
|
|
426
|
+
var AxesChartDataDisplayBase = {
|
|
427
|
+
label: (0, i18n_exports._)("Data display"),
|
|
428
|
+
layout: [
|
|
429
|
+
[
|
|
430
|
+
{
|
|
431
|
+
label: (0, i18n_exports._)("Stack mode"),
|
|
432
|
+
option: "stackMode",
|
|
433
|
+
editor: "editor.select",
|
|
434
|
+
editorProps: {
|
|
435
|
+
values: [
|
|
436
|
+
{ label: (0, i18n_exports._)("Not stacked"), value: "auto" },
|
|
437
|
+
{ label: (0, i18n_exports._)("Stacked"), value: "stacked" },
|
|
438
|
+
{ label: (0, i18n_exports._)("Stacked 100%"), value: "stacked100" }
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
],
|
|
443
|
+
[
|
|
444
|
+
{
|
|
445
|
+
label: (0, i18n_exports._)("Null value display"),
|
|
446
|
+
option: "nullValueDisplay",
|
|
447
|
+
editor: "editor.radioBar",
|
|
448
|
+
editorProps: {
|
|
449
|
+
values: [
|
|
450
|
+
{ label: (0, i18n_exports._)("Gaps"), value: "gaps" },
|
|
451
|
+
{ label: (0, i18n_exports._)("Zero"), value: "zero" },
|
|
452
|
+
{ label: (0, i18n_exports._)("Connect"), value: "connect" }
|
|
453
|
+
]
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
[
|
|
458
|
+
{
|
|
459
|
+
label: (0, i18n_exports._)("Data value display"),
|
|
460
|
+
option: "dataValuesDisplay",
|
|
461
|
+
editor: "editor.radioBar",
|
|
462
|
+
editorProps: {
|
|
463
|
+
values: [
|
|
464
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" },
|
|
465
|
+
{ label: (0, i18n_exports._)("All"), value: "all" },
|
|
466
|
+
{ label: (0, i18n_exports._)("Min/Max"), value: "minmax" }
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
[
|
|
472
|
+
{
|
|
473
|
+
label: (0, i18n_exports._)("Overlay fields"),
|
|
474
|
+
option: "overlayFields",
|
|
475
|
+
editor: "editor.columnMultiSelectionByFieldNameEditor",
|
|
476
|
+
editorProps: {
|
|
477
|
+
filterByTypes: ["number"]
|
|
478
|
+
},
|
|
479
|
+
isDisabled: isTrellisEnabled3
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
[
|
|
483
|
+
{
|
|
484
|
+
label: (0, i18n_exports._)("Split series"),
|
|
485
|
+
option: "showSplitSeries",
|
|
486
|
+
editor: "editor.toggle"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
[
|
|
490
|
+
{
|
|
491
|
+
label: (0, i18n_exports._)("Independent y-axis for split series"),
|
|
492
|
+
option: "showIndependentYRanges",
|
|
493
|
+
editor: "editor.checkbox",
|
|
494
|
+
showEditor: ({ options }) => options.showSplitSeries
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
...TimechartTrellisEditorConfig
|
|
498
|
+
]
|
|
499
|
+
};
|
|
500
|
+
var AxesChartDataDisplayBar = {
|
|
501
|
+
label: AxesChartDataDisplayBase.label,
|
|
502
|
+
layout: [
|
|
503
|
+
AxesChartDataDisplayBase.layout[0],
|
|
504
|
+
// remove null value display editor at index 1
|
|
505
|
+
...AxesChartDataDisplayBase.layout.slice(2)
|
|
506
|
+
]
|
|
507
|
+
};
|
|
508
|
+
var AxesChartDataDisplayColumn = {
|
|
509
|
+
label: AxesChartDataDisplayBase.label,
|
|
510
|
+
layout: [
|
|
511
|
+
AxesChartDataDisplayBase.layout[0],
|
|
512
|
+
// remove null value display and add data value display
|
|
513
|
+
AxesChartDataDisplayBase.layout[2],
|
|
514
|
+
[
|
|
515
|
+
{
|
|
516
|
+
label: (0, i18n_exports._)("Show tooltip on hover"),
|
|
517
|
+
option: "showTooltip",
|
|
518
|
+
editor: "editor.checkbox"
|
|
519
|
+
}
|
|
520
|
+
],
|
|
521
|
+
...AxesChartDataDisplayBase.layout.slice(3),
|
|
522
|
+
[
|
|
523
|
+
{
|
|
524
|
+
label: (0, i18n_exports._)("Column grouping mode"),
|
|
525
|
+
option: "columnGrouping",
|
|
526
|
+
editor: "editor.radioBar",
|
|
527
|
+
editorProps: {
|
|
528
|
+
values: [
|
|
529
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
530
|
+
{ label: (0, i18n_exports._)("Overlay"), value: "overlay" }
|
|
531
|
+
]
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
]
|
|
535
|
+
]
|
|
536
|
+
};
|
|
537
|
+
var AxesChartDataDisplayLine = {
|
|
538
|
+
label: AxesChartDataDisplayBase.label,
|
|
539
|
+
layout: [
|
|
540
|
+
// remove stacked mode editor
|
|
541
|
+
...AxesChartDataDisplayBase.layout.slice(1)
|
|
542
|
+
]
|
|
543
|
+
};
|
|
552
544
|
|
|
553
|
-
|
|
545
|
+
// src/common/editorConfig/BackgroundColor.ts
|
|
546
|
+
var background = ({
|
|
547
|
+
label,
|
|
548
|
+
themes: themes3,
|
|
549
|
+
labelPosition
|
|
550
|
+
}) => [
|
|
551
|
+
{
|
|
552
|
+
label: (0, i18n_exports._)(label || "Background color"),
|
|
553
|
+
option: "backgroundColor",
|
|
554
|
+
editor: "editor.color",
|
|
555
|
+
editorProps: {
|
|
556
|
+
labelPosition: labelPosition || "top",
|
|
557
|
+
themes: themes3
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
];
|
|
561
|
+
var BackgroundColor_default = background;
|
|
554
562
|
|
|
563
|
+
// src/common/editorConfig/AxesChartColorAndStyle.ts
|
|
555
564
|
var themes = {
|
|
556
|
-
defaultBackgroundColor:
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
})(props);
|
|
564
|
-
}
|
|
565
|
+
defaultBackgroundColor: (props) => pick_default({
|
|
566
|
+
enterprise: {
|
|
567
|
+
dark: variables_default.black(props),
|
|
568
|
+
light: variables_default.backgroundColor(props)
|
|
569
|
+
},
|
|
570
|
+
prisma: variables_default.backgroundColorSidebar(props)
|
|
571
|
+
})(props)
|
|
565
572
|
};
|
|
566
573
|
var AxesChartColorAndStyle = {
|
|
567
|
-
label: (0,
|
|
568
|
-
layout: [
|
|
569
|
-
themes
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
574
|
+
label: (0, i18n_exports._)("Color and style"),
|
|
575
|
+
layout: [
|
|
576
|
+
BackgroundColor_default({ themes }),
|
|
577
|
+
[
|
|
578
|
+
{
|
|
579
|
+
label: (0, i18n_exports._)("Series colors"),
|
|
580
|
+
option: "seriesColors",
|
|
581
|
+
editor: "editor.seriesColors"
|
|
582
|
+
}
|
|
583
|
+
],
|
|
584
|
+
[
|
|
585
|
+
{
|
|
586
|
+
label: (0, i18n_exports._)("Series colors by field name"),
|
|
587
|
+
option: "seriesColorsByField",
|
|
588
|
+
editor: "editor.seriesColorsByField"
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
]
|
|
579
592
|
};
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
593
|
+
var AreaAxesChartColorAndStyleWithTrellis = __spreadProps(__spreadValues({}, AxesChartColorAndStyle), {
|
|
594
|
+
layout: [
|
|
595
|
+
AxesChartColorAndStyle.layout[0],
|
|
596
|
+
[
|
|
597
|
+
__spreadProps(__spreadValues({}, TrellisBackgroundColorEditor), {
|
|
598
|
+
editorProps: {
|
|
599
|
+
themes
|
|
600
|
+
}
|
|
601
|
+
})
|
|
602
|
+
],
|
|
603
|
+
...AxesChartColorAndStyle.layout.slice(1)
|
|
604
|
+
]
|
|
591
605
|
});
|
|
592
606
|
|
|
593
|
-
|
|
594
|
-
|
|
607
|
+
// src/common/editorConfig/AxesChartLegend.ts
|
|
595
608
|
var AxesChartLegend = {
|
|
596
|
-
label: (0,
|
|
597
|
-
layout: [
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
label: (0, i18n_1._)('...Z'),
|
|
632
|
-
value: 'ellipsisStart'
|
|
633
|
-
}, {
|
|
634
|
-
label: (0, i18n_1._)('Off'),
|
|
635
|
-
value: 'ellipsisOff'
|
|
636
|
-
}]
|
|
637
|
-
},
|
|
638
|
-
showEditor: function showEditor(_ref) {
|
|
639
|
-
var options = _ref.options;
|
|
640
|
-
return options.legendDisplay === 'left' || options.legendDisplay === 'right' || options.legendDisplay === 'top' || options.legendDisplay === 'bottom' || options.legendDisplay === undefined;
|
|
641
|
-
}
|
|
642
|
-
}]]
|
|
609
|
+
label: (0, i18n_exports._)("Legend"),
|
|
610
|
+
layout: [
|
|
611
|
+
[
|
|
612
|
+
{
|
|
613
|
+
label: (0, i18n_exports._)("Legend display"),
|
|
614
|
+
option: "legendDisplay",
|
|
615
|
+
editor: "editor.select",
|
|
616
|
+
editorProps: {
|
|
617
|
+
values: [
|
|
618
|
+
{ label: (0, i18n_exports._)("Right"), value: "right" },
|
|
619
|
+
{ label: (0, i18n_exports._)("Left"), value: "left" },
|
|
620
|
+
{ label: (0, i18n_exports._)("Top"), value: "top" },
|
|
621
|
+
{ label: (0, i18n_exports._)("Bottom"), value: "bottom" },
|
|
622
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
623
|
+
]
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
],
|
|
627
|
+
[
|
|
628
|
+
{
|
|
629
|
+
label: (0, i18n_exports._)("Legend truncation"),
|
|
630
|
+
option: "legendTruncation",
|
|
631
|
+
editor: "editor.radioBar",
|
|
632
|
+
editorProps: {
|
|
633
|
+
values: [
|
|
634
|
+
{ label: (0, i18n_exports._)("A..."), value: "ellipsisEnd" },
|
|
635
|
+
{ label: (0, i18n_exports._)("A...Z"), value: "ellipsisMiddle" },
|
|
636
|
+
{ label: (0, i18n_exports._)("...Z"), value: "ellipsisStart" },
|
|
637
|
+
{ label: (0, i18n_exports._)("Off"), value: "ellipsisOff" }
|
|
638
|
+
]
|
|
639
|
+
},
|
|
640
|
+
showEditor: ({ options }) => options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || options.legendDisplay === void 0
|
|
641
|
+
}
|
|
642
|
+
]
|
|
643
|
+
]
|
|
643
644
|
};
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
645
|
+
var AxesChartLegendWithTrellisAndMode = ({
|
|
646
|
+
showLegendTooltip = false,
|
|
647
|
+
hideModeWhenOff = false
|
|
648
|
+
}) => ({
|
|
649
|
+
label: AxesChartLegend.label,
|
|
650
|
+
layout: [
|
|
651
|
+
[
|
|
652
|
+
{
|
|
653
|
+
label: (0, i18n_exports._)("Legend display"),
|
|
654
|
+
option: "legendDisplay",
|
|
655
|
+
editor: "editor.select",
|
|
656
|
+
editorProps: {
|
|
657
|
+
values: [
|
|
658
|
+
{ label: (0, i18n_exports._)("Right"), value: "right" },
|
|
659
|
+
{ label: (0, i18n_exports._)("Left"), value: "left" },
|
|
660
|
+
{ label: (0, i18n_exports._)("Top"), value: "top" },
|
|
661
|
+
{ label: (0, i18n_exports._)("Bottom"), value: "bottom" },
|
|
662
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
663
|
+
],
|
|
664
|
+
tooltip: showLegendTooltip && (0, i18n_exports._)('Legend mode must be "Standard" to configure legend display')
|
|
665
|
+
},
|
|
666
|
+
isDisabled: showLegendTooltip ? ({ options }) => options.legendMode === "seriesCompare" : void 0,
|
|
667
|
+
overrideDefaultValue: ({ options }) => (options == null ? void 0 : options.splitByLayout) === "trellis" ? "off" : "right"
|
|
668
|
+
}
|
|
669
|
+
],
|
|
670
|
+
[
|
|
671
|
+
__spreadProps(__spreadValues({}, AxesChartLegend.layout[1][0]), {
|
|
672
|
+
showEditor: ({ options }) => options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || // when Trellis is on, the default value of legendDisplay is off
|
|
673
|
+
options.legendDisplay === void 0 && options.splitByLayout !== "trellis"
|
|
674
|
+
})
|
|
675
|
+
],
|
|
676
|
+
[
|
|
677
|
+
{
|
|
678
|
+
label: (0, i18n_exports._)("Legend mode"),
|
|
679
|
+
option: "legendMode",
|
|
680
|
+
editor: "editor.radioBar",
|
|
681
|
+
editorProps: {
|
|
682
|
+
values: [
|
|
683
|
+
{ label: (0, i18n_exports._)("Standard"), value: "standard" },
|
|
684
|
+
{ label: (0, i18n_exports._)("Compare series"), value: "seriesCompare" }
|
|
685
|
+
]
|
|
686
|
+
},
|
|
687
|
+
showEditor: ({ options }) => hideModeWhenOff ? options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || // when Trellis is on, the default value of legendDisplay is off
|
|
688
|
+
options.legendDisplay === void 0 && options.splitByLayout !== "trellis" : true
|
|
689
|
+
}
|
|
690
|
+
]
|
|
691
|
+
]
|
|
657
692
|
});
|
|
658
|
-
exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCommon = void 0;
|
|
659
|
-
|
|
660
|
-
var i18n_1 = __webpack_require__(0);
|
|
661
693
|
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
694
|
+
// src/common/editorConfig/AxesChartXGridAndLabels.ts
|
|
695
|
+
var AxesChartXGridAndLabelsCommon = {
|
|
696
|
+
label: (0, i18n_exports._)("X-axis grid and labels"),
|
|
697
|
+
layout: [
|
|
698
|
+
[
|
|
699
|
+
{
|
|
700
|
+
label: (0, i18n_exports._)("Axis title"),
|
|
701
|
+
option: "xAxisTitleVisibility",
|
|
702
|
+
editor: "editor.toggle"
|
|
703
|
+
}
|
|
704
|
+
],
|
|
705
|
+
[
|
|
706
|
+
{
|
|
707
|
+
label: (0, i18n_exports._)("Axis title text"),
|
|
708
|
+
option: "xAxisTitleText",
|
|
709
|
+
editor: "editor.text",
|
|
710
|
+
showEditor: ({ options }) => options.xAxisTitleVisibility === "show" || options.xAxisTitleVisibility === void 0
|
|
711
|
+
}
|
|
712
|
+
],
|
|
713
|
+
[
|
|
714
|
+
{
|
|
715
|
+
label: (0, i18n_exports._)("Label visibility"),
|
|
716
|
+
option: "xAxisLabelVisibility",
|
|
717
|
+
editor: "editor.radioBar",
|
|
718
|
+
editorProps: {
|
|
719
|
+
values: [
|
|
720
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
721
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
722
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
723
|
+
]
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
]
|
|
727
|
+
]
|
|
695
728
|
};
|
|
696
729
|
var AxesChartXGridAndLabels = {
|
|
697
|
-
label:
|
|
698
|
-
layout: [
|
|
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
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
772
|
-
}
|
|
773
|
-
}]])
|
|
730
|
+
label: AxesChartXGridAndLabelsCommon.label,
|
|
731
|
+
layout: [
|
|
732
|
+
...AxesChartXGridAndLabelsCommon.layout,
|
|
733
|
+
[
|
|
734
|
+
{
|
|
735
|
+
label: (0, i18n_exports._)("Label rotation"),
|
|
736
|
+
option: "xAxisLabelRotation",
|
|
737
|
+
editor: "editor.select",
|
|
738
|
+
editorProps: {
|
|
739
|
+
values: [
|
|
740
|
+
{ label: (0, i18n_exports._)("-90"), value: -90 },
|
|
741
|
+
{ label: (0, i18n_exports._)("-45"), value: -45 },
|
|
742
|
+
{ label: (0, i18n_exports._)("0"), value: 0 },
|
|
743
|
+
{ label: (0, i18n_exports._)("45"), value: 45 },
|
|
744
|
+
{ label: (0, i18n_exports._)("90"), value: 90 }
|
|
745
|
+
]
|
|
746
|
+
},
|
|
747
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
748
|
+
}
|
|
749
|
+
],
|
|
750
|
+
[
|
|
751
|
+
{
|
|
752
|
+
label: (0, i18n_exports._)("Number of time label parts"),
|
|
753
|
+
option: "xAxisMaxLabelParts",
|
|
754
|
+
editor: "editor.number",
|
|
755
|
+
editorProps: {
|
|
756
|
+
min: 1,
|
|
757
|
+
max: 3
|
|
758
|
+
},
|
|
759
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
760
|
+
}
|
|
761
|
+
],
|
|
762
|
+
[
|
|
763
|
+
{
|
|
764
|
+
label: (0, i18n_exports._)("Axis line visibility"),
|
|
765
|
+
option: "xAxisLineVisibility",
|
|
766
|
+
editor: "editor.checkbox"
|
|
767
|
+
}
|
|
768
|
+
],
|
|
769
|
+
[
|
|
770
|
+
{
|
|
771
|
+
label: (0, i18n_exports._)("Major gridlines"),
|
|
772
|
+
option: "showXMajorGridLines",
|
|
773
|
+
editor: "editor.checkbox"
|
|
774
|
+
}
|
|
775
|
+
],
|
|
776
|
+
[
|
|
777
|
+
{
|
|
778
|
+
label: (0, i18n_exports._)("Major tick visibility"),
|
|
779
|
+
option: "xAxisMajorTickVisibility",
|
|
780
|
+
editor: "editor.radioBar",
|
|
781
|
+
editorProps: {
|
|
782
|
+
values: [
|
|
783
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
784
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
785
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
786
|
+
]
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
],
|
|
790
|
+
[
|
|
791
|
+
{
|
|
792
|
+
label: (0, i18n_exports._)("Major tick size (px)"),
|
|
793
|
+
option: "xAxisMajorTickSize",
|
|
794
|
+
editor: "editor.slider",
|
|
795
|
+
editorProps: {
|
|
796
|
+
min: 0,
|
|
797
|
+
max: 10,
|
|
798
|
+
step: 1
|
|
799
|
+
},
|
|
800
|
+
showEditor: ({ options }) => options.xAxisMajorTickVisibility === "show" || options.xAxisMajorTickVisibility === "auto" || options.xAxisMajorTickVisibility === void 0
|
|
801
|
+
}
|
|
802
|
+
]
|
|
803
|
+
]
|
|
774
804
|
};
|
|
775
|
-
|
|
776
|
-
label:
|
|
777
|
-
layout: [
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
805
|
+
var AxesChartXGridAndLabelsBubbleScatter = {
|
|
806
|
+
label: AxesChartXGridAndLabelsCommon.label,
|
|
807
|
+
layout: [
|
|
808
|
+
...insertLayout(AxesChartXGridAndLabelsCommon.layout, 2, [
|
|
809
|
+
{
|
|
810
|
+
label: (0, i18n_exports._)("Axis scale"),
|
|
811
|
+
option: "xAxisScale",
|
|
812
|
+
editor: "editor.radioBar",
|
|
813
|
+
editorProps: {
|
|
814
|
+
values: [
|
|
815
|
+
{ label: (0, i18n_exports._)("Linear"), value: "linear" },
|
|
816
|
+
{ label: (0, i18n_exports._)("Log"), value: "log" }
|
|
817
|
+
]
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
]),
|
|
821
|
+
[
|
|
822
|
+
{
|
|
823
|
+
label: (0, i18n_exports._)("Label rotation"),
|
|
824
|
+
option: "xAxisLabelRotation",
|
|
825
|
+
editor: "editor.select",
|
|
826
|
+
editorProps: {
|
|
827
|
+
values: [
|
|
828
|
+
{ label: (0, i18n_exports._)("-90"), value: -90 },
|
|
829
|
+
{ label: (0, i18n_exports._)("-45"), value: -45 },
|
|
830
|
+
{ label: (0, i18n_exports._)("0"), value: 0 },
|
|
831
|
+
{ label: (0, i18n_exports._)("45"), value: 45 },
|
|
832
|
+
{ label: (0, i18n_exports._)("90"), value: 90 }
|
|
833
|
+
]
|
|
834
|
+
},
|
|
835
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
836
|
+
}
|
|
837
|
+
],
|
|
838
|
+
[
|
|
839
|
+
{
|
|
840
|
+
label: (0, i18n_exports._)("Round axis labels"),
|
|
841
|
+
option: "showRoundedXAxisLabels",
|
|
842
|
+
editor: "editor.checkbox",
|
|
843
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
844
|
+
}
|
|
845
|
+
],
|
|
846
|
+
[
|
|
847
|
+
{
|
|
848
|
+
label: (0, i18n_exports._)("SI prefix abbreviation for labels"),
|
|
849
|
+
option: "xAxisAbbreviation",
|
|
850
|
+
editor: "editor.checkbox",
|
|
851
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
852
|
+
}
|
|
853
|
+
],
|
|
854
|
+
[
|
|
855
|
+
{
|
|
856
|
+
label: (0, i18n_exports._)("Include zero"),
|
|
857
|
+
option: "showXAxisWithZero",
|
|
858
|
+
editor: "editor.checkbox"
|
|
859
|
+
}
|
|
860
|
+
],
|
|
861
|
+
[
|
|
862
|
+
{
|
|
863
|
+
label: (0, i18n_exports._)("Extend to whole grid"),
|
|
864
|
+
option: "showXAxisExtendedRange",
|
|
865
|
+
editor: "editor.checkbox"
|
|
866
|
+
}
|
|
867
|
+
],
|
|
868
|
+
[
|
|
869
|
+
{
|
|
870
|
+
label: (0, i18n_exports._)("Minimum axis value"),
|
|
871
|
+
option: "xAxisMin",
|
|
872
|
+
editor: "editor.number"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
label: (0, i18n_exports._)("Maximum axis value"),
|
|
876
|
+
option: "xAxisMax",
|
|
877
|
+
editor: "editor.number"
|
|
878
|
+
}
|
|
879
|
+
],
|
|
880
|
+
[
|
|
881
|
+
{
|
|
882
|
+
label: (0, i18n_exports._)("Axis line visibility"),
|
|
883
|
+
option: "xAxisLineVisibility",
|
|
884
|
+
editor: "editor.checkbox"
|
|
885
|
+
}
|
|
886
|
+
],
|
|
887
|
+
// this option is disabled for bubble and scatter
|
|
888
|
+
// [
|
|
889
|
+
// {
|
|
890
|
+
// label: _('Major gridlines'),
|
|
891
|
+
// option: 'showXMajorGridLines',
|
|
892
|
+
// editor: 'editor.checkbox',
|
|
893
|
+
// },
|
|
894
|
+
// ],
|
|
895
|
+
[
|
|
896
|
+
{
|
|
897
|
+
label: (0, i18n_exports._)("Major tick visibility"),
|
|
898
|
+
option: "xAxisMajorTickVisibility",
|
|
899
|
+
editor: "editor.radioBar",
|
|
900
|
+
editorProps: {
|
|
901
|
+
values: [
|
|
902
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
903
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
904
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
905
|
+
]
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
],
|
|
909
|
+
[
|
|
910
|
+
{
|
|
911
|
+
label: (0, i18n_exports._)("Major tick size (px)"),
|
|
912
|
+
option: "xAxisMajorTickSize",
|
|
913
|
+
editor: "editor.slider",
|
|
914
|
+
editorProps: {
|
|
915
|
+
min: 0,
|
|
916
|
+
max: 10,
|
|
917
|
+
step: 1
|
|
918
|
+
},
|
|
919
|
+
showEditor: ({ options }) => options.xAxisMajorTickVisibility === "show" || options.xAxisMajorTickVisibility === "auto" || options.xAxisMajorTickVisibility === void 0
|
|
920
|
+
}
|
|
921
|
+
],
|
|
922
|
+
[
|
|
923
|
+
{
|
|
924
|
+
label: (0, i18n_exports._)("Major tick interval spacing"),
|
|
925
|
+
option: "xAxisMajorTickInterval",
|
|
926
|
+
editor: "editor.number",
|
|
927
|
+
showEditor: ({ options }) => options.xAxisMajorTickVisibility === "show" || options.xAxisMajorTickVisibility === "auto" || options.xAxisMajorTickVisibility === void 0
|
|
928
|
+
}
|
|
929
|
+
],
|
|
930
|
+
[
|
|
931
|
+
{
|
|
932
|
+
label: (0, i18n_exports._)("Minor gridlines"),
|
|
933
|
+
option: "showXMinorGridLines",
|
|
934
|
+
editor: "editor.checkbox"
|
|
935
|
+
}
|
|
936
|
+
],
|
|
937
|
+
[
|
|
938
|
+
{
|
|
939
|
+
label: (0, i18n_exports._)("Minor tick visibility"),
|
|
940
|
+
option: "xAxisMinorTickVisibility",
|
|
941
|
+
editor: "editor.radioBar",
|
|
942
|
+
editorProps: {
|
|
943
|
+
values: [
|
|
944
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
945
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
946
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
947
|
+
]
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
],
|
|
951
|
+
[
|
|
952
|
+
{
|
|
953
|
+
label: (0, i18n_exports._)("Minor tick size (px)"),
|
|
954
|
+
option: "xAxisMinorTickSize",
|
|
955
|
+
editor: "editor.slider",
|
|
956
|
+
editorProps: {
|
|
957
|
+
min: 0,
|
|
958
|
+
max: 10,
|
|
959
|
+
step: 1
|
|
960
|
+
},
|
|
961
|
+
showEditor: ({ options }) => options.xAxisMinorTickVisibility === "show" || options.xAxisMinorTickVisibility === "auto" || options.xAxisMinorTickVisibility === void 0
|
|
962
|
+
}
|
|
963
|
+
]
|
|
964
|
+
]
|
|
931
965
|
};
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
/***/ }),
|
|
935
|
-
/* 18 */
|
|
936
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
937
|
-
|
|
938
|
-
"use strict";
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
Object.defineProperty(exports, "__esModule", {
|
|
942
|
-
value: true
|
|
943
|
-
});
|
|
944
|
-
|
|
945
|
-
var i18n_1 = __webpack_require__(0);
|
|
966
|
+
var AxesChartXGridAndLabels_default = AxesChartXGridAndLabels;
|
|
946
967
|
|
|
968
|
+
// src/common/editorConfig/AxesChartYGridAndLabels.ts
|
|
947
969
|
var AxesChartYGridAndLabels = {
|
|
948
|
-
label: (0,
|
|
949
|
-
layout: [
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
label: (0,
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
label: (0,
|
|
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
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
label: (0,
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
label: (0,
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
970
|
+
label: (0, i18n_exports._)("Y-axis grid and labels"),
|
|
971
|
+
layout: [
|
|
972
|
+
[
|
|
973
|
+
{
|
|
974
|
+
label: (0, i18n_exports._)("Axis title"),
|
|
975
|
+
option: "yAxisTitleVisibility",
|
|
976
|
+
editor: "editor.toggle"
|
|
977
|
+
}
|
|
978
|
+
],
|
|
979
|
+
[
|
|
980
|
+
{
|
|
981
|
+
label: (0, i18n_exports._)("Axis title text"),
|
|
982
|
+
option: "yAxisTitleText",
|
|
983
|
+
editor: "editor.text",
|
|
984
|
+
showEditor: ({ options }) => options.yAxisTitleVisibility === "show" || options.yAxisTitleVisibility === void 0
|
|
985
|
+
}
|
|
986
|
+
],
|
|
987
|
+
[
|
|
988
|
+
{
|
|
989
|
+
label: (0, i18n_exports._)("Scale"),
|
|
990
|
+
option: "yAxisScale",
|
|
991
|
+
editor: "editor.radioBar",
|
|
992
|
+
editorProps: {
|
|
993
|
+
values: [
|
|
994
|
+
{ label: (0, i18n_exports._)("Linear"), value: "linear" },
|
|
995
|
+
{ label: (0, i18n_exports._)("Log"), value: "log" }
|
|
996
|
+
]
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
],
|
|
1000
|
+
[
|
|
1001
|
+
{
|
|
1002
|
+
label: (0, i18n_exports._)("Label visibility"),
|
|
1003
|
+
option: "yAxisLabelVisibility",
|
|
1004
|
+
editor: "editor.radioBar",
|
|
1005
|
+
editorProps: {
|
|
1006
|
+
values: [
|
|
1007
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
1008
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1009
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1010
|
+
]
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
],
|
|
1014
|
+
[
|
|
1015
|
+
{
|
|
1016
|
+
label: (0, i18n_exports._)("SI prefix abbreviation for labels"),
|
|
1017
|
+
option: "yAxisAbbreviation",
|
|
1018
|
+
editor: "editor.checkbox",
|
|
1019
|
+
showEditor: ({ options }) => options.yAxisLabelVisibility === "show" || options.yAxisLabelVisibility === "auto" || options.yAxisLabelVisibility === void 0
|
|
1020
|
+
}
|
|
1021
|
+
],
|
|
1022
|
+
[
|
|
1023
|
+
{
|
|
1024
|
+
label: (0, i18n_exports._)("Include zero"),
|
|
1025
|
+
option: "showYAxisWithZero",
|
|
1026
|
+
editor: "editor.checkbox"
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
[
|
|
1030
|
+
{
|
|
1031
|
+
label: (0, i18n_exports._)("Extend to whole grid"),
|
|
1032
|
+
option: "showYAxisExtendedRange",
|
|
1033
|
+
editor: "editor.checkbox"
|
|
1034
|
+
}
|
|
1035
|
+
],
|
|
1036
|
+
[
|
|
1037
|
+
{
|
|
1038
|
+
label: (0, i18n_exports._)("Minimum axis value"),
|
|
1039
|
+
option: "yAxisMin",
|
|
1040
|
+
editor: "editor.number"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
label: (0, i18n_exports._)("Maximum axis value"),
|
|
1044
|
+
option: "yAxisMax",
|
|
1045
|
+
editor: "editor.number"
|
|
1046
|
+
}
|
|
1047
|
+
],
|
|
1048
|
+
[
|
|
1049
|
+
{
|
|
1050
|
+
label: (0, i18n_exports._)("Axis line visibility"),
|
|
1051
|
+
option: "yAxisLineVisibility",
|
|
1052
|
+
editor: "editor.checkbox"
|
|
1053
|
+
}
|
|
1054
|
+
],
|
|
1055
|
+
[
|
|
1056
|
+
{
|
|
1057
|
+
label: (0, i18n_exports._)("Major gridlines"),
|
|
1058
|
+
option: "showYMajorGridLines",
|
|
1059
|
+
editor: "editor.checkbox"
|
|
1060
|
+
}
|
|
1061
|
+
],
|
|
1062
|
+
[
|
|
1063
|
+
{
|
|
1064
|
+
label: (0, i18n_exports._)("Major tick visibility"),
|
|
1065
|
+
option: "yAxisMajorTickVisibility",
|
|
1066
|
+
editor: "editor.radioBar",
|
|
1067
|
+
editorProps: {
|
|
1068
|
+
values: [
|
|
1069
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
1070
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1071
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1072
|
+
]
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
],
|
|
1076
|
+
[
|
|
1077
|
+
{
|
|
1078
|
+
label: (0, i18n_exports._)("Major tick size (px)"),
|
|
1079
|
+
option: "yAxisMajorTickSize",
|
|
1080
|
+
editor: "editor.slider",
|
|
1081
|
+
editorProps: {
|
|
1082
|
+
min: 0,
|
|
1083
|
+
max: 10,
|
|
1084
|
+
step: 1
|
|
1085
|
+
},
|
|
1086
|
+
showEditor: ({ options }) => options.yAxisMajorTickVisibility === "show" || options.yAxisMajorTickVisibility === "auto" || options.yAxisMajorTickVisibility === void 0
|
|
1087
|
+
}
|
|
1088
|
+
],
|
|
1089
|
+
[
|
|
1090
|
+
{
|
|
1091
|
+
label: (0, i18n_exports._)("Major tick interval spacing"),
|
|
1092
|
+
option: "yAxisMajorTickInterval",
|
|
1093
|
+
editor: "editor.number",
|
|
1094
|
+
showEditor: ({ options }) => options.yAxisMajorTickVisibility === "show" || options.yAxisMajorTickVisibility === "auto" || options.yAxisMajorTickVisibility === void 0
|
|
1095
|
+
}
|
|
1096
|
+
],
|
|
1097
|
+
[
|
|
1098
|
+
{
|
|
1099
|
+
label: (0, i18n_exports._)("Minor gridlines"),
|
|
1100
|
+
option: "showYMinorGridLines",
|
|
1101
|
+
editor: "editor.checkbox"
|
|
1102
|
+
}
|
|
1103
|
+
],
|
|
1104
|
+
[
|
|
1105
|
+
{
|
|
1106
|
+
label: (0, i18n_exports._)("Minor tick visibility"),
|
|
1107
|
+
option: "yAxisMinorTickVisibility",
|
|
1108
|
+
editor: "editor.radioBar",
|
|
1109
|
+
editorProps: {
|
|
1110
|
+
values: [
|
|
1111
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
1112
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1113
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1114
|
+
]
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
],
|
|
1118
|
+
[
|
|
1119
|
+
{
|
|
1120
|
+
label: (0, i18n_exports._)("Minor tick size (px)"),
|
|
1121
|
+
option: "yAxisMinorTickSize",
|
|
1122
|
+
editor: "editor.slider",
|
|
1123
|
+
editorProps: {
|
|
1124
|
+
min: 0,
|
|
1125
|
+
max: 10,
|
|
1126
|
+
step: 1
|
|
1127
|
+
},
|
|
1128
|
+
showEditor: ({ options }) => options.yAxisMinorTickVisibility === "show" || options.yAxisMinorTickVisibility === "auto" || options.yAxisMinorTickVisibility === void 0
|
|
1129
|
+
}
|
|
1130
|
+
]
|
|
1131
|
+
]
|
|
1093
1132
|
};
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
/***/ }),
|
|
1097
|
-
/* 19 */,
|
|
1098
|
-
/* 20 */
|
|
1099
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1100
|
-
|
|
1101
|
-
"use strict";
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
var _toConsumableArray = __webpack_require__(1);
|
|
1105
|
-
|
|
1106
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1107
|
-
value: true
|
|
1108
|
-
});
|
|
1109
|
-
exports.AxesChartDataDisplayColumn = exports.AxesChartDataDisplayBar = exports.AxesChartDataDisplayLine = void 0;
|
|
1110
|
-
|
|
1111
|
-
var i18n_1 = __webpack_require__(0);
|
|
1112
|
-
|
|
1113
|
-
var lodash_1 = __webpack_require__(5);
|
|
1114
|
-
|
|
1115
|
-
var configUtils_1 = __webpack_require__(3);
|
|
1133
|
+
var AxesChartYGridAndLabels_default = AxesChartYGridAndLabels;
|
|
1116
1134
|
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
label: (0, i18n_1._)('Null value display'),
|
|
1121
|
-
option: 'nullValueDisplay',
|
|
1122
|
-
editor: 'editor.radioBar',
|
|
1123
|
-
editorProps: {
|
|
1124
|
-
values: [{
|
|
1125
|
-
label: (0, i18n_1._)('Gaps'),
|
|
1126
|
-
value: 'gaps'
|
|
1127
|
-
}, {
|
|
1128
|
-
label: (0, i18n_1._)('Zero'),
|
|
1129
|
-
value: 'zero'
|
|
1130
|
-
}, {
|
|
1131
|
-
label: (0, i18n_1._)('Connect'),
|
|
1132
|
-
value: 'connect'
|
|
1133
|
-
}]
|
|
1134
|
-
}
|
|
1135
|
-
}], [{
|
|
1136
|
-
label: (0, i18n_1._)('Data value display'),
|
|
1137
|
-
option: 'dataValuesDisplay',
|
|
1138
|
-
editor: 'editor.radioBar',
|
|
1139
|
-
editorProps: {
|
|
1140
|
-
values: [{
|
|
1141
|
-
label: (0, i18n_1._)('Off'),
|
|
1142
|
-
value: 'off'
|
|
1143
|
-
}, {
|
|
1144
|
-
label: (0, i18n_1._)('All'),
|
|
1145
|
-
value: 'all'
|
|
1146
|
-
}, {
|
|
1147
|
-
label: (0, i18n_1._)('Min/Max'),
|
|
1148
|
-
value: 'minmax'
|
|
1149
|
-
}]
|
|
1150
|
-
}
|
|
1151
|
-
}], [{
|
|
1152
|
-
label: (0, i18n_1._)('Overlay fields'),
|
|
1153
|
-
option: 'overlayFields',
|
|
1154
|
-
editor: 'editor.columnMultiSelectionByFieldNameEditor',
|
|
1155
|
-
editorProps: {
|
|
1156
|
-
filterByTypes: ['number']
|
|
1157
|
-
}
|
|
1158
|
-
}], [{
|
|
1159
|
-
label: (0, i18n_1._)('Split series'),
|
|
1160
|
-
option: 'showSplitSeries',
|
|
1161
|
-
editor: 'editor.toggle'
|
|
1162
|
-
}], [{
|
|
1163
|
-
label: (0, i18n_1._)('Independent y-axis for split series'),
|
|
1164
|
-
option: 'showIndependentYRanges',
|
|
1165
|
-
editor: 'editor.checkbox',
|
|
1166
|
-
showEditor: function showEditor(_ref) {
|
|
1167
|
-
var options = _ref.options;
|
|
1168
|
-
return options.showSplitSeries;
|
|
1169
|
-
}
|
|
1170
|
-
}]]
|
|
1171
|
-
};
|
|
1172
|
-
var AxesChartDataDisplay = {
|
|
1173
|
-
label: exports.AxesChartDataDisplayLine.label,
|
|
1174
|
-
layout: [[{
|
|
1175
|
-
label: (0, i18n_1._)('Stack mode'),
|
|
1176
|
-
option: 'stackMode',
|
|
1177
|
-
editor: 'editor.select',
|
|
1178
|
-
editorProps: {
|
|
1179
|
-
values: [{
|
|
1180
|
-
label: (0, i18n_1._)('Not stacked'),
|
|
1181
|
-
value: 'auto'
|
|
1182
|
-
}, {
|
|
1183
|
-
label: (0, i18n_1._)('Stacked'),
|
|
1184
|
-
value: 'stacked'
|
|
1185
|
-
}, {
|
|
1186
|
-
label: (0, i18n_1._)('Stacked 100%'),
|
|
1187
|
-
value: 'stacked100'
|
|
1188
|
-
}]
|
|
1189
|
-
}
|
|
1190
|
-
}]].concat(_toConsumableArray(exports.AxesChartDataDisplayLine.layout))
|
|
1135
|
+
// src/common/editorConfig/AxesChartY2GridAndLabels.ts
|
|
1136
|
+
var isTrellisFeatureFlagOn4 = ({ featureFlags }) => {
|
|
1137
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
1191
1138
|
};
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
label: (0, i18n_1._)('Stack mode'),
|
|
1196
|
-
option: 'stackMode',
|
|
1197
|
-
editor: 'editor.select',
|
|
1198
|
-
editorProps: {
|
|
1199
|
-
values: [{
|
|
1200
|
-
label: (0, i18n_1._)('Not stacked'),
|
|
1201
|
-
value: 'auto'
|
|
1202
|
-
}, {
|
|
1203
|
-
label: (0, i18n_1._)('Stacked'),
|
|
1204
|
-
value: 'stacked'
|
|
1205
|
-
}, {
|
|
1206
|
-
label: (0, i18n_1._)('Stacked 100%'),
|
|
1207
|
-
value: 'stacked100'
|
|
1208
|
-
}]
|
|
1209
|
-
}
|
|
1210
|
-
}]].concat(_toConsumableArray((0, lodash_1.drop)(exports.AxesChartDataDisplayLine.layout)))
|
|
1211
|
-
};
|
|
1212
|
-
exports.AxesChartDataDisplayColumn = {
|
|
1213
|
-
label: exports.AxesChartDataDisplayBar.label,
|
|
1214
|
-
layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartDataDisplayBar.layout, 2, [{
|
|
1215
|
-
label: (0, i18n_1._)('Show tooltip on hover'),
|
|
1216
|
-
option: 'showTooltip',
|
|
1217
|
-
editor: 'editor.checkbox'
|
|
1218
|
-
}])), [[{
|
|
1219
|
-
label: (0, i18n_1._)('Column grouping mode'),
|
|
1220
|
-
option: 'columnGrouping',
|
|
1221
|
-
editor: 'editor.radioBar',
|
|
1222
|
-
editorProps: {
|
|
1223
|
-
values: [{
|
|
1224
|
-
label: (0, i18n_1._)('Auto'),
|
|
1225
|
-
value: 'auto'
|
|
1226
|
-
}, {
|
|
1227
|
-
label: (0, i18n_1._)('Overlay'),
|
|
1228
|
-
value: 'overlay'
|
|
1229
|
-
}]
|
|
1230
|
-
}
|
|
1231
|
-
}]])
|
|
1139
|
+
var isTrellisOff = ({ options, featureFlags }) => {
|
|
1140
|
+
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
1141
|
+
return !isTrellisFeatureFlagOn4({ featureFlags }) || splitByLayout !== visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
1232
1142
|
};
|
|
1233
|
-
exports.default = AxesChartDataDisplay;
|
|
1234
|
-
|
|
1235
|
-
/***/ }),
|
|
1236
|
-
/* 21 */
|
|
1237
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1238
|
-
|
|
1239
|
-
"use strict";
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1243
|
-
value: true
|
|
1244
|
-
});
|
|
1245
|
-
|
|
1246
|
-
var i18n_1 = __webpack_require__(0);
|
|
1247
|
-
|
|
1248
1143
|
var axesChartY2GridAndLabels = {
|
|
1249
|
-
label: (0,
|
|
1250
|
-
layout: [
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
label: (0,
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
label: (0,
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1144
|
+
label: (0, i18n_exports._)("Y2-axis grid and labels"),
|
|
1145
|
+
layout: [
|
|
1146
|
+
[
|
|
1147
|
+
{
|
|
1148
|
+
label: (0, i18n_exports._)("Axis title"),
|
|
1149
|
+
option: "y2AxisTitleVisibility",
|
|
1150
|
+
editor: "editor.toggle",
|
|
1151
|
+
showEditor: isTrellisOff
|
|
1152
|
+
}
|
|
1153
|
+
],
|
|
1154
|
+
[
|
|
1155
|
+
{
|
|
1156
|
+
label: (0, i18n_exports._)("Axis title text"),
|
|
1157
|
+
option: "y2AxisTitleText",
|
|
1158
|
+
editor: "editor.text",
|
|
1159
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisTitleVisibility === "show" || options.y2AxisTitleVisibility === void 0)
|
|
1160
|
+
}
|
|
1161
|
+
],
|
|
1162
|
+
[
|
|
1163
|
+
{
|
|
1164
|
+
label: (0, i18n_exports._)("Show overlays on the y2-axis"),
|
|
1165
|
+
option: "showOverlayY2Axis",
|
|
1166
|
+
editor: "editor.checkbox",
|
|
1167
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && Array.isArray(options.overlayFields) && options.overlayFields.length > 0
|
|
1168
|
+
}
|
|
1169
|
+
],
|
|
1170
|
+
[
|
|
1171
|
+
{
|
|
1172
|
+
label: (0, i18n_exports._)("Scale"),
|
|
1173
|
+
option: "y2AxisScale",
|
|
1174
|
+
editor: "editor.radioBar",
|
|
1175
|
+
editorProps: {
|
|
1176
|
+
values: [
|
|
1177
|
+
{ label: (0, i18n_exports._)("Linear"), value: "linear" },
|
|
1178
|
+
{ label: (0, i18n_exports._)("Log"), value: "log" }
|
|
1179
|
+
]
|
|
1180
|
+
},
|
|
1181
|
+
showEditor: isTrellisOff
|
|
1182
|
+
}
|
|
1183
|
+
],
|
|
1184
|
+
[
|
|
1185
|
+
{
|
|
1186
|
+
label: (0, i18n_exports._)("Label visibility"),
|
|
1187
|
+
option: "y2AxisLabelVisibility",
|
|
1188
|
+
editor: "editor.radioBar",
|
|
1189
|
+
editorProps: {
|
|
1190
|
+
values: [
|
|
1191
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
1192
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1193
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1194
|
+
]
|
|
1195
|
+
},
|
|
1196
|
+
showEditor: isTrellisOff
|
|
1197
|
+
}
|
|
1198
|
+
],
|
|
1199
|
+
[
|
|
1200
|
+
{
|
|
1201
|
+
label: (0, i18n_exports._)("Round axis labels"),
|
|
1202
|
+
option: "showRoundedY2AxisLabels",
|
|
1203
|
+
editor: "editor.checkbox",
|
|
1204
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0)
|
|
1205
|
+
}
|
|
1206
|
+
],
|
|
1207
|
+
[
|
|
1208
|
+
{
|
|
1209
|
+
label: (0, i18n_exports._)("SI prefix abbreviation for labels"),
|
|
1210
|
+
option: "y2AxisAbbreviation",
|
|
1211
|
+
editor: "editor.checkbox",
|
|
1212
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0)
|
|
1213
|
+
}
|
|
1214
|
+
],
|
|
1215
|
+
[
|
|
1216
|
+
{
|
|
1217
|
+
label: (0, i18n_exports._)("Include zero"),
|
|
1218
|
+
option: "showY2AxisWithZero",
|
|
1219
|
+
editor: "editor.checkbox",
|
|
1220
|
+
showEditor: isTrellisOff
|
|
1221
|
+
}
|
|
1222
|
+
],
|
|
1223
|
+
[
|
|
1224
|
+
{
|
|
1225
|
+
label: (0, i18n_exports._)("Minimum axis value"),
|
|
1226
|
+
option: "y2AxisMin",
|
|
1227
|
+
editor: "editor.number",
|
|
1228
|
+
showEditor: isTrellisOff
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
label: (0, i18n_exports._)("Maximum axis value"),
|
|
1232
|
+
option: "y2AxisMax",
|
|
1233
|
+
editor: "editor.number",
|
|
1234
|
+
showEditor: isTrellisOff
|
|
1235
|
+
}
|
|
1236
|
+
],
|
|
1237
|
+
[
|
|
1238
|
+
{
|
|
1239
|
+
label: (0, i18n_exports._)("Axis line visibility"),
|
|
1240
|
+
option: "y2AxisLineVisibility",
|
|
1241
|
+
editor: "editor.checkbox",
|
|
1242
|
+
showEditor: isTrellisOff
|
|
1243
|
+
}
|
|
1244
|
+
],
|
|
1245
|
+
[
|
|
1246
|
+
{
|
|
1247
|
+
label: (0, i18n_exports._)("Major gridlines"),
|
|
1248
|
+
option: "showY2MajorGridLines",
|
|
1249
|
+
editor: "editor.checkbox",
|
|
1250
|
+
showEditor: isTrellisOff
|
|
1251
|
+
}
|
|
1252
|
+
],
|
|
1253
|
+
[
|
|
1254
|
+
{
|
|
1255
|
+
label: (0, i18n_exports._)("Major tick visibility"),
|
|
1256
|
+
option: "y2AxisMajorTickVisibility",
|
|
1257
|
+
editor: "editor.radioBar",
|
|
1258
|
+
editorProps: {
|
|
1259
|
+
values: [
|
|
1260
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
1261
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1262
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1263
|
+
]
|
|
1264
|
+
},
|
|
1265
|
+
showEditor: isTrellisOff
|
|
1266
|
+
}
|
|
1267
|
+
],
|
|
1268
|
+
[
|
|
1269
|
+
{
|
|
1270
|
+
label: (0, i18n_exports._)("Major tick size (px)"),
|
|
1271
|
+
option: "y2AxisMajorTickSize",
|
|
1272
|
+
editor: "editor.slider",
|
|
1273
|
+
editorProps: {
|
|
1274
|
+
min: 0,
|
|
1275
|
+
max: 10,
|
|
1276
|
+
step: 1
|
|
1277
|
+
},
|
|
1278
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0)
|
|
1279
|
+
}
|
|
1280
|
+
],
|
|
1281
|
+
[
|
|
1282
|
+
{
|
|
1283
|
+
label: (0, i18n_exports._)("Major tick interval spacing"),
|
|
1284
|
+
option: "y2AxisMajorTickInterval",
|
|
1285
|
+
editor: "editor.number",
|
|
1286
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0)
|
|
1287
|
+
}
|
|
1288
|
+
],
|
|
1289
|
+
[
|
|
1290
|
+
{
|
|
1291
|
+
label: (0, i18n_exports._)("Minor gridlines"),
|
|
1292
|
+
option: "showY2MinorGridLines",
|
|
1293
|
+
editor: "editor.checkbox",
|
|
1294
|
+
showEditor: isTrellisOff
|
|
1295
|
+
}
|
|
1296
|
+
],
|
|
1297
|
+
[
|
|
1298
|
+
{
|
|
1299
|
+
label: (0, i18n_exports._)("Minor tick visibility"),
|
|
1300
|
+
option: "y2AxisMinorTickVisibility",
|
|
1301
|
+
editor: "editor.radioBar",
|
|
1302
|
+
editorProps: {
|
|
1303
|
+
values: [
|
|
1304
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
1305
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1306
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1307
|
+
]
|
|
1308
|
+
},
|
|
1309
|
+
showEditor: isTrellisOff
|
|
1310
|
+
}
|
|
1311
|
+
],
|
|
1312
|
+
[
|
|
1313
|
+
{
|
|
1314
|
+
label: (0, i18n_exports._)("Minor tick size (px)"),
|
|
1315
|
+
option: "y2AxisMinorTickSize",
|
|
1316
|
+
editor: "editor.slider",
|
|
1317
|
+
editorProps: {
|
|
1318
|
+
min: 0,
|
|
1319
|
+
max: 10,
|
|
1320
|
+
step: 1
|
|
1321
|
+
},
|
|
1322
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMinorTickVisibility === "show" || options.y2AxisMinorTickVisibility === "auto" || options.y2AxisMinorTickVisibility === void 0)
|
|
1323
|
+
}
|
|
1324
|
+
]
|
|
1325
|
+
]
|
|
1406
1326
|
};
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
/***/ }),
|
|
1410
|
-
/* 22 */,
|
|
1411
|
-
/* 23 */,
|
|
1412
|
-
/* 24 */,
|
|
1413
|
-
/* 25 */,
|
|
1414
|
-
/* 26 */,
|
|
1415
|
-
/* 27 */,
|
|
1416
|
-
/* 28 */,
|
|
1417
|
-
/* 29 */,
|
|
1418
|
-
/* 30 */,
|
|
1419
|
-
/* 31 */,
|
|
1420
|
-
/* 32 */,
|
|
1421
|
-
/* 33 */,
|
|
1422
|
-
/* 34 */,
|
|
1423
|
-
/* 35 */,
|
|
1424
|
-
/* 36 */,
|
|
1425
|
-
/* 37 */,
|
|
1426
|
-
/* 38 */,
|
|
1427
|
-
/* 39 */,
|
|
1428
|
-
/* 40 */,
|
|
1429
|
-
/* 41 */,
|
|
1430
|
-
/* 42 */,
|
|
1431
|
-
/* 43 */,
|
|
1432
|
-
/* 44 */,
|
|
1433
|
-
/* 45 */,
|
|
1434
|
-
/* 46 */,
|
|
1435
|
-
/* 47 */,
|
|
1436
|
-
/* 48 */,
|
|
1437
|
-
/* 49 */,
|
|
1438
|
-
/* 50 */,
|
|
1439
|
-
/* 51 */,
|
|
1440
|
-
/* 52 */
|
|
1441
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1442
|
-
|
|
1443
|
-
"use strict";
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
var _toConsumableArray = __webpack_require__(1);
|
|
1447
|
-
|
|
1448
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1449
|
-
value: true
|
|
1450
|
-
});
|
|
1451
|
-
|
|
1452
|
-
var visualization_schemas_1 = __webpack_require__(2);
|
|
1453
|
-
|
|
1454
|
-
var visualization_icons_1 = __webpack_require__(11);
|
|
1455
|
-
|
|
1456
|
-
var placeholders_1 = __webpack_require__(10);
|
|
1457
|
-
|
|
1458
|
-
var i18n_1 = __webpack_require__(0);
|
|
1459
|
-
|
|
1460
|
-
var pick_1 = __webpack_require__(8);
|
|
1461
|
-
|
|
1462
|
-
var variables_1 = __webpack_require__(9);
|
|
1463
|
-
|
|
1464
|
-
var AxesChartDataConfig_1 = __webpack_require__(14);
|
|
1465
|
-
|
|
1466
|
-
var AxesChartDataDisplay_1 = __webpack_require__(20);
|
|
1467
|
-
|
|
1468
|
-
var AxesChartColorAndStyle_1 = __webpack_require__(15);
|
|
1469
|
-
|
|
1470
|
-
var AxesChartLegend_1 = __webpack_require__(16);
|
|
1471
|
-
|
|
1472
|
-
var AxesChartXGridAndLabels_1 = __webpack_require__(17);
|
|
1473
|
-
|
|
1474
|
-
var AxesChartYGridAndLabels_1 = __webpack_require__(18);
|
|
1475
|
-
|
|
1476
|
-
var AxesChartY2GridAndLabels_1 = __webpack_require__(21);
|
|
1477
|
-
|
|
1478
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
1479
|
-
|
|
1480
|
-
var VizCategory_1 = __webpack_require__(7);
|
|
1481
|
-
|
|
1482
|
-
var configUtils_1 = __webpack_require__(3);
|
|
1327
|
+
var AxesChartY2GridAndLabels_default = axesChartY2GridAndLabels;
|
|
1483
1328
|
|
|
1329
|
+
// src/Line/config.ts
|
|
1484
1330
|
var dataContract = {
|
|
1485
|
-
requiredDataSources: [
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1331
|
+
requiredDataSources: [
|
|
1332
|
+
{
|
|
1333
|
+
name: "primary",
|
|
1334
|
+
description: "DataSource that powers the visualization"
|
|
1335
|
+
}
|
|
1336
|
+
],
|
|
1337
|
+
optionalDataSources: [
|
|
1338
|
+
{
|
|
1339
|
+
name: "annotation",
|
|
1340
|
+
description: "DataSource that populates event annotations"
|
|
1341
|
+
}
|
|
1342
|
+
],
|
|
1493
1343
|
initialRequestParams: {
|
|
1494
|
-
primary: {
|
|
1495
|
-
|
|
1496
|
-
count: 10000
|
|
1497
|
-
},
|
|
1498
|
-
annotation: {
|
|
1499
|
-
offset: 0,
|
|
1500
|
-
count: 10000
|
|
1501
|
-
}
|
|
1344
|
+
primary: { offset: 0, count: 1e4 },
|
|
1345
|
+
annotation: { offset: 0, count: 1e4 }
|
|
1502
1346
|
}
|
|
1503
1347
|
};
|
|
1504
1348
|
var size = {
|
|
@@ -1506,187 +1350,148 @@ var size = {
|
|
|
1506
1350
|
initialHeight: 300
|
|
1507
1351
|
};
|
|
1508
1352
|
var defaultContext = {};
|
|
1509
|
-
var
|
|
1510
|
-
defaultBackgroundColor:
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
light: variables_1.default.backgroundColor(props)
|
|
1515
|
-
},
|
|
1516
|
-
prisma: variables_1.default.backgroundColorSidebar(props)
|
|
1517
|
-
})(props);
|
|
1518
|
-
}
|
|
1519
|
-
};
|
|
1520
|
-
var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, AxesChartDataDisplay_1.AxesChartDataDisplayLine, {
|
|
1521
|
-
label: AxesChartColorAndStyle_1.default.label,
|
|
1522
|
-
layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout), [// [
|
|
1523
|
-
// {
|
|
1524
|
-
// label: _('Line dash style'),
|
|
1525
|
-
// option: 'lineDashStyle',
|
|
1526
|
-
// editor: 'editor.seriesLineTypes',
|
|
1527
|
-
// },
|
|
1528
|
-
// ],
|
|
1529
|
-
// [
|
|
1530
|
-
// {
|
|
1531
|
-
// label: _('Line dash styles by field name'),
|
|
1532
|
-
// option: 'lineDashStylesByField',
|
|
1533
|
-
// editor: 'editor.seriesLineTypesByField',
|
|
1534
|
-
// },
|
|
1535
|
-
// ],
|
|
1536
|
-
[{
|
|
1537
|
-
label: (0, i18n_1._)('Line width (px)'),
|
|
1538
|
-
option: 'lineWidth',
|
|
1539
|
-
editor: 'editor.slider',
|
|
1540
|
-
editorProps: {
|
|
1541
|
-
min: 0.5,
|
|
1542
|
-
max: 8.0,
|
|
1543
|
-
step: 0.5
|
|
1544
|
-
}
|
|
1545
|
-
}], [{
|
|
1546
|
-
label: (0, i18n_1._)('Line smoothing'),
|
|
1547
|
-
option: 'showLineSmoothing',
|
|
1548
|
-
editor: 'editor.toggle'
|
|
1549
|
-
}], [{
|
|
1550
|
-
label: (0, i18n_1._)('Marker display'),
|
|
1551
|
-
option: 'markerDisplay',
|
|
1552
|
-
editor: 'editor.radioBar',
|
|
1553
|
-
editorProps: {
|
|
1554
|
-
values: [{
|
|
1555
|
-
label: (0, i18n_1._)('Off'),
|
|
1556
|
-
value: 'off'
|
|
1557
|
-
}, {
|
|
1558
|
-
label: (0, i18n_1._)('Filled'),
|
|
1559
|
-
value: 'filled'
|
|
1560
|
-
}, {
|
|
1561
|
-
label: (0, i18n_1._)('Outlined'),
|
|
1562
|
-
value: 'outlined'
|
|
1563
|
-
}]
|
|
1564
|
-
}
|
|
1565
|
-
}], [{
|
|
1566
|
-
label: (0, i18n_1._)('Annotation colors'),
|
|
1567
|
-
option: 'annotationColor',
|
|
1568
|
-
editor: 'editor.columnSelector',
|
|
1569
|
-
editorProps: {
|
|
1570
|
-
dataSourceKey: 'annotation',
|
|
1571
|
-
supportsDSL: true,
|
|
1572
|
-
expectedDataPrimitive: ['series']
|
|
1573
|
-
}
|
|
1574
|
-
}]])
|
|
1575
|
-
}, {
|
|
1576
|
-
label: AxesChartLegend_1.default.label,
|
|
1577
|
-
layout: [[{
|
|
1578
|
-
label: (0, i18n_1._)('Legend display'),
|
|
1579
|
-
option: 'legendDisplay',
|
|
1580
|
-
editor: 'editor.select',
|
|
1581
|
-
editorProps: {
|
|
1582
|
-
values: [{
|
|
1583
|
-
label: (0, i18n_1._)('Right'),
|
|
1584
|
-
value: 'right'
|
|
1585
|
-
}, {
|
|
1586
|
-
label: (0, i18n_1._)('Left'),
|
|
1587
|
-
value: 'left'
|
|
1588
|
-
}, {
|
|
1589
|
-
label: (0, i18n_1._)('Top'),
|
|
1590
|
-
value: 'top'
|
|
1591
|
-
}, {
|
|
1592
|
-
label: (0, i18n_1._)('Bottom'),
|
|
1593
|
-
value: 'bottom'
|
|
1594
|
-
}, {
|
|
1595
|
-
label: (0, i18n_1._)('Off'),
|
|
1596
|
-
value: 'off'
|
|
1597
|
-
}],
|
|
1598
|
-
tooltip: (0, i18n_1._)('Legend mode must be "Standard" to configure legend display')
|
|
1353
|
+
var themes2 = {
|
|
1354
|
+
defaultBackgroundColor: (props) => pick_default({
|
|
1355
|
+
enterprise: {
|
|
1356
|
+
dark: variables_default.black(props),
|
|
1357
|
+
light: variables_default.backgroundColor(props)
|
|
1599
1358
|
},
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
option: 'legendTruncation',
|
|
1607
|
-
editor: 'editor.radioBar',
|
|
1608
|
-
editorProps: {
|
|
1609
|
-
values: [{
|
|
1610
|
-
label: (0, i18n_1._)('A...'),
|
|
1611
|
-
value: 'ellipsisEnd'
|
|
1612
|
-
}, {
|
|
1613
|
-
label: (0, i18n_1._)('A...Z'),
|
|
1614
|
-
value: 'ellipsisMiddle'
|
|
1615
|
-
}, {
|
|
1616
|
-
label: (0, i18n_1._)('...Z'),
|
|
1617
|
-
value: 'ellipsisStart'
|
|
1618
|
-
}, {
|
|
1619
|
-
label: (0, i18n_1._)('Off'),
|
|
1620
|
-
value: 'ellipsisOff'
|
|
1621
|
-
}]
|
|
1359
|
+
prisma: variables_default.backgroundColorSidebar(props)
|
|
1360
|
+
})(props),
|
|
1361
|
+
defaultFontColor: (props) => pick_default({
|
|
1362
|
+
enterprise: {
|
|
1363
|
+
dark: variables_default.textColor(props),
|
|
1364
|
+
light: variables_default.textColor(props)
|
|
1622
1365
|
},
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1366
|
+
prisma: variables_default.contentColorDefault(props)
|
|
1367
|
+
})(props)
|
|
1368
|
+
};
|
|
1369
|
+
var editorConfig = [
|
|
1370
|
+
AxesChartDataConfigAreaColumnLine,
|
|
1371
|
+
AxesChartDataDisplayLine,
|
|
1372
|
+
{
|
|
1373
|
+
label: AreaAxesChartColorAndStyleWithTrellis.label,
|
|
1374
|
+
layout: [
|
|
1375
|
+
...AreaAxesChartColorAndStyleWithTrellis.layout,
|
|
1376
|
+
// [
|
|
1377
|
+
// {
|
|
1378
|
+
// label: _('Line dash style'),
|
|
1379
|
+
// option: 'lineDashStyle',
|
|
1380
|
+
// editor: 'editor.seriesLineTypes',
|
|
1381
|
+
// },
|
|
1382
|
+
// ],
|
|
1383
|
+
// [
|
|
1384
|
+
// {
|
|
1385
|
+
// label: _('Line dash styles by field name'),
|
|
1386
|
+
// option: 'lineDashStylesByField',
|
|
1387
|
+
// editor: 'editor.seriesLineTypesByField',
|
|
1388
|
+
// },
|
|
1389
|
+
// ],
|
|
1390
|
+
[
|
|
1391
|
+
{
|
|
1392
|
+
label: (0, i18n_exports._)("Line width (px)"),
|
|
1393
|
+
option: "lineWidth",
|
|
1394
|
+
editor: "editor.slider",
|
|
1395
|
+
editorProps: {
|
|
1396
|
+
min: 0.5,
|
|
1397
|
+
max: 8,
|
|
1398
|
+
step: 0.5
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
],
|
|
1402
|
+
[
|
|
1403
|
+
{
|
|
1404
|
+
label: (0, i18n_exports._)("Line smoothing"),
|
|
1405
|
+
option: "showLineSmoothing",
|
|
1406
|
+
editor: "editor.toggle"
|
|
1407
|
+
}
|
|
1408
|
+
],
|
|
1409
|
+
[
|
|
1410
|
+
{
|
|
1411
|
+
label: (0, i18n_exports._)("Marker display"),
|
|
1412
|
+
option: "markerDisplay",
|
|
1413
|
+
editor: "editor.radioBar",
|
|
1414
|
+
editorProps: {
|
|
1415
|
+
values: [
|
|
1416
|
+
{
|
|
1417
|
+
label: (0, i18n_exports._)("Off"),
|
|
1418
|
+
value: "off"
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
label: (0, i18n_exports._)("Filled"),
|
|
1422
|
+
value: "filled"
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
label: (0, i18n_exports._)("Outlined"),
|
|
1426
|
+
value: "outlined"
|
|
1427
|
+
}
|
|
1428
|
+
]
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
],
|
|
1432
|
+
[
|
|
1433
|
+
{
|
|
1434
|
+
label: (0, i18n_exports._)("Annotation colors"),
|
|
1435
|
+
option: "annotationColor",
|
|
1436
|
+
editor: "editor.columnSelector",
|
|
1437
|
+
editorProps: {
|
|
1438
|
+
dataSourceKey: "annotation",
|
|
1439
|
+
supportsDSL: true,
|
|
1440
|
+
expectedDataPrimitive: ["series"]
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
]
|
|
1444
|
+
]
|
|
1445
|
+
},
|
|
1446
|
+
AxesChartLegendWithTrellisAndMode({ showLegendTooltip: true }),
|
|
1447
|
+
AxesChartXGridAndLabels_default,
|
|
1448
|
+
AxesChartYGridAndLabels_default,
|
|
1449
|
+
AxesChartY2GridAndLabels_default
|
|
1450
|
+
];
|
|
1646
1451
|
var config = {
|
|
1647
1452
|
/**
|
|
1648
1453
|
* unique viz key
|
|
1649
1454
|
*/
|
|
1650
|
-
key:
|
|
1651
|
-
|
|
1455
|
+
key: "splunk.line",
|
|
1652
1456
|
/**
|
|
1653
1457
|
* viz name
|
|
1654
1458
|
*/
|
|
1655
|
-
name: (0,
|
|
1656
|
-
category:
|
|
1657
|
-
|
|
1459
|
+
name: (0, i18n_exports._)("Line"),
|
|
1460
|
+
category: "Trends" /* TRENDS */,
|
|
1658
1461
|
/**
|
|
1659
1462
|
* viz icon
|
|
1660
1463
|
*/
|
|
1661
|
-
icon:
|
|
1662
|
-
placeholderIcon:
|
|
1663
|
-
dataContract
|
|
1664
|
-
size
|
|
1665
|
-
defaultContext
|
|
1666
|
-
optionsSchema:
|
|
1667
|
-
editorConfig
|
|
1464
|
+
icon: visualization_icons_exports.Line,
|
|
1465
|
+
placeholderIcon: placeholders_exports.Line,
|
|
1466
|
+
dataContract,
|
|
1467
|
+
size,
|
|
1468
|
+
defaultContext,
|
|
1469
|
+
optionsSchema: visualization_schemas_exports.lineOptionsSchema,
|
|
1470
|
+
editorConfig,
|
|
1668
1471
|
events: {
|
|
1669
|
-
|
|
1670
|
-
description:
|
|
1472
|
+
"legend.click": {
|
|
1473
|
+
description: "triggered when user clicks on chart legend"
|
|
1671
1474
|
},
|
|
1672
|
-
|
|
1673
|
-
description:
|
|
1475
|
+
"point.click": {
|
|
1476
|
+
description: "triggered when user clicks on a point in the line chart"
|
|
1674
1477
|
},
|
|
1675
|
-
|
|
1676
|
-
description:
|
|
1478
|
+
"range.select": {
|
|
1479
|
+
description: "triggered when user makes a selection"
|
|
1677
1480
|
},
|
|
1678
|
-
|
|
1679
|
-
description:
|
|
1481
|
+
"point.mouseover": {
|
|
1482
|
+
description: "triggered when user hovers over a data point"
|
|
1680
1483
|
},
|
|
1681
|
-
|
|
1682
|
-
description:
|
|
1484
|
+
"point.mouseout": {
|
|
1485
|
+
description: "triggered when user moves out of a data point"
|
|
1683
1486
|
}
|
|
1684
1487
|
},
|
|
1685
|
-
supports: [
|
|
1686
|
-
|
|
1488
|
+
supports: [
|
|
1489
|
+
"dynamic-options" /* DYNAMIC_OPTIONS */,
|
|
1490
|
+
"placeholder" /* PLACEHOLDER */,
|
|
1491
|
+
"downsampling" /* DOWNSAMPLING */,
|
|
1492
|
+
"trellis" /* TRELLIS */
|
|
1493
|
+
],
|
|
1494
|
+
themes: themes2
|
|
1687
1495
|
};
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
/***/ })
|
|
1691
|
-
/******/ ]);
|
|
1692
|
-
//# sourceMappingURL=Line.config.js.map
|
|
1496
|
+
var config_default = enhanceConfig(config);
|
|
1497
|
+
//# sourceMappingURL=Line.config.js.map
|