@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/Bubble.js
CHANGED
|
@@ -614,6 +614,9 @@ var ChartingContainer = styled_components_default.div.attrs((props) => ({
|
|
|
614
614
|
& .highcharts-a11y-proxy-container {
|
|
615
615
|
pointer-events: none;
|
|
616
616
|
}
|
|
617
|
+
& .highcharts-a11y-proxy-container-after {
|
|
618
|
+
overflow: hidden;
|
|
619
|
+
}
|
|
617
620
|
overflow: hidden;
|
|
618
621
|
position: relative;
|
|
619
622
|
${(props) => (0, style_exports.toDimension)((0, lodash_exports.pick)(props, ["width", "height"]))};
|
|
@@ -1015,6 +1018,9 @@ var isTrellisEnabled = ({ options, featureFlags }) => {
|
|
|
1015
1018
|
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
1016
1019
|
return isTrellisFeatureFlagOn({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
1017
1020
|
};
|
|
1021
|
+
var isAcceleratedRenderFeatureFlagOn = ({ featureFlags }) => {
|
|
1022
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableAcceleratedRender);
|
|
1023
|
+
};
|
|
1018
1024
|
var AxesChartDataConfig = {
|
|
1019
1025
|
label: (0, i18n_exports._)("Data configurations"),
|
|
1020
1026
|
layout: [
|
|
@@ -1148,9 +1154,6 @@ var AxesChartDataConfigBubble = {
|
|
|
1148
1154
|
}
|
|
1149
1155
|
])
|
|
1150
1156
|
};
|
|
1151
|
-
var isAcceleratedRenderFeatureFlagOn = ({ featureFlags }) => {
|
|
1152
|
-
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableAcceleratedRender);
|
|
1153
|
-
};
|
|
1154
1157
|
var AcceleratedRenderEditorLayout = [
|
|
1155
1158
|
[
|
|
1156
1159
|
{
|
|
@@ -1160,7 +1163,7 @@ var AcceleratedRenderEditorLayout = [
|
|
|
1160
1163
|
showEditor: isAcceleratedRenderFeatureFlagOn,
|
|
1161
1164
|
editorProps: {
|
|
1162
1165
|
help: (0, i18n_exports._)(
|
|
1163
|
-
"Render visualizations faster for large datasets.
|
|
1166
|
+
"Render visualizations faster for large datasets. Split series is not available in this mode."
|
|
1164
1167
|
),
|
|
1165
1168
|
helpFormat: "under"
|
|
1166
1169
|
// helpTextLink: {
|
|
@@ -2324,7 +2327,7 @@ var Cover = styled_components_default.div`
|
|
|
2324
2327
|
bottom: 0;
|
|
2325
2328
|
`;
|
|
2326
2329
|
var Blocker = styled_components_default.div.attrs({
|
|
2327
|
-
"data-splunk-visualization-version": "28.
|
|
2330
|
+
"data-splunk-visualization-version": "28.5.1 - 617766eb3"
|
|
2328
2331
|
})`
|
|
2329
2332
|
position: relative;
|
|
2330
2333
|
width: 100%;
|
|
@@ -2405,7 +2408,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
2405
2408
|
FixSizeItem,
|
|
2406
2409
|
{
|
|
2407
2410
|
"data-test": "fix-size-item",
|
|
2408
|
-
"data-splunk-visualization-version": "28.
|
|
2411
|
+
"data-splunk-visualization-version": "28.5.1 - 617766eb3",
|
|
2409
2412
|
width,
|
|
2410
2413
|
height,
|
|
2411
2414
|
backgroundColor
|
|
@@ -2810,25 +2813,27 @@ var parseAxisValue = (val) => {
|
|
|
2810
2813
|
const num = typeof val === "number" ? val : Number.parseFloat(val);
|
|
2811
2814
|
return Number.isNaN(num) ? void 0 : num;
|
|
2812
2815
|
};
|
|
2813
|
-
var
|
|
2814
|
-
|
|
2816
|
+
var parseXAxisLineVisibility = (visibility) => {
|
|
2817
|
+
if (visibility === "hide") return false;
|
|
2818
|
+
if (visibility === "show") return true;
|
|
2819
|
+
return void 0;
|
|
2820
|
+
};
|
|
2815
2821
|
var getLegend = (props) => {
|
|
2816
2822
|
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
2817
|
-
const { isSeriesCompare } = props;
|
|
2823
|
+
const { isSeriesCompare, legendTruncation } = props;
|
|
2818
2824
|
const commonLegendProps = {
|
|
2819
2825
|
center: true,
|
|
2820
2826
|
fontSize: 12,
|
|
2821
2827
|
largerTiles: true,
|
|
2822
|
-
hideSeriesValue: !isSeriesCompare
|
|
2828
|
+
hideSeriesValue: !isSeriesCompare,
|
|
2823
2829
|
// Show values if in seriesCompare mode
|
|
2830
|
+
legendTruncation
|
|
2824
2831
|
};
|
|
2825
2832
|
switch (legendPlacement) {
|
|
2826
2833
|
case "off":
|
|
2827
2834
|
return false;
|
|
2828
2835
|
case "left":
|
|
2829
|
-
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
2830
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
2831
|
-
}, commonLegendProps));
|
|
2836
|
+
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
2832
2837
|
case "bottom":
|
|
2833
2838
|
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
2834
2839
|
wrap: true
|
|
@@ -2838,9 +2843,7 @@ var getLegend = (props) => {
|
|
|
2838
2843
|
wrap: true
|
|
2839
2844
|
}, commonLegendProps));
|
|
2840
2845
|
default:
|
|
2841
|
-
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
2842
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
2843
|
-
}, commonLegendProps));
|
|
2846
|
+
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
2844
2847
|
}
|
|
2845
2848
|
};
|
|
2846
2849
|
var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
|
|
@@ -2901,9 +2904,7 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibilit
|
|
|
2901
2904
|
if (yAxisAbbreviation !== "none") {
|
|
2902
2905
|
yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
|
|
2903
2906
|
}
|
|
2904
|
-
if (yAxisAbbreviation
|
|
2905
|
-
yConfig.y.width = 55;
|
|
2906
|
-
} else {
|
|
2907
|
+
if (yAxisAbbreviation !== "none") {
|
|
2907
2908
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
2908
2909
|
}
|
|
2909
2910
|
if (yAxisLabelVisibility === "hide") {
|
|
@@ -2926,6 +2927,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
2926
2927
|
y2Config.y2.type = scaleType;
|
|
2927
2928
|
if (axisAbbreviation !== "none") {
|
|
2928
2929
|
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
2930
|
+
y2Config.y2.width = label && label.length > 0 ? 50 : 10;
|
|
2929
2931
|
} else if (roundAxisLabelsToInteger) {
|
|
2930
2932
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
2931
2933
|
}
|
|
@@ -2941,7 +2943,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
2941
2943
|
}
|
|
2942
2944
|
return y2Config;
|
|
2943
2945
|
};
|
|
2944
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
|
|
2946
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField, stepPosition, stepPositionsByField) => {
|
|
2945
2947
|
const seriesConfig = {};
|
|
2946
2948
|
let spanGaps;
|
|
2947
2949
|
let replaceNullsWithZero;
|
|
@@ -2968,6 +2970,8 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
2968
2970
|
);
|
|
2969
2971
|
if (shouldAssignToY2) {
|
|
2970
2972
|
seriesConfig[field].overrides.scale = "y2";
|
|
2973
|
+
} else {
|
|
2974
|
+
seriesConfig[field].overrides.scale = "y";
|
|
2971
2975
|
}
|
|
2972
2976
|
}
|
|
2973
2977
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
@@ -2980,6 +2984,11 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
2980
2984
|
if (fieldDashStyle) {
|
|
2981
2985
|
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
2982
2986
|
}
|
|
2987
|
+
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
2988
|
+
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
2989
|
+
if (fieldStepPosition && fieldStepPosition !== "off") {
|
|
2990
|
+
seriesConfig[field].stepPosition = fieldStepPosition;
|
|
2991
|
+
}
|
|
2983
2992
|
if (replaceNullsWithZero !== void 0) {
|
|
2984
2993
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
2985
2994
|
}
|
|
@@ -3162,6 +3171,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3162
3171
|
backgroundColor,
|
|
3163
3172
|
defaultFontColor,
|
|
3164
3173
|
additionalTooltipValues,
|
|
3174
|
+
xAxisLineVisibility: xAxisLineVisibility,
|
|
3175
|
+
yAxisLineVisibility,
|
|
3176
|
+
y2AxisLineVisibility,
|
|
3165
3177
|
showYAxisWithZero: showYAxisWithZeroFromProps,
|
|
3166
3178
|
showY2AxisWithZero: showY2AxisWithZeroFromProps
|
|
3167
3179
|
} = _a, otherOptions = __objRest(_a, [
|
|
@@ -3185,6 +3197,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3185
3197
|
"backgroundColor",
|
|
3186
3198
|
"defaultFontColor",
|
|
3187
3199
|
"additionalTooltipValues",
|
|
3200
|
+
// Extract axis line visibility options from props
|
|
3201
|
+
"xAxisLineVisibility",
|
|
3202
|
+
"yAxisLineVisibility",
|
|
3203
|
+
"y2AxisLineVisibility",
|
|
3188
3204
|
// Extract showYAxisWithZero directly from props for accelerated render mode
|
|
3189
3205
|
"showYAxisWithZero",
|
|
3190
3206
|
"showY2AxisWithZero"
|
|
@@ -3197,6 +3213,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3197
3213
|
fieldColors,
|
|
3198
3214
|
legendLabels: legendLabelsStr,
|
|
3199
3215
|
legendMode,
|
|
3216
|
+
legendTruncation,
|
|
3200
3217
|
"axisTitleX.text": xAxisTitleText,
|
|
3201
3218
|
"axisTitleY.text": yAxisTitleText,
|
|
3202
3219
|
"axisTitleY2.text": y2AxisTitleText,
|
|
@@ -3205,6 +3222,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3205
3222
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
3206
3223
|
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
3207
3224
|
"axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
|
|
3225
|
+
"axisLabelsX.maxLabelParts": xAxisMaxLabelParts,
|
|
3208
3226
|
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
3209
3227
|
"axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
|
|
3210
3228
|
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
@@ -3222,6 +3240,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3222
3240
|
lineWidth,
|
|
3223
3241
|
lineDashStyle,
|
|
3224
3242
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
3243
|
+
stepPosition,
|
|
3244
|
+
fieldStepPositions: stepPositionsByFieldStr,
|
|
3225
3245
|
yAxisMin: yAxisMinRaw,
|
|
3226
3246
|
yAxisMax: yAxisMaxRaw,
|
|
3227
3247
|
y2AxisMin: y2AxisMinRaw,
|
|
@@ -3232,6 +3252,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3232
3252
|
showYMinorGridLines,
|
|
3233
3253
|
showY2MinorGridLines,
|
|
3234
3254
|
showLineSmoothing,
|
|
3255
|
+
xAxisMajorTickVisibility,
|
|
3256
|
+
xAxisMajorTickSize,
|
|
3235
3257
|
yAxisMajorTickVisibility,
|
|
3236
3258
|
y2AxisMajorTickVisibility,
|
|
3237
3259
|
yAxisMajorTickSize,
|
|
@@ -3248,10 +3270,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3248
3270
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
3249
3271
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
3250
3272
|
const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
|
|
3273
|
+
const showXMajorTicks = xAxisMajorTickVisibility !== "hide";
|
|
3251
3274
|
const showYMajorTicks = yAxisMajorTickVisibility === "show";
|
|
3252
3275
|
const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
|
|
3253
3276
|
const showYMinorTicks = yAxisMinorTickVisibility === "show";
|
|
3254
3277
|
const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
|
|
3278
|
+
const showXAxisLine = parseXAxisLineVisibility(xAxisLineVisibility);
|
|
3279
|
+
const showYAxisLine = yAxisLineVisibility === "show";
|
|
3280
|
+
const showY2AxisLine = y2AxisLineVisibility === "show";
|
|
3255
3281
|
const yAxisMin = parseAxisValue(yAxisMinRaw);
|
|
3256
3282
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
3257
3283
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
@@ -3266,13 +3292,15 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3266
3292
|
y2AxisMajorUnitFromSimpleXML,
|
|
3267
3293
|
y2AxisMajorTickInterval
|
|
3268
3294
|
);
|
|
3269
|
-
const
|
|
3270
|
-
const
|
|
3271
|
-
const
|
|
3272
|
-
const
|
|
3295
|
+
const xAxisMajorTickSizeNum = xAxisMajorTickSize != null ? Number(xAxisMajorTickSize) : void 0;
|
|
3296
|
+
const yAxisMajorTickSizeNum = yAxisMajorTickSize != null ? Number(yAxisMajorTickSize) : void 0;
|
|
3297
|
+
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
3298
|
+
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
3299
|
+
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
3273
3300
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
3274
3301
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
3275
3302
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
3303
|
+
const stepPositionsByField = stepPositionsByFieldStr ? JSON.parse(stepPositionsByFieldStr) : void 0;
|
|
3276
3304
|
const legendLabels = parseArrayOption(legendLabelsStr);
|
|
3277
3305
|
const bgColor = backgroundColor || bgColorFromOptions;
|
|
3278
3306
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
@@ -3360,7 +3388,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3360
3388
|
nullValueMode,
|
|
3361
3389
|
markerDisplay,
|
|
3362
3390
|
lineDashStyle,
|
|
3363
|
-
lineDashStylesByField
|
|
3391
|
+
lineDashStylesByField,
|
|
3392
|
+
stepPosition,
|
|
3393
|
+
stepPositionsByField
|
|
3364
3394
|
),
|
|
3365
3395
|
[
|
|
3366
3396
|
yFields,
|
|
@@ -3371,7 +3401,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3371
3401
|
nullValueMode,
|
|
3372
3402
|
markerDisplay,
|
|
3373
3403
|
lineDashStyle,
|
|
3374
|
-
lineDashStylesByField
|
|
3404
|
+
lineDashStylesByField,
|
|
3405
|
+
stepPosition,
|
|
3406
|
+
stepPositionsByField
|
|
3375
3407
|
]
|
|
3376
3408
|
);
|
|
3377
3409
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -3386,9 +3418,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3386
3418
|
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
3387
3419
|
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
3388
3420
|
);
|
|
3421
|
+
const isSeriesCompare = legendMode === "seriesCompare";
|
|
3389
3422
|
const legend = (0, react_exports.useMemo)(
|
|
3390
|
-
() => getLegend({
|
|
3391
|
-
|
|
3423
|
+
() => getLegend({
|
|
3424
|
+
legendDisplay: isSeriesCompare && legendDisplay !== "off" ? "right" : legendDisplay,
|
|
3425
|
+
isSeriesCompare,
|
|
3426
|
+
legendTruncation
|
|
3427
|
+
}),
|
|
3428
|
+
[legendDisplay, isSeriesCompare, legendTruncation]
|
|
3392
3429
|
);
|
|
3393
3430
|
const handleChartClick = react_exports.useCallback(
|
|
3394
3431
|
(event) => {
|
|
@@ -3493,6 +3530,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3493
3530
|
seriesConfig: seriesOverrides,
|
|
3494
3531
|
legend,
|
|
3495
3532
|
legendLabels,
|
|
3533
|
+
legendTruncation,
|
|
3496
3534
|
isSeriesCompare: legendMode === "seriesCompare",
|
|
3497
3535
|
maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
|
|
3498
3536
|
scaleConfig,
|
|
@@ -3514,6 +3552,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3514
3552
|
showY2MinorGridLines,
|
|
3515
3553
|
showLineSmoothing,
|
|
3516
3554
|
dataValuesDisplay,
|
|
3555
|
+
showXMajorTicks,
|
|
3556
|
+
xAxisMajorTickSize: xAxisMajorTickSizeNum,
|
|
3517
3557
|
showYMajorTicks,
|
|
3518
3558
|
showY2MajorTicks,
|
|
3519
3559
|
yAxisMajorTickSize: yAxisMajorTickSizeNum,
|
|
@@ -3525,7 +3565,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3525
3565
|
yAxisMinorTickSize: yAxisMinorTickSizeNum,
|
|
3526
3566
|
y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
|
|
3527
3567
|
showYAxisWithZero,
|
|
3528
|
-
showY2AxisWithZero
|
|
3568
|
+
showY2AxisWithZero,
|
|
3569
|
+
showXAxisLine,
|
|
3570
|
+
showYAxisLine,
|
|
3571
|
+
showY2AxisLine,
|
|
3572
|
+
xAxisMaxLabelParts
|
|
3529
3573
|
}
|
|
3530
3574
|
));
|
|
3531
3575
|
}, [
|
|
@@ -3540,6 +3584,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3540
3584
|
seriesOverrides,
|
|
3541
3585
|
legend,
|
|
3542
3586
|
legendLabels,
|
|
3587
|
+
legendTruncation,
|
|
3543
3588
|
scaleConfig,
|
|
3544
3589
|
onClick,
|
|
3545
3590
|
handleChartClick,
|
|
@@ -3558,6 +3603,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3558
3603
|
showY2MinorGridLines,
|
|
3559
3604
|
showLineSmoothing,
|
|
3560
3605
|
dataValuesDisplay,
|
|
3606
|
+
showXMajorTicks,
|
|
3607
|
+
xAxisMajorTickSizeNum,
|
|
3561
3608
|
showYMajorTicks,
|
|
3562
3609
|
showY2MajorTicks,
|
|
3563
3610
|
yAxisMajorTickSizeNum,
|
|
@@ -3570,7 +3617,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3570
3617
|
y2AxisMinorTickSizeNum,
|
|
3571
3618
|
showYAxisWithZero,
|
|
3572
3619
|
showY2AxisWithZero,
|
|
3573
|
-
|
|
3620
|
+
showXAxisLine,
|
|
3621
|
+
showYAxisLine,
|
|
3622
|
+
showY2AxisLine,
|
|
3623
|
+
legendMode,
|
|
3624
|
+
xAxisMaxLabelParts
|
|
3574
3625
|
]);
|
|
3575
3626
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
3576
3627
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|