@splunk/visualizations 28.4.0 → 28.5.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 +28 -7
- package/Area.config.js.map +2 -2
- package/Area.js +106 -39
- package/Area.js.map +2 -2
- package/Bar.config.js +28 -7
- package/Bar.config.js.map +2 -2
- package/Bar.js +106 -39
- package/Bar.js.map +2 -2
- package/Bubble.config.js +4 -4
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +78 -30
- package/Bubble.js.map +2 -2
- package/CHANGELOG.external.md +89 -0
- package/ChoroplethSvg.js +74 -26
- package/ChoroplethSvg.js.map +2 -2
- package/Column.config.js +28 -7
- package/Column.config.js.map +2 -2
- package/Column.js +106 -39
- package/Column.js.map +2 -2
- package/Ellipse/config.d.ts.map +1 -1
- package/Ellipse.config.js +14 -5
- package/Ellipse.config.js.map +4 -4
- package/Ellipse.js +130 -73
- package/Ellipse.js.map +4 -4
- package/Events.js +74 -26
- package/Events.js.map +2 -2
- package/FillerGauge.js +234 -47
- package/FillerGauge.js.map +2 -2
- package/Image.js +74 -26
- package/Image.js.map +2 -2
- package/Line/lineUtils.d.ts.map +1 -1
- package/Line/mockdata/LineData.d.ts +95 -0
- package/Line/mockdata/LineData.d.ts.map +1 -1
- package/Line.config.js +28 -7
- package/Line.config.js.map +2 -2
- package/Line.js +122 -41
- package/Line.js.map +2 -2
- package/LinkGraph.js +74 -26
- package/LinkGraph.js.map +2 -2
- package/Map/PureMap/BubbleLayer.d.ts.map +1 -1
- package/Map/PureMap/ClusterLayer.d.ts.map +1 -1
- package/Map/PureMap/MapUtils.d.ts +2 -2
- package/Map/PureMap/MapUtils.d.ts.map +1 -1
- package/Map/PureMap/PureMap.d.ts.map +1 -1
- package/Map.js +111 -37
- package/Map.js.map +2 -2
- package/Markdown/config.d.ts.map +1 -1
- package/Markdown.config.js +14 -5
- package/Markdown.config.js.map +4 -4
- package/Markdown.js +91 -34
- package/Markdown.js.map +4 -4
- package/MarkerGauge.js +243 -56
- package/MarkerGauge.js.map +4 -4
- package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/Node.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/utils/dragUtils.d.ts +78 -0
- package/NetworkGraph/PureNetworkGraph/utils/dragUtils.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts +1 -2
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts.map +1 -1
- package/NetworkGraph.config.js.map +2 -2
- package/NetworkGraph.js +365 -105
- package/NetworkGraph.js.map +4 -4
- package/PERFORMANCE.md +23 -0
- package/ParallelCoordinates/ParallelCoordinates.d.ts +1 -46
- package/ParallelCoordinates/ParallelCoordinates.d.ts.map +1 -1
- package/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts +12 -58
- package/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts.map +1 -1
- package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts +1 -0
- package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts.map +1 -1
- package/ParallelCoordinates.js +150 -153
- package/ParallelCoordinates.js.map +4 -4
- package/Pie/Pie.d.ts.map +1 -1
- package/Pie/config.d.ts.map +1 -1
- package/Pie/pieUtils.d.ts +4 -0
- package/Pie/pieUtils.d.ts.map +1 -1
- package/Pie.config.js +16 -0
- package/Pie.config.js.map +2 -2
- package/Pie.js +118 -35
- package/Pie.js.map +2 -2
- package/Punchcard.js +74 -26
- package/Punchcard.js.map +2 -2
- package/Rectangle/config.d.ts.map +1 -1
- package/Rectangle.config.js +14 -5
- package/Rectangle.config.js.map +4 -4
- package/Rectangle.js +92 -35
- package/Rectangle.js.map +4 -4
- package/Sankey/PureSankey/PureSankey.d.ts +26 -72
- package/Sankey/PureSankey/PureSankey.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyLink.d.ts +3 -19
- package/Sankey/PureSankey/SankeyLink.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyNode.d.ts +3 -20
- package/Sankey/PureSankey/SankeyNode.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyTooltip.d.ts +3 -24
- package/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -1
- package/Sankey.js +270 -336
- package/Sankey.js.map +2 -2
- package/Scatter.config.js +168 -147
- package/Scatter.config.js.map +4 -4
- package/Scatter.js +246 -179
- package/Scatter.js.map +4 -4
- package/SingleValue.js +96 -75
- package/SingleValue.js.map +2 -2
- package/SingleValueIcon/config.d.ts.map +1 -1
- package/SingleValueIcon.config.js +14 -5
- package/SingleValueIcon.config.js.map +4 -4
- package/SingleValueIcon.js +118 -76
- package/SingleValueIcon.js.map +4 -4
- package/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +1 -1
- package/SingleValueRadial.js +95 -76
- package/SingleValueRadial.js.map +2 -2
- package/Table/Table.d.ts.map +1 -1
- package/Table/hooks.d.ts +2 -0
- package/Table/hooks.d.ts.map +1 -1
- package/Table.js +95 -49
- package/Table.js.map +2 -2
- package/Timeline/PureTimeline/PureTimeline.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/TimelinePlugin.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts +2 -1
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -1
- package/Timeline.js +154 -54
- package/Timeline.js.map +2 -2
- package/common/GaugeMajorTicks.js +150 -13
- package/common/GaugeMajorTicks.js.map +4 -4
- package/common/GaugeValueMarker.js +84 -17
- package/common/GaugeValueMarker.js.map +4 -4
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.d.ts.map +1 -1
- package/common/OverviewDoc.js +2 -2
- package/common/OverviewDoc.js.map +2 -2
- package/common/TimeSeriesChartWrapper.d.ts.map +1 -1
- package/common/TimeSeriesChartWrapper.js +72 -24
- package/common/TimeSeriesChartWrapper.js.map +2 -2
- package/common/chartingUtils.d.ts +9 -3
- package/common/chartingUtils.d.ts.map +1 -1
- package/common/chartingUtils.js +21 -16
- package/common/chartingUtils.js.map +2 -2
- package/common/editorConfig/AxesChartDataConfig.d.ts +3 -3
- package/common/editorConfig/AxesChartDataConfig.d.ts.map +1 -1
- package/common/editorConfig/AxesChartDataDisplay.d.ts +4 -0
- package/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -1
- package/common/editorConfig/AxesChartLegend.d.ts.map +1 -1
- package/common/gaugeUtils.d.ts +37 -0
- package/common/gaugeUtils.d.ts.map +1 -1
- package/common/gaugeUtils.js +152 -2
- package/common/gaugeUtils.js.map +4 -4
- package/common/hocs/mockdata/trellisData.d.ts +119 -0
- package/common/hocs/mockdata/trellisData.d.ts.map +1 -1
- package/common/interfaces/Overview.d.ts +1 -0
- package/common/interfaces/Overview.d.ts.map +1 -1
- package/common/interfaces/VizConfig.d.ts +2 -1
- package/common/interfaces/VizConfig.d.ts.map +1 -1
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/trellisUtils.d.ts.map +1 -1
- package/common/utils/trellisUtils.js +4 -6
- package/common/utils/trellisUtils.js.map +2 -2
- package/common/withDashboardViz.js +74 -26
- package/common/withDashboardViz.js.map +2 -2
- package/package.json +36 -36
package/Scatter.config.js
CHANGED
|
@@ -248,7 +248,7 @@ var TrellisBackgroundColorEditor = {
|
|
|
248
248
|
showEditor: isTrellisEnabled
|
|
249
249
|
};
|
|
250
250
|
|
|
251
|
-
// src/common/editorConfig/
|
|
251
|
+
// src/common/editorConfig/AxesChartDataConfig.ts
|
|
252
252
|
var isTrellisFeatureFlagOn2 = ({ featureFlags }) => {
|
|
253
253
|
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
254
254
|
};
|
|
@@ -256,146 +256,8 @@ var isTrellisEnabled2 = ({ options, featureFlags }) => {
|
|
|
256
256
|
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
257
257
|
return isTrellisFeatureFlagOn2({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
258
258
|
};
|
|
259
|
-
var
|
|
260
|
-
|
|
261
|
-
layout: [
|
|
262
|
-
[
|
|
263
|
-
{
|
|
264
|
-
label: (0, i18n_exports._)("Stack mode"),
|
|
265
|
-
option: "stackMode",
|
|
266
|
-
editor: "editor.select",
|
|
267
|
-
editorProps: {
|
|
268
|
-
values: [
|
|
269
|
-
{ label: (0, i18n_exports._)("Not stacked"), value: "auto" },
|
|
270
|
-
{ label: (0, i18n_exports._)("Stacked"), value: "stacked" },
|
|
271
|
-
{ label: (0, i18n_exports._)("Stacked 100%"), value: "stacked100" }
|
|
272
|
-
]
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
[
|
|
277
|
-
{
|
|
278
|
-
label: (0, i18n_exports._)("Null value display"),
|
|
279
|
-
option: "nullValueDisplay",
|
|
280
|
-
editor: "editor.radioBar",
|
|
281
|
-
editorProps: {
|
|
282
|
-
values: [
|
|
283
|
-
{ label: (0, i18n_exports._)("Gaps"), value: "gaps" },
|
|
284
|
-
{ label: (0, i18n_exports._)("Zero"), value: "zero" },
|
|
285
|
-
{ label: (0, i18n_exports._)("Connect"), value: "connect" }
|
|
286
|
-
]
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
],
|
|
290
|
-
[
|
|
291
|
-
{
|
|
292
|
-
label: (0, i18n_exports._)("Data value display"),
|
|
293
|
-
option: "dataValuesDisplay",
|
|
294
|
-
editor: "editor.radioBar",
|
|
295
|
-
editorProps: {
|
|
296
|
-
values: [
|
|
297
|
-
{ label: (0, i18n_exports._)("Off"), value: "off" },
|
|
298
|
-
{ label: (0, i18n_exports._)("All"), value: "all" },
|
|
299
|
-
{ label: (0, i18n_exports._)("Min/Max"), value: "minmax" }
|
|
300
|
-
]
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
],
|
|
304
|
-
[
|
|
305
|
-
{
|
|
306
|
-
label: (0, i18n_exports._)("Overlay fields"),
|
|
307
|
-
option: "overlayFields",
|
|
308
|
-
editor: "editor.columnMultiSelectionByFieldNameEditor",
|
|
309
|
-
editorProps: {
|
|
310
|
-
filterByTypes: ["number"]
|
|
311
|
-
},
|
|
312
|
-
isDisabled: isTrellisEnabled2
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
[
|
|
316
|
-
{
|
|
317
|
-
label: (0, i18n_exports._)("Split series"),
|
|
318
|
-
option: "showSplitSeries",
|
|
319
|
-
editor: "editor.toggle"
|
|
320
|
-
}
|
|
321
|
-
],
|
|
322
|
-
[
|
|
323
|
-
{
|
|
324
|
-
label: (0, i18n_exports._)("Independent y-axis for split series"),
|
|
325
|
-
option: "showIndependentYRanges",
|
|
326
|
-
editor: "editor.checkbox",
|
|
327
|
-
showEditor: ({ options }) => options.showSplitSeries
|
|
328
|
-
}
|
|
329
|
-
],
|
|
330
|
-
...TimechartTrellisEditorConfig
|
|
331
|
-
]
|
|
332
|
-
};
|
|
333
|
-
var AxesChartDataDisplayBar = {
|
|
334
|
-
label: AxesChartDataDisplayBase.label,
|
|
335
|
-
layout: [
|
|
336
|
-
AxesChartDataDisplayBase.layout[0],
|
|
337
|
-
// remove null value display editor at index 1
|
|
338
|
-
...AxesChartDataDisplayBase.layout.slice(2)
|
|
339
|
-
]
|
|
340
|
-
};
|
|
341
|
-
var AxesChartDataDisplayScatter = {
|
|
342
|
-
label: AxesChartDataDisplayBase.label,
|
|
343
|
-
layout: [
|
|
344
|
-
...TrellisEditorConfig,
|
|
345
|
-
[
|
|
346
|
-
{
|
|
347
|
-
label: (0, i18n_exports._)("Shared y-axis scale"),
|
|
348
|
-
option: "trellisSharedScale",
|
|
349
|
-
editor: "editor.checkbox",
|
|
350
|
-
showEditor: isTrellisEnabled2
|
|
351
|
-
}
|
|
352
|
-
]
|
|
353
|
-
]
|
|
354
|
-
};
|
|
355
|
-
var AxesChartDataDisplayColumn = {
|
|
356
|
-
label: AxesChartDataDisplayBase.label,
|
|
357
|
-
layout: [
|
|
358
|
-
AxesChartDataDisplayBase.layout[0],
|
|
359
|
-
// remove null value display and add data value display
|
|
360
|
-
AxesChartDataDisplayBase.layout[2],
|
|
361
|
-
[
|
|
362
|
-
{
|
|
363
|
-
label: (0, i18n_exports._)("Show tooltip on hover"),
|
|
364
|
-
option: "showTooltip",
|
|
365
|
-
editor: "editor.checkbox"
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
...AxesChartDataDisplayBase.layout.slice(3),
|
|
369
|
-
[
|
|
370
|
-
{
|
|
371
|
-
label: (0, i18n_exports._)("Column grouping mode"),
|
|
372
|
-
option: "columnGrouping",
|
|
373
|
-
editor: "editor.radioBar",
|
|
374
|
-
editorProps: {
|
|
375
|
-
values: [
|
|
376
|
-
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
377
|
-
{ label: (0, i18n_exports._)("Overlay"), value: "overlay" }
|
|
378
|
-
]
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
]
|
|
382
|
-
]
|
|
383
|
-
};
|
|
384
|
-
var AxesChartDataDisplayLine = {
|
|
385
|
-
label: AxesChartDataDisplayBase.label,
|
|
386
|
-
layout: [
|
|
387
|
-
// remove stacked mode editor
|
|
388
|
-
...AxesChartDataDisplayBase.layout.slice(1)
|
|
389
|
-
]
|
|
390
|
-
};
|
|
391
|
-
|
|
392
|
-
// src/common/editorConfig/AxesChartDataConfig.ts
|
|
393
|
-
var isTrellisFeatureFlagOn3 = ({ featureFlags }) => {
|
|
394
|
-
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
395
|
-
};
|
|
396
|
-
var isTrellisEnabled3 = ({ options, featureFlags }) => {
|
|
397
|
-
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
398
|
-
return isTrellisFeatureFlagOn3({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
259
|
+
var isAcceleratedRenderFeatureFlagOn = ({ featureFlags }) => {
|
|
260
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableAcceleratedRender);
|
|
399
261
|
};
|
|
400
262
|
var AxesChartDataConfig = {
|
|
401
263
|
label: (0, i18n_exports._)("Data configurations"),
|
|
@@ -458,7 +320,7 @@ var AxesChartDataConfigBar = {
|
|
|
458
320
|
supportsDSL: true,
|
|
459
321
|
expectedDataPrimitive: ["series", "frame"]
|
|
460
322
|
},
|
|
461
|
-
isDisabled:
|
|
323
|
+
isDisabled: isTrellisEnabled2
|
|
462
324
|
}
|
|
463
325
|
])
|
|
464
326
|
};
|
|
@@ -530,9 +392,6 @@ var AxesChartDataConfigBubble = {
|
|
|
530
392
|
}
|
|
531
393
|
])
|
|
532
394
|
};
|
|
533
|
-
var isAcceleratedRenderFeatureFlagOn = ({ featureFlags }) => {
|
|
534
|
-
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableAcceleratedRender);
|
|
535
|
-
};
|
|
536
395
|
var AcceleratedRenderEditorLayout = [
|
|
537
396
|
[
|
|
538
397
|
{
|
|
@@ -542,7 +401,7 @@ var AcceleratedRenderEditorLayout = [
|
|
|
542
401
|
showEditor: isAcceleratedRenderFeatureFlagOn,
|
|
543
402
|
editorProps: {
|
|
544
403
|
help: (0, i18n_exports._)(
|
|
545
|
-
"Render visualizations faster for large datasets.
|
|
404
|
+
"Render visualizations faster for large datasets. Split series is not available in this mode."
|
|
546
405
|
),
|
|
547
406
|
helpFormat: "under"
|
|
548
407
|
// helpTextLink: {
|
|
@@ -587,6 +446,168 @@ var AxesChartDataConfigLine = __spreadProps(__spreadValues({}, AxesChartDataConf
|
|
|
587
446
|
layout: [...AcceleratedRenderEditorLayout, ...AxesChartDataConfigAreaColumnLine.layout]
|
|
588
447
|
});
|
|
589
448
|
|
|
449
|
+
// src/common/editorConfig/AxesChartDataDisplay.ts
|
|
450
|
+
var isTrellisFeatureFlagOn3 = ({ featureFlags }) => {
|
|
451
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
452
|
+
};
|
|
453
|
+
var isTrellisEnabled3 = ({ options, featureFlags }) => {
|
|
454
|
+
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
455
|
+
return isTrellisFeatureFlagOn3({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
456
|
+
};
|
|
457
|
+
var isAcceleratedRenderEnabled = ({ options, featureFlags }) => {
|
|
458
|
+
const { acceleratedRender } = options;
|
|
459
|
+
return isAcceleratedRenderFeatureFlagOn({ featureFlags }) && acceleratedRender;
|
|
460
|
+
};
|
|
461
|
+
var AxesChartDataDisplayBase = {
|
|
462
|
+
label: (0, i18n_exports._)("Data display"),
|
|
463
|
+
layout: [
|
|
464
|
+
[
|
|
465
|
+
{
|
|
466
|
+
label: (0, i18n_exports._)("Stack mode"),
|
|
467
|
+
option: "stackMode",
|
|
468
|
+
editor: "editor.select",
|
|
469
|
+
editorProps: {
|
|
470
|
+
values: [
|
|
471
|
+
{ label: (0, i18n_exports._)("Not stacked"), value: "auto" },
|
|
472
|
+
{ label: (0, i18n_exports._)("Stacked"), value: "stacked" },
|
|
473
|
+
{ label: (0, i18n_exports._)("Stacked 100%"), value: "stacked100" }
|
|
474
|
+
]
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
[
|
|
479
|
+
{
|
|
480
|
+
label: (0, i18n_exports._)("Null value display"),
|
|
481
|
+
option: "nullValueDisplay",
|
|
482
|
+
editor: "editor.radioBar",
|
|
483
|
+
editorProps: {
|
|
484
|
+
values: [
|
|
485
|
+
{ label: (0, i18n_exports._)("Gaps"), value: "gaps" },
|
|
486
|
+
{ label: (0, i18n_exports._)("Zero"), value: "zero" },
|
|
487
|
+
{ label: (0, i18n_exports._)("Connect"), value: "connect" }
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
[
|
|
493
|
+
{
|
|
494
|
+
label: (0, i18n_exports._)("Data value display"),
|
|
495
|
+
option: "dataValuesDisplay",
|
|
496
|
+
editor: "editor.radioBar",
|
|
497
|
+
editorProps: {
|
|
498
|
+
values: [
|
|
499
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" },
|
|
500
|
+
{ label: (0, i18n_exports._)("All"), value: "all" },
|
|
501
|
+
{ label: (0, i18n_exports._)("Min/Max"), value: "minmax" }
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
],
|
|
506
|
+
[
|
|
507
|
+
{
|
|
508
|
+
label: (0, i18n_exports._)("Overlay fields"),
|
|
509
|
+
option: "overlayFields",
|
|
510
|
+
editor: "editor.columnMultiSelectionByFieldNameEditor",
|
|
511
|
+
editorProps: {
|
|
512
|
+
filterByTypes: ["number"]
|
|
513
|
+
},
|
|
514
|
+
isDisabled: isTrellisEnabled3
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
[
|
|
518
|
+
{
|
|
519
|
+
label: (0, i18n_exports._)("Split series"),
|
|
520
|
+
option: "showSplitSeries",
|
|
521
|
+
editor: "editor.toggle",
|
|
522
|
+
isDisabled: isAcceleratedRenderEnabled
|
|
523
|
+
}
|
|
524
|
+
],
|
|
525
|
+
[
|
|
526
|
+
{
|
|
527
|
+
label: (0, i18n_exports._)("Independent y-axis for split series"),
|
|
528
|
+
option: "showIndependentYRanges",
|
|
529
|
+
editor: "editor.checkbox",
|
|
530
|
+
showEditor: ({ options, featureFlags }) => options.showSplitSeries && !isAcceleratedRenderEnabled({ options, featureFlags })
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
[
|
|
534
|
+
{
|
|
535
|
+
label: (0, i18n_exports._)("Step position"),
|
|
536
|
+
option: "stepPosition",
|
|
537
|
+
editor: "editor.radioBar",
|
|
538
|
+
editorProps: {
|
|
539
|
+
values: [
|
|
540
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" },
|
|
541
|
+
{ label: (0, i18n_exports._)("Before"), value: "before" },
|
|
542
|
+
{ label: (0, i18n_exports._)("After"), value: "after" }
|
|
543
|
+
]
|
|
544
|
+
},
|
|
545
|
+
showEditor: ({ options, featureFlags }) => isAcceleratedRenderEnabled({ options, featureFlags })
|
|
546
|
+
// step position is only supported when accelerated render is enabled
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
...TimechartTrellisEditorConfig
|
|
550
|
+
]
|
|
551
|
+
};
|
|
552
|
+
var AxesChartDataDisplayBar = {
|
|
553
|
+
label: AxesChartDataDisplayBase.label,
|
|
554
|
+
layout: [
|
|
555
|
+
AxesChartDataDisplayBase.layout[0],
|
|
556
|
+
// remove null value display editor at index 1
|
|
557
|
+
...AxesChartDataDisplayBase.layout.slice(2)
|
|
558
|
+
]
|
|
559
|
+
};
|
|
560
|
+
var AxesChartDataDisplayScatter = {
|
|
561
|
+
label: AxesChartDataDisplayBase.label,
|
|
562
|
+
layout: [
|
|
563
|
+
...TrellisEditorConfig,
|
|
564
|
+
[
|
|
565
|
+
{
|
|
566
|
+
label: (0, i18n_exports._)("Shared y-axis scale"),
|
|
567
|
+
option: "trellisSharedScale",
|
|
568
|
+
editor: "editor.checkbox",
|
|
569
|
+
showEditor: isTrellisEnabled3
|
|
570
|
+
}
|
|
571
|
+
]
|
|
572
|
+
]
|
|
573
|
+
};
|
|
574
|
+
var AxesChartDataDisplayColumn = {
|
|
575
|
+
label: AxesChartDataDisplayBase.label,
|
|
576
|
+
layout: [
|
|
577
|
+
AxesChartDataDisplayBase.layout[0],
|
|
578
|
+
// remove null value display and add data value display
|
|
579
|
+
AxesChartDataDisplayBase.layout[2],
|
|
580
|
+
[
|
|
581
|
+
{
|
|
582
|
+
label: (0, i18n_exports._)("Show tooltip on hover"),
|
|
583
|
+
option: "showTooltip",
|
|
584
|
+
editor: "editor.checkbox"
|
|
585
|
+
}
|
|
586
|
+
],
|
|
587
|
+
...AxesChartDataDisplayBase.layout.slice(3),
|
|
588
|
+
[
|
|
589
|
+
{
|
|
590
|
+
label: (0, i18n_exports._)("Column grouping mode"),
|
|
591
|
+
option: "columnGrouping",
|
|
592
|
+
editor: "editor.radioBar",
|
|
593
|
+
editorProps: {
|
|
594
|
+
values: [
|
|
595
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
596
|
+
{ label: (0, i18n_exports._)("Overlay"), value: "overlay" }
|
|
597
|
+
]
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
]
|
|
601
|
+
]
|
|
602
|
+
};
|
|
603
|
+
var AxesChartDataDisplayLine = {
|
|
604
|
+
label: AxesChartDataDisplayBase.label,
|
|
605
|
+
layout: [
|
|
606
|
+
// remove stacked mode editor
|
|
607
|
+
...AxesChartDataDisplayBase.layout.slice(1)
|
|
608
|
+
]
|
|
609
|
+
};
|
|
610
|
+
|
|
590
611
|
// src/common/editorConfig/AxesChartXGridAndLabels.ts
|
|
591
612
|
var AxesChartXGridAndLabelsCommon = {
|
|
592
613
|
label: (0, i18n_exports._)("X-axis grid and labels"),
|
|
@@ -982,7 +1003,7 @@ var AxesChartLegendWithTrellisAndMode = ({
|
|
|
982
1003
|
{ label: (0, i18n_exports._)("Bottom"), value: "bottom" },
|
|
983
1004
|
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
984
1005
|
],
|
|
985
|
-
tooltip: showLegendTooltip
|
|
1006
|
+
tooltip: showLegendTooltip ? (0, i18n_exports._)('Legend mode must be "Standard" to configure legend display') : void 0
|
|
986
1007
|
},
|
|
987
1008
|
isDisabled: showLegendTooltip ? ({ options }) => options.legendMode === "seriesCompare" : void 0,
|
|
988
1009
|
overrideDefaultValue: ({ options }) => (options == null ? void 0 : options.splitByLayout) === "trellis" ? "off" : "right"
|