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