@splunk/visualizations 28.4.0 → 28.5.1
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 +109 -39
- package/Area.js.map +2 -2
- package/Bar.config.js +28 -7
- package/Bar.config.js.map +2 -2
- package/Bar.js +109 -39
- package/Bar.js.map +2 -2
- package/Bubble.config.js +4 -4
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +81 -30
- package/Bubble.js.map +2 -2
- package/CHANGELOG.external.md +98 -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 +109 -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 +125 -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.d.ts.map +1 -1
- package/NetworkGraph.config.js +1 -0
- package/NetworkGraph.config.js.map +2 -2
- package/NetworkGraph.js +366 -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 +121 -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 +249 -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/Charting.d.ts.map +1 -1
- package/common/Charting.js +3 -0
- package/common/Charting.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/ParallelCoordinates.js
CHANGED
|
@@ -98,95 +98,86 @@ var defaultImport3 = __toESM(require("d3-scale"));
|
|
|
98
98
|
__reExport(d3_scale_exports, require("d3-scale"));
|
|
99
99
|
var d3_scale_default = "default" in defaultImport3 ? defaultImport3.default : defaultImport3;
|
|
100
100
|
|
|
101
|
-
// esm-externals:prop-types
|
|
102
|
-
var prop_types_exports = {};
|
|
103
|
-
__export(prop_types_exports, {
|
|
104
|
-
default: () => prop_types_default
|
|
105
|
-
});
|
|
106
|
-
var defaultImport4 = __toESM(require("prop-types"));
|
|
107
|
-
__reExport(prop_types_exports, require("prop-types"));
|
|
108
|
-
var prop_types_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
|
|
109
|
-
|
|
110
101
|
// esm-externals:@splunk/ui-utils/i18n
|
|
111
102
|
var i18n_exports = {};
|
|
112
103
|
__export(i18n_exports, {
|
|
113
104
|
default: () => i18n_default
|
|
114
105
|
});
|
|
115
|
-
var
|
|
106
|
+
var defaultImport4 = __toESM(require("@splunk/ui-utils/i18n"));
|
|
116
107
|
__reExport(i18n_exports, require("@splunk/ui-utils/i18n"));
|
|
117
|
-
var i18n_default = "default" in
|
|
108
|
+
var i18n_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
|
|
118
109
|
|
|
119
110
|
// esm-externals:@splunk/visualizations-shared/Message
|
|
120
111
|
var Message_exports = {};
|
|
121
112
|
__export(Message_exports, {
|
|
122
113
|
default: () => Message_default
|
|
123
114
|
});
|
|
124
|
-
var
|
|
115
|
+
var defaultImport5 = __toESM(require("@splunk/visualizations-shared/Message"));
|
|
125
116
|
__reExport(Message_exports, require("@splunk/visualizations-shared/Message"));
|
|
126
|
-
var Message_default = "default" in
|
|
117
|
+
var Message_default = "default" in defaultImport5 ? defaultImport5.default : defaultImport5;
|
|
127
118
|
|
|
128
119
|
// esm-externals:@splunk/visualizations-shared/colorUtils
|
|
129
120
|
var colorUtils_exports = {};
|
|
130
121
|
__export(colorUtils_exports, {
|
|
131
122
|
default: () => colorUtils_default
|
|
132
123
|
});
|
|
133
|
-
var
|
|
124
|
+
var defaultImport6 = __toESM(require("@splunk/visualizations-shared/colorUtils"));
|
|
134
125
|
__reExport(colorUtils_exports, require("@splunk/visualizations-shared/colorUtils"));
|
|
135
|
-
var colorUtils_default = "default" in
|
|
126
|
+
var colorUtils_default = "default" in defaultImport6 ? defaultImport6.default : defaultImport6;
|
|
136
127
|
|
|
137
128
|
// esm-externals:styled-components
|
|
138
129
|
var styled_components_exports = {};
|
|
139
130
|
__export(styled_components_exports, {
|
|
140
131
|
default: () => styled_components_default
|
|
141
132
|
});
|
|
142
|
-
var
|
|
133
|
+
var defaultImport7 = __toESM(require("styled-components"));
|
|
143
134
|
__reExport(styled_components_exports, require("styled-components"));
|
|
144
|
-
var styled_components_default = "default" in
|
|
135
|
+
var styled_components_default = "default" in defaultImport7 ? defaultImport7.default : defaultImport7;
|
|
145
136
|
|
|
146
137
|
// esm-externals:d3-selection
|
|
147
138
|
var d3_selection_exports = {};
|
|
148
139
|
__export(d3_selection_exports, {
|
|
149
140
|
default: () => d3_selection_default
|
|
150
141
|
});
|
|
151
|
-
var
|
|
142
|
+
var defaultImport8 = __toESM(require("d3-selection"));
|
|
152
143
|
__reExport(d3_selection_exports, require("d3-selection"));
|
|
153
|
-
var d3_selection_default = "default" in
|
|
144
|
+
var d3_selection_default = "default" in defaultImport8 ? defaultImport8.default : defaultImport8;
|
|
154
145
|
|
|
155
146
|
// esm-externals:d3-brush
|
|
156
147
|
var d3_brush_exports = {};
|
|
157
148
|
__export(d3_brush_exports, {
|
|
158
149
|
default: () => d3_brush_default
|
|
159
150
|
});
|
|
160
|
-
var
|
|
151
|
+
var defaultImport9 = __toESM(require("d3-brush"));
|
|
161
152
|
__reExport(d3_brush_exports, require("d3-brush"));
|
|
162
|
-
var d3_brush_default = "default" in
|
|
153
|
+
var d3_brush_default = "default" in defaultImport9 ? defaultImport9.default : defaultImport9;
|
|
163
154
|
|
|
164
155
|
// esm-externals:d3-axis
|
|
165
156
|
var d3_axis_exports = {};
|
|
166
157
|
__export(d3_axis_exports, {
|
|
167
158
|
default: () => d3_axis_default
|
|
168
159
|
});
|
|
169
|
-
var
|
|
160
|
+
var defaultImport10 = __toESM(require("d3-axis"));
|
|
170
161
|
__reExport(d3_axis_exports, require("d3-axis"));
|
|
171
|
-
var d3_axis_default = "default" in
|
|
162
|
+
var d3_axis_default = "default" in defaultImport10 ? defaultImport10.default : defaultImport10;
|
|
172
163
|
|
|
173
164
|
// esm-externals:d3-drag
|
|
174
165
|
var d3_drag_exports = {};
|
|
175
166
|
__export(d3_drag_exports, {
|
|
176
167
|
default: () => d3_drag_default
|
|
177
168
|
});
|
|
178
|
-
var
|
|
169
|
+
var defaultImport11 = __toESM(require("d3-drag"));
|
|
179
170
|
__reExport(d3_drag_exports, require("d3-drag"));
|
|
180
|
-
var d3_drag_default = "default" in
|
|
171
|
+
var d3_drag_default = "default" in defaultImport11 ? defaultImport11.default : defaultImport11;
|
|
181
172
|
|
|
182
173
|
// esm-externals:chroma-js
|
|
183
174
|
var chroma_js_exports = {};
|
|
184
175
|
__export(chroma_js_exports, {
|
|
185
176
|
default: () => chroma_js_default
|
|
186
177
|
});
|
|
187
|
-
var
|
|
178
|
+
var defaultImport12 = __toESM(require("chroma-js"));
|
|
188
179
|
__reExport(chroma_js_exports, require("chroma-js"));
|
|
189
|
-
var chroma_js_default = "default" in
|
|
180
|
+
var chroma_js_default = "default" in defaultImport12 ? defaultImport12.default : defaultImport12;
|
|
190
181
|
|
|
191
182
|
// src/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesCanvas.tsx
|
|
192
183
|
var ParallelCoordinatesCanvas = (_a) => {
|
|
@@ -397,6 +388,10 @@ var ParallelCoordinatesPrompt = ({
|
|
|
397
388
|
var ParallelCoordinatesPrompt_default = ParallelCoordinatesPrompt;
|
|
398
389
|
|
|
399
390
|
// src/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.tsx
|
|
391
|
+
var isDataPointActive = (d, yPositionScale, selections) => Array.from(selections).every(([activeKey, [max, min]]) => {
|
|
392
|
+
const newP = yPositionScale[activeKey].ticks ? d[activeKey] : yPositionScale[activeKey](d[activeKey]);
|
|
393
|
+
return newP >= min && newP <= max;
|
|
394
|
+
});
|
|
400
395
|
var ChartDiv = styled_components_default.div`
|
|
401
396
|
background-color: ${(props) => props.backgroundColor};
|
|
402
397
|
width: ${(props) => props.width + props.margin.left + props.margin.right}px;
|
|
@@ -550,17 +545,7 @@ var ParallelCoordinatesChart = (_a) => {
|
|
|
550
545
|
} else {
|
|
551
546
|
selections.set(key, [selection[1], selection[0]]);
|
|
552
547
|
}
|
|
553
|
-
|
|
554
|
-
data.forEach((d) => {
|
|
555
|
-
const active = Array.from(selections).every(([activeKey, [max, min]]) => {
|
|
556
|
-
const newP = yPositionScale[activeKey].ticks ? d[activeKey] : yPositionScale[activeKey](d[activeKey]);
|
|
557
|
-
return newP >= min && newP <= max;
|
|
558
|
-
});
|
|
559
|
-
if (active) {
|
|
560
|
-
selected.push(d);
|
|
561
|
-
}
|
|
562
|
-
});
|
|
563
|
-
setSelectedData(selected);
|
|
548
|
+
setSelectedData(data.filter((d) => isDataPointActive(d, yPositionScale, selections)));
|
|
564
549
|
};
|
|
565
550
|
brush.on("start", brushStart).on("brush end", brushed);
|
|
566
551
|
g.append("g").attr("class", "brush").each((_d, i, nodes) => {
|
|
@@ -645,29 +630,27 @@ var ParallelCoordinatesChart = (_a) => {
|
|
|
645
630
|
var ParallelCoordinatesChart_default = ParallelCoordinatesChart;
|
|
646
631
|
|
|
647
632
|
// src/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.tsx
|
|
648
|
-
var PureParallelCoordinates = (
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
mode
|
|
670
|
-
} = props;
|
|
633
|
+
var PureParallelCoordinates = ({
|
|
634
|
+
width = 700,
|
|
635
|
+
height = 400,
|
|
636
|
+
columns = [],
|
|
637
|
+
fields = null,
|
|
638
|
+
showNullAxis = true,
|
|
639
|
+
lineColor = "#7B56DB",
|
|
640
|
+
backgroundColor = "#0b0c0e",
|
|
641
|
+
axisLineHighlightColor = "rgba(255, 255, 255, 0.98)",
|
|
642
|
+
axisLineColor = "rgb(129, 130, 133)",
|
|
643
|
+
axisTitleColor = "rgba(255, 255, 255, 0.7)",
|
|
644
|
+
axisLabelColor = "rgba(255, 255, 255, 0.7)",
|
|
645
|
+
lineOpacity = 0.5,
|
|
646
|
+
filterButtonDisabledColor = "rgba(255, 255, 255, 0.3)",
|
|
647
|
+
filterButtonActiveColor = "#3993FF",
|
|
648
|
+
filterTextColor = "rgba(255, 255, 255, 0.7)",
|
|
649
|
+
truncatedTextColor = "rgba(255, 255, 255, 0.5)",
|
|
650
|
+
filterSelectionColor = "#FFFFFF",
|
|
651
|
+
textShadowColor = "#111215",
|
|
652
|
+
mode
|
|
653
|
+
}) => {
|
|
671
654
|
const minWidth = 200;
|
|
672
655
|
const minHeight = 150;
|
|
673
656
|
if (Number(width) < minWidth || Number(height) < minHeight) {
|
|
@@ -733,7 +716,7 @@ var PureParallelCoordinates = (_a) => {
|
|
|
733
716
|
showNullAxis,
|
|
734
717
|
nullOffsetHeight,
|
|
735
718
|
nullAxisScale,
|
|
736
|
-
lineColor: (0, colorUtils_exports.isColor)(lineColor) ? lineColor :
|
|
719
|
+
lineColor: (0, colorUtils_exports.isColor)(lineColor) ? lineColor : "#7B56DB",
|
|
737
720
|
lineOpacity,
|
|
738
721
|
axisLineHighlightColor,
|
|
739
722
|
axisLineColor,
|
|
@@ -750,49 +733,6 @@ var PureParallelCoordinates = (_a) => {
|
|
|
750
733
|
}
|
|
751
734
|
);
|
|
752
735
|
};
|
|
753
|
-
PureParallelCoordinates.propTypes = {
|
|
754
|
-
backgroundColor: prop_types_exports.string,
|
|
755
|
-
width: prop_types_exports.number,
|
|
756
|
-
height: prop_types_exports.number,
|
|
757
|
-
fields: prop_types_exports.array,
|
|
758
|
-
columns: prop_types_exports.array,
|
|
759
|
-
lineColor: prop_types_exports.string,
|
|
760
|
-
lineOpacity: prop_types_exports.number,
|
|
761
|
-
showNullAxis: prop_types_exports.bool,
|
|
762
|
-
axisLineHighlightColor: prop_types_exports.string,
|
|
763
|
-
axisLineColor: prop_types_exports.string,
|
|
764
|
-
axisTitleColor: prop_types_exports.string,
|
|
765
|
-
axisLabelColor: prop_types_exports.string,
|
|
766
|
-
filterButtonDisabledColor: prop_types_exports.string,
|
|
767
|
-
filterButtonActiveColor: prop_types_exports.string,
|
|
768
|
-
filterTextColor: prop_types_exports.string,
|
|
769
|
-
filterSelectionColor: prop_types_exports.string,
|
|
770
|
-
truncatedCategoriesFlag: prop_types_exports.bool,
|
|
771
|
-
truncatedTextColor: prop_types_exports.string,
|
|
772
|
-
textShadowColor: prop_types_exports.string,
|
|
773
|
-
mode: prop_types_exports.string
|
|
774
|
-
};
|
|
775
|
-
PureParallelCoordinates.defaultProps = {
|
|
776
|
-
backgroundColor: "#0b0c0e",
|
|
777
|
-
width: 700,
|
|
778
|
-
height: 400,
|
|
779
|
-
fields: null,
|
|
780
|
-
columns: [],
|
|
781
|
-
lineColor: "#7B56DB",
|
|
782
|
-
lineOpacity: 0.5,
|
|
783
|
-
showNullAxis: true,
|
|
784
|
-
axisLineHighlightColor: "rgba(255, 255, 255, 0.98)",
|
|
785
|
-
axisLineColor: "rgb(129, 130, 133)",
|
|
786
|
-
axisTitleColor: "rgba(255, 255, 255, 0.7)",
|
|
787
|
-
axisLabelColor: "rgba(255, 255, 255, 0.7)",
|
|
788
|
-
filterButtonDisabledColor: "rgba(255, 255, 255, 0.3)",
|
|
789
|
-
filterButtonActiveColor: "#3993FF",
|
|
790
|
-
filterTextColor: "rgba(255, 255, 255, 0.7)",
|
|
791
|
-
filterSelectionColor: "#FFFFFF",
|
|
792
|
-
truncatedTextColor: "rgba(255, 255, 255, 0.5)",
|
|
793
|
-
textShadowColor: "#111215",
|
|
794
|
-
truncatedCategoriesFlag: false
|
|
795
|
-
};
|
|
796
736
|
var PureParallelCoordinates_default = PureParallelCoordinates;
|
|
797
737
|
|
|
798
738
|
// esm-externals:lodash
|
|
@@ -800,99 +740,108 @@ var lodash_exports = {};
|
|
|
800
740
|
__export(lodash_exports, {
|
|
801
741
|
default: () => lodash_default
|
|
802
742
|
});
|
|
803
|
-
var
|
|
743
|
+
var defaultImport13 = __toESM(require("lodash"));
|
|
804
744
|
__reExport(lodash_exports, require("lodash"));
|
|
805
|
-
var lodash_default = "default" in
|
|
745
|
+
var lodash_default = "default" in defaultImport13 ? defaultImport13.default : defaultImport13;
|
|
806
746
|
|
|
807
747
|
// esm-externals:@splunk/themes/getSettingsFromThemedProps
|
|
808
748
|
var getSettingsFromThemedProps_exports = {};
|
|
809
749
|
__export(getSettingsFromThemedProps_exports, {
|
|
810
750
|
default: () => getSettingsFromThemedProps_default
|
|
811
751
|
});
|
|
812
|
-
var
|
|
752
|
+
var defaultImport14 = __toESM(require("@splunk/themes/getSettingsFromThemedProps"));
|
|
813
753
|
__reExport(getSettingsFromThemedProps_exports, require("@splunk/themes/getSettingsFromThemedProps"));
|
|
814
|
-
var getSettingsFromThemedProps_default = "default" in
|
|
754
|
+
var getSettingsFromThemedProps_default = "default" in defaultImport14 ? defaultImport14.default : defaultImport14;
|
|
815
755
|
|
|
816
756
|
// esm-externals:@splunk/visualization-encoding/Options
|
|
817
757
|
var Options_exports = {};
|
|
818
758
|
__export(Options_exports, {
|
|
819
759
|
default: () => Options_default
|
|
820
760
|
});
|
|
821
|
-
var
|
|
761
|
+
var defaultImport15 = __toESM(require("@splunk/visualization-encoding/Options"));
|
|
822
762
|
__reExport(Options_exports, require("@splunk/visualization-encoding/Options"));
|
|
823
|
-
var Options_default = "default" in
|
|
763
|
+
var Options_default = "default" in defaultImport15 ? defaultImport15.default : defaultImport15;
|
|
824
764
|
|
|
825
765
|
// esm-externals:@splunk/visualizations-shared/SanitizeProps
|
|
826
766
|
var SanitizeProps_exports = {};
|
|
827
767
|
__export(SanitizeProps_exports, {
|
|
828
768
|
default: () => SanitizeProps_default
|
|
829
769
|
});
|
|
830
|
-
var
|
|
770
|
+
var defaultImport16 = __toESM(require("@splunk/visualizations-shared/SanitizeProps"));
|
|
831
771
|
__reExport(SanitizeProps_exports, require("@splunk/visualizations-shared/SanitizeProps"));
|
|
832
|
-
var SanitizeProps_default = "default" in
|
|
772
|
+
var SanitizeProps_default = "default" in defaultImport16 ? defaultImport16.default : defaultImport16;
|
|
833
773
|
|
|
834
774
|
// esm-externals:@splunk/visualization-context/TimezoneContext
|
|
835
775
|
var TimezoneContext_exports = {};
|
|
836
776
|
__export(TimezoneContext_exports, {
|
|
837
777
|
default: () => TimezoneContext_default
|
|
838
778
|
});
|
|
839
|
-
var
|
|
779
|
+
var defaultImport17 = __toESM(require("@splunk/visualization-context/TimezoneContext"));
|
|
840
780
|
__reExport(TimezoneContext_exports, require("@splunk/visualization-context/TimezoneContext"));
|
|
841
|
-
var TimezoneContext_default = "default" in
|
|
781
|
+
var TimezoneContext_default = "default" in defaultImport17 ? defaultImport17.default : defaultImport17;
|
|
842
782
|
|
|
843
783
|
// esm-externals:@splunk/moment
|
|
844
784
|
var moment_exports = {};
|
|
845
785
|
__export(moment_exports, {
|
|
846
786
|
default: () => moment_default
|
|
847
787
|
});
|
|
848
|
-
var
|
|
788
|
+
var defaultImport18 = __toESM(require("@splunk/moment"));
|
|
849
789
|
__reExport(moment_exports, require("@splunk/moment"));
|
|
850
|
-
var moment_default = "default" in
|
|
790
|
+
var moment_default = "default" in defaultImport18 ? defaultImport18.default : defaultImport18;
|
|
851
791
|
|
|
852
792
|
// esm-externals:@splunk/visualization-context/FeatureFlagContext
|
|
853
793
|
var FeatureFlagContext_exports = {};
|
|
854
794
|
__export(FeatureFlagContext_exports, {
|
|
855
795
|
default: () => FeatureFlagContext_default
|
|
856
796
|
});
|
|
857
|
-
var
|
|
797
|
+
var defaultImport19 = __toESM(require("@splunk/visualization-context/FeatureFlagContext"));
|
|
858
798
|
__reExport(FeatureFlagContext_exports, require("@splunk/visualization-context/FeatureFlagContext"));
|
|
859
|
-
var FeatureFlagContext_default = "default" in
|
|
799
|
+
var FeatureFlagContext_default = "default" in defaultImport19 ? defaultImport19.default : defaultImport19;
|
|
860
800
|
|
|
861
801
|
// esm-externals:@splunk/visualizations-shared/hocUtils
|
|
862
802
|
var hocUtils_exports = {};
|
|
863
803
|
__export(hocUtils_exports, {
|
|
864
804
|
default: () => hocUtils_default
|
|
865
805
|
});
|
|
866
|
-
var
|
|
806
|
+
var defaultImport20 = __toESM(require("@splunk/visualizations-shared/hocUtils"));
|
|
867
807
|
__reExport(hocUtils_exports, require("@splunk/visualizations-shared/hocUtils"));
|
|
868
|
-
var hocUtils_default = "default" in
|
|
808
|
+
var hocUtils_default = "default" in defaultImport20 ? defaultImport20.default : defaultImport20;
|
|
869
809
|
|
|
870
810
|
// esm-externals:@splunk/visualizations-shared/JSONSchemaUtils
|
|
871
811
|
var JSONSchemaUtils_exports = {};
|
|
872
812
|
__export(JSONSchemaUtils_exports, {
|
|
873
813
|
default: () => JSONSchemaUtils_default
|
|
874
814
|
});
|
|
875
|
-
var
|
|
815
|
+
var defaultImport21 = __toESM(require("@splunk/visualizations-shared/JSONSchemaUtils"));
|
|
876
816
|
__reExport(JSONSchemaUtils_exports, require("@splunk/visualizations-shared/JSONSchemaUtils"));
|
|
877
|
-
var JSONSchemaUtils_default = "default" in
|
|
817
|
+
var JSONSchemaUtils_default = "default" in defaultImport21 ? defaultImport21.default : defaultImport21;
|
|
878
818
|
|
|
879
819
|
// esm-externals:@splunk/async-dynamic-options-evaluator
|
|
880
820
|
var async_dynamic_options_evaluator_exports = {};
|
|
881
821
|
__export(async_dynamic_options_evaluator_exports, {
|
|
882
822
|
default: () => async_dynamic_options_evaluator_default
|
|
883
823
|
});
|
|
884
|
-
var
|
|
824
|
+
var defaultImport22 = __toESM(require("@splunk/async-dynamic-options-evaluator"));
|
|
885
825
|
__reExport(async_dynamic_options_evaluator_exports, require("@splunk/async-dynamic-options-evaluator"));
|
|
886
|
-
var async_dynamic_options_evaluator_default = "default" in
|
|
826
|
+
var async_dynamic_options_evaluator_default = "default" in defaultImport22 ? defaultImport22.default : defaultImport22;
|
|
887
827
|
|
|
888
828
|
// esm-externals:@splunk/ui-utils/id
|
|
889
829
|
var id_exports = {};
|
|
890
830
|
__export(id_exports, {
|
|
891
831
|
default: () => id_default
|
|
892
832
|
});
|
|
893
|
-
var
|
|
833
|
+
var defaultImport23 = __toESM(require("@splunk/ui-utils/id"));
|
|
894
834
|
__reExport(id_exports, require("@splunk/ui-utils/id"));
|
|
895
|
-
var id_default = "default" in
|
|
835
|
+
var id_default = "default" in defaultImport23 ? defaultImport23.default : defaultImport23;
|
|
836
|
+
|
|
837
|
+
// esm-externals:prop-types
|
|
838
|
+
var prop_types_exports = {};
|
|
839
|
+
__export(prop_types_exports, {
|
|
840
|
+
default: () => prop_types_default
|
|
841
|
+
});
|
|
842
|
+
var defaultImport24 = __toESM(require("prop-types"));
|
|
843
|
+
__reExport(prop_types_exports, require("prop-types"));
|
|
844
|
+
var prop_types_default = "default" in defaultImport24 ? defaultImport24.default : defaultImport24;
|
|
896
845
|
|
|
897
846
|
// src/common/interfaces/VizActionHandler.ts
|
|
898
847
|
var DefaultVizActionHandler = class {
|
|
@@ -1157,7 +1106,7 @@ var Cover = styled_components_default.div`
|
|
|
1157
1106
|
bottom: 0;
|
|
1158
1107
|
`;
|
|
1159
1108
|
var Blocker = styled_components_default.div.attrs({
|
|
1160
|
-
"data-splunk-visualization-version": "28.
|
|
1109
|
+
"data-splunk-visualization-version": "28.5.1 - 617766eb3"
|
|
1161
1110
|
})`
|
|
1162
1111
|
position: relative;
|
|
1163
1112
|
width: 100%;
|
|
@@ -1247,7 +1196,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
1247
1196
|
FixSizeItem,
|
|
1248
1197
|
{
|
|
1249
1198
|
"data-test": "fix-size-item",
|
|
1250
|
-
"data-splunk-visualization-version": "28.
|
|
1199
|
+
"data-splunk-visualization-version": "28.5.1 - 617766eb3",
|
|
1251
1200
|
width,
|
|
1252
1201
|
height,
|
|
1253
1202
|
backgroundColor
|
|
@@ -1852,25 +1801,27 @@ var parseAxisValue = (val) => {
|
|
|
1852
1801
|
const num = typeof val === "number" ? val : Number.parseFloat(val);
|
|
1853
1802
|
return Number.isNaN(num) ? void 0 : num;
|
|
1854
1803
|
};
|
|
1855
|
-
var
|
|
1856
|
-
|
|
1804
|
+
var parseXAxisLineVisibility = (visibility) => {
|
|
1805
|
+
if (visibility === "hide") return false;
|
|
1806
|
+
if (visibility === "show") return true;
|
|
1807
|
+
return void 0;
|
|
1808
|
+
};
|
|
1857
1809
|
var getLegend = (props) => {
|
|
1858
1810
|
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
1859
|
-
const { isSeriesCompare } = props;
|
|
1811
|
+
const { isSeriesCompare, legendTruncation } = props;
|
|
1860
1812
|
const commonLegendProps = {
|
|
1861
1813
|
center: true,
|
|
1862
1814
|
fontSize: 12,
|
|
1863
1815
|
largerTiles: true,
|
|
1864
|
-
hideSeriesValue: !isSeriesCompare
|
|
1816
|
+
hideSeriesValue: !isSeriesCompare,
|
|
1865
1817
|
// Show values if in seriesCompare mode
|
|
1818
|
+
legendTruncation
|
|
1866
1819
|
};
|
|
1867
1820
|
switch (legendPlacement) {
|
|
1868
1821
|
case "off":
|
|
1869
1822
|
return false;
|
|
1870
1823
|
case "left":
|
|
1871
|
-
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
1872
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1873
|
-
}, commonLegendProps));
|
|
1824
|
+
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
1874
1825
|
case "bottom":
|
|
1875
1826
|
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
1876
1827
|
wrap: true
|
|
@@ -1880,9 +1831,7 @@ var getLegend = (props) => {
|
|
|
1880
1831
|
wrap: true
|
|
1881
1832
|
}, commonLegendProps));
|
|
1882
1833
|
default:
|
|
1883
|
-
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
1884
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1885
|
-
}, commonLegendProps));
|
|
1834
|
+
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
1886
1835
|
}
|
|
1887
1836
|
};
|
|
1888
1837
|
var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
|
|
@@ -1943,9 +1892,7 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibilit
|
|
|
1943
1892
|
if (yAxisAbbreviation !== "none") {
|
|
1944
1893
|
yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
|
|
1945
1894
|
}
|
|
1946
|
-
if (yAxisAbbreviation
|
|
1947
|
-
yConfig.y.width = 55;
|
|
1948
|
-
} else {
|
|
1895
|
+
if (yAxisAbbreviation !== "none") {
|
|
1949
1896
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
1950
1897
|
}
|
|
1951
1898
|
if (yAxisLabelVisibility === "hide") {
|
|
@@ -1968,6 +1915,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1968
1915
|
y2Config.y2.type = scaleType;
|
|
1969
1916
|
if (axisAbbreviation !== "none") {
|
|
1970
1917
|
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
1918
|
+
y2Config.y2.width = label && label.length > 0 ? 50 : 10;
|
|
1971
1919
|
} else if (roundAxisLabelsToInteger) {
|
|
1972
1920
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
1973
1921
|
}
|
|
@@ -1983,7 +1931,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1983
1931
|
}
|
|
1984
1932
|
return y2Config;
|
|
1985
1933
|
};
|
|
1986
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
|
|
1934
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField, stepPosition, stepPositionsByField) => {
|
|
1987
1935
|
const seriesConfig = {};
|
|
1988
1936
|
let spanGaps;
|
|
1989
1937
|
let replaceNullsWithZero;
|
|
@@ -2010,6 +1958,8 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
2010
1958
|
);
|
|
2011
1959
|
if (shouldAssignToY2) {
|
|
2012
1960
|
seriesConfig[field].overrides.scale = "y2";
|
|
1961
|
+
} else {
|
|
1962
|
+
seriesConfig[field].overrides.scale = "y";
|
|
2013
1963
|
}
|
|
2014
1964
|
}
|
|
2015
1965
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
@@ -2022,6 +1972,11 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
2022
1972
|
if (fieldDashStyle) {
|
|
2023
1973
|
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
2024
1974
|
}
|
|
1975
|
+
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
1976
|
+
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
1977
|
+
if (fieldStepPosition && fieldStepPosition !== "off") {
|
|
1978
|
+
seriesConfig[field].stepPosition = fieldStepPosition;
|
|
1979
|
+
}
|
|
2025
1980
|
if (replaceNullsWithZero !== void 0) {
|
|
2026
1981
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
2027
1982
|
}
|
|
@@ -2255,6 +2210,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2255
2210
|
backgroundColor,
|
|
2256
2211
|
defaultFontColor,
|
|
2257
2212
|
additionalTooltipValues,
|
|
2213
|
+
xAxisLineVisibility: xAxisLineVisibility,
|
|
2214
|
+
yAxisLineVisibility,
|
|
2215
|
+
y2AxisLineVisibility,
|
|
2258
2216
|
showYAxisWithZero: showYAxisWithZeroFromProps,
|
|
2259
2217
|
showY2AxisWithZero: showY2AxisWithZeroFromProps
|
|
2260
2218
|
} = _a, otherOptions = __objRest(_a, [
|
|
@@ -2278,6 +2236,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2278
2236
|
"backgroundColor",
|
|
2279
2237
|
"defaultFontColor",
|
|
2280
2238
|
"additionalTooltipValues",
|
|
2239
|
+
// Extract axis line visibility options from props
|
|
2240
|
+
"xAxisLineVisibility",
|
|
2241
|
+
"yAxisLineVisibility",
|
|
2242
|
+
"y2AxisLineVisibility",
|
|
2281
2243
|
// Extract showYAxisWithZero directly from props for accelerated render mode
|
|
2282
2244
|
"showYAxisWithZero",
|
|
2283
2245
|
"showY2AxisWithZero"
|
|
@@ -2290,6 +2252,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2290
2252
|
fieldColors,
|
|
2291
2253
|
legendLabels: legendLabelsStr,
|
|
2292
2254
|
legendMode,
|
|
2255
|
+
legendTruncation,
|
|
2293
2256
|
"axisTitleX.text": xAxisTitleText,
|
|
2294
2257
|
"axisTitleY.text": yAxisTitleText,
|
|
2295
2258
|
"axisTitleY2.text": y2AxisTitleText,
|
|
@@ -2298,6 +2261,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2298
2261
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
2299
2262
|
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
2300
2263
|
"axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
|
|
2264
|
+
"axisLabelsX.maxLabelParts": xAxisMaxLabelParts,
|
|
2301
2265
|
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
2302
2266
|
"axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
|
|
2303
2267
|
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
@@ -2315,6 +2279,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2315
2279
|
lineWidth,
|
|
2316
2280
|
lineDashStyle,
|
|
2317
2281
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
2282
|
+
stepPosition,
|
|
2283
|
+
fieldStepPositions: stepPositionsByFieldStr,
|
|
2318
2284
|
yAxisMin: yAxisMinRaw,
|
|
2319
2285
|
yAxisMax: yAxisMaxRaw,
|
|
2320
2286
|
y2AxisMin: y2AxisMinRaw,
|
|
@@ -2325,6 +2291,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2325
2291
|
showYMinorGridLines,
|
|
2326
2292
|
showY2MinorGridLines,
|
|
2327
2293
|
showLineSmoothing,
|
|
2294
|
+
xAxisMajorTickVisibility,
|
|
2295
|
+
xAxisMajorTickSize,
|
|
2328
2296
|
yAxisMajorTickVisibility,
|
|
2329
2297
|
y2AxisMajorTickVisibility,
|
|
2330
2298
|
yAxisMajorTickSize,
|
|
@@ -2341,10 +2309,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2341
2309
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
2342
2310
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
2343
2311
|
const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
|
|
2312
|
+
const showXMajorTicks = xAxisMajorTickVisibility !== "hide";
|
|
2344
2313
|
const showYMajorTicks = yAxisMajorTickVisibility === "show";
|
|
2345
2314
|
const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
|
|
2346
2315
|
const showYMinorTicks = yAxisMinorTickVisibility === "show";
|
|
2347
2316
|
const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
|
|
2317
|
+
const showXAxisLine = parseXAxisLineVisibility(xAxisLineVisibility);
|
|
2318
|
+
const showYAxisLine = yAxisLineVisibility === "show";
|
|
2319
|
+
const showY2AxisLine = y2AxisLineVisibility === "show";
|
|
2348
2320
|
const yAxisMin = parseAxisValue(yAxisMinRaw);
|
|
2349
2321
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
2350
2322
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
@@ -2359,13 +2331,15 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2359
2331
|
y2AxisMajorUnitFromSimpleXML,
|
|
2360
2332
|
y2AxisMajorTickInterval
|
|
2361
2333
|
);
|
|
2362
|
-
const
|
|
2363
|
-
const
|
|
2364
|
-
const
|
|
2365
|
-
const
|
|
2334
|
+
const xAxisMajorTickSizeNum = xAxisMajorTickSize != null ? Number(xAxisMajorTickSize) : void 0;
|
|
2335
|
+
const yAxisMajorTickSizeNum = yAxisMajorTickSize != null ? Number(yAxisMajorTickSize) : void 0;
|
|
2336
|
+
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
2337
|
+
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
2338
|
+
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
2366
2339
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
2367
2340
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
2368
2341
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
2342
|
+
const stepPositionsByField = stepPositionsByFieldStr ? JSON.parse(stepPositionsByFieldStr) : void 0;
|
|
2369
2343
|
const legendLabels = parseArrayOption(legendLabelsStr);
|
|
2370
2344
|
const bgColor = backgroundColor || bgColorFromOptions;
|
|
2371
2345
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
@@ -2453,7 +2427,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2453
2427
|
nullValueMode,
|
|
2454
2428
|
markerDisplay,
|
|
2455
2429
|
lineDashStyle,
|
|
2456
|
-
lineDashStylesByField
|
|
2430
|
+
lineDashStylesByField,
|
|
2431
|
+
stepPosition,
|
|
2432
|
+
stepPositionsByField
|
|
2457
2433
|
),
|
|
2458
2434
|
[
|
|
2459
2435
|
yFields,
|
|
@@ -2464,7 +2440,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2464
2440
|
nullValueMode,
|
|
2465
2441
|
markerDisplay,
|
|
2466
2442
|
lineDashStyle,
|
|
2467
|
-
lineDashStylesByField
|
|
2443
|
+
lineDashStylesByField,
|
|
2444
|
+
stepPosition,
|
|
2445
|
+
stepPositionsByField
|
|
2468
2446
|
]
|
|
2469
2447
|
);
|
|
2470
2448
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -2479,9 +2457,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2479
2457
|
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
2480
2458
|
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
2481
2459
|
);
|
|
2460
|
+
const isSeriesCompare = legendMode === "seriesCompare";
|
|
2482
2461
|
const legend = (0, react_exports.useMemo)(
|
|
2483
|
-
() => getLegend({
|
|
2484
|
-
|
|
2462
|
+
() => getLegend({
|
|
2463
|
+
legendDisplay: isSeriesCompare && legendDisplay !== "off" ? "right" : legendDisplay,
|
|
2464
|
+
isSeriesCompare,
|
|
2465
|
+
legendTruncation
|
|
2466
|
+
}),
|
|
2467
|
+
[legendDisplay, isSeriesCompare, legendTruncation]
|
|
2485
2468
|
);
|
|
2486
2469
|
const handleChartClick = react_exports.useCallback(
|
|
2487
2470
|
(event) => {
|
|
@@ -2586,6 +2569,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2586
2569
|
seriesConfig: seriesOverrides,
|
|
2587
2570
|
legend,
|
|
2588
2571
|
legendLabels,
|
|
2572
|
+
legendTruncation,
|
|
2589
2573
|
isSeriesCompare: legendMode === "seriesCompare",
|
|
2590
2574
|
maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
|
|
2591
2575
|
scaleConfig,
|
|
@@ -2607,6 +2591,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2607
2591
|
showY2MinorGridLines,
|
|
2608
2592
|
showLineSmoothing,
|
|
2609
2593
|
dataValuesDisplay,
|
|
2594
|
+
showXMajorTicks,
|
|
2595
|
+
xAxisMajorTickSize: xAxisMajorTickSizeNum,
|
|
2610
2596
|
showYMajorTicks,
|
|
2611
2597
|
showY2MajorTicks,
|
|
2612
2598
|
yAxisMajorTickSize: yAxisMajorTickSizeNum,
|
|
@@ -2618,7 +2604,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2618
2604
|
yAxisMinorTickSize: yAxisMinorTickSizeNum,
|
|
2619
2605
|
y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
|
|
2620
2606
|
showYAxisWithZero,
|
|
2621
|
-
showY2AxisWithZero
|
|
2607
|
+
showY2AxisWithZero,
|
|
2608
|
+
showXAxisLine,
|
|
2609
|
+
showYAxisLine,
|
|
2610
|
+
showY2AxisLine,
|
|
2611
|
+
xAxisMaxLabelParts
|
|
2622
2612
|
}
|
|
2623
2613
|
));
|
|
2624
2614
|
}, [
|
|
@@ -2633,6 +2623,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2633
2623
|
seriesOverrides,
|
|
2634
2624
|
legend,
|
|
2635
2625
|
legendLabels,
|
|
2626
|
+
legendTruncation,
|
|
2636
2627
|
scaleConfig,
|
|
2637
2628
|
onClick,
|
|
2638
2629
|
handleChartClick,
|
|
@@ -2651,6 +2642,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2651
2642
|
showY2MinorGridLines,
|
|
2652
2643
|
showLineSmoothing,
|
|
2653
2644
|
dataValuesDisplay,
|
|
2645
|
+
showXMajorTicks,
|
|
2646
|
+
xAxisMajorTickSizeNum,
|
|
2654
2647
|
showYMajorTicks,
|
|
2655
2648
|
showY2MajorTicks,
|
|
2656
2649
|
yAxisMajorTickSizeNum,
|
|
@@ -2663,7 +2656,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2663
2656
|
y2AxisMinorTickSizeNum,
|
|
2664
2657
|
showYAxisWithZero,
|
|
2665
2658
|
showY2AxisWithZero,
|
|
2666
|
-
|
|
2659
|
+
showXAxisLine,
|
|
2660
|
+
showYAxisLine,
|
|
2661
|
+
showY2AxisLine,
|
|
2662
|
+
legendMode,
|
|
2663
|
+
xAxisMaxLabelParts
|
|
2667
2664
|
]);
|
|
2668
2665
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2669
2666
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|