@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/Image.js
CHANGED
|
@@ -601,7 +601,7 @@ var Cover = styled_components_default.div`
|
|
|
601
601
|
bottom: 0;
|
|
602
602
|
`;
|
|
603
603
|
var Blocker = styled_components_default.div.attrs({
|
|
604
|
-
"data-splunk-visualization-version": "28.
|
|
604
|
+
"data-splunk-visualization-version": "28.5.0 - b192418b7"
|
|
605
605
|
})`
|
|
606
606
|
position: relative;
|
|
607
607
|
width: 100%;
|
|
@@ -691,7 +691,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
691
691
|
FixSizeItem,
|
|
692
692
|
{
|
|
693
693
|
"data-test": "fix-size-item",
|
|
694
|
-
"data-splunk-visualization-version": "28.
|
|
694
|
+
"data-splunk-visualization-version": "28.5.0 - b192418b7",
|
|
695
695
|
width,
|
|
696
696
|
height,
|
|
697
697
|
backgroundColor
|
|
@@ -1296,25 +1296,27 @@ var parseAxisValue = (val) => {
|
|
|
1296
1296
|
const num = typeof val === "number" ? val : Number.parseFloat(val);
|
|
1297
1297
|
return Number.isNaN(num) ? void 0 : num;
|
|
1298
1298
|
};
|
|
1299
|
-
var
|
|
1300
|
-
|
|
1299
|
+
var parseXAxisLineVisibility = (visibility) => {
|
|
1300
|
+
if (visibility === "hide") return false;
|
|
1301
|
+
if (visibility === "show") return true;
|
|
1302
|
+
return void 0;
|
|
1303
|
+
};
|
|
1301
1304
|
var getLegend = (props) => {
|
|
1302
1305
|
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
1303
|
-
const { isSeriesCompare } = props;
|
|
1306
|
+
const { isSeriesCompare, legendTruncation } = props;
|
|
1304
1307
|
const commonLegendProps = {
|
|
1305
1308
|
center: true,
|
|
1306
1309
|
fontSize: 12,
|
|
1307
1310
|
largerTiles: true,
|
|
1308
|
-
hideSeriesValue: !isSeriesCompare
|
|
1311
|
+
hideSeriesValue: !isSeriesCompare,
|
|
1309
1312
|
// Show values if in seriesCompare mode
|
|
1313
|
+
legendTruncation
|
|
1310
1314
|
};
|
|
1311
1315
|
switch (legendPlacement) {
|
|
1312
1316
|
case "off":
|
|
1313
1317
|
return false;
|
|
1314
1318
|
case "left":
|
|
1315
|
-
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
1316
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1317
|
-
}, commonLegendProps));
|
|
1319
|
+
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
1318
1320
|
case "bottom":
|
|
1319
1321
|
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
1320
1322
|
wrap: true
|
|
@@ -1324,9 +1326,7 @@ var getLegend = (props) => {
|
|
|
1324
1326
|
wrap: true
|
|
1325
1327
|
}, commonLegendProps));
|
|
1326
1328
|
default:
|
|
1327
|
-
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
1328
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1329
|
-
}, commonLegendProps));
|
|
1329
|
+
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
1330
1330
|
}
|
|
1331
1331
|
};
|
|
1332
1332
|
var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
|
|
@@ -1387,9 +1387,7 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibilit
|
|
|
1387
1387
|
if (yAxisAbbreviation !== "none") {
|
|
1388
1388
|
yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
|
|
1389
1389
|
}
|
|
1390
|
-
if (yAxisAbbreviation
|
|
1391
|
-
yConfig.y.width = 55;
|
|
1392
|
-
} else {
|
|
1390
|
+
if (yAxisAbbreviation !== "none") {
|
|
1393
1391
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
1394
1392
|
}
|
|
1395
1393
|
if (yAxisLabelVisibility === "hide") {
|
|
@@ -1412,6 +1410,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1412
1410
|
y2Config.y2.type = scaleType;
|
|
1413
1411
|
if (axisAbbreviation !== "none") {
|
|
1414
1412
|
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
1413
|
+
y2Config.y2.width = label && label.length > 0 ? 50 : 10;
|
|
1415
1414
|
} else if (roundAxisLabelsToInteger) {
|
|
1416
1415
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
1417
1416
|
}
|
|
@@ -1427,7 +1426,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1427
1426
|
}
|
|
1428
1427
|
return y2Config;
|
|
1429
1428
|
};
|
|
1430
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
|
|
1429
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField, stepPosition, stepPositionsByField) => {
|
|
1431
1430
|
const seriesConfig = {};
|
|
1432
1431
|
let spanGaps;
|
|
1433
1432
|
let replaceNullsWithZero;
|
|
@@ -1454,6 +1453,8 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
1454
1453
|
);
|
|
1455
1454
|
if (shouldAssignToY2) {
|
|
1456
1455
|
seriesConfig[field].overrides.scale = "y2";
|
|
1456
|
+
} else {
|
|
1457
|
+
seriesConfig[field].overrides.scale = "y";
|
|
1457
1458
|
}
|
|
1458
1459
|
}
|
|
1459
1460
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
@@ -1466,6 +1467,11 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
1466
1467
|
if (fieldDashStyle) {
|
|
1467
1468
|
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
1468
1469
|
}
|
|
1470
|
+
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
1471
|
+
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
1472
|
+
if (fieldStepPosition && fieldStepPosition !== "off") {
|
|
1473
|
+
seriesConfig[field].stepPosition = fieldStepPosition;
|
|
1474
|
+
}
|
|
1469
1475
|
if (replaceNullsWithZero !== void 0) {
|
|
1470
1476
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
1471
1477
|
}
|
|
@@ -1690,6 +1696,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1690
1696
|
backgroundColor,
|
|
1691
1697
|
defaultFontColor,
|
|
1692
1698
|
additionalTooltipValues,
|
|
1699
|
+
xAxisLineVisibility: xAxisLineVisibility,
|
|
1700
|
+
yAxisLineVisibility,
|
|
1701
|
+
y2AxisLineVisibility,
|
|
1693
1702
|
showYAxisWithZero: showYAxisWithZeroFromProps,
|
|
1694
1703
|
showY2AxisWithZero: showY2AxisWithZeroFromProps
|
|
1695
1704
|
} = _a, otherOptions = __objRest(_a, [
|
|
@@ -1713,6 +1722,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1713
1722
|
"backgroundColor",
|
|
1714
1723
|
"defaultFontColor",
|
|
1715
1724
|
"additionalTooltipValues",
|
|
1725
|
+
// Extract axis line visibility options from props
|
|
1726
|
+
"xAxisLineVisibility",
|
|
1727
|
+
"yAxisLineVisibility",
|
|
1728
|
+
"y2AxisLineVisibility",
|
|
1716
1729
|
// Extract showYAxisWithZero directly from props for accelerated render mode
|
|
1717
1730
|
"showYAxisWithZero",
|
|
1718
1731
|
"showY2AxisWithZero"
|
|
@@ -1725,6 +1738,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1725
1738
|
fieldColors,
|
|
1726
1739
|
legendLabels: legendLabelsStr,
|
|
1727
1740
|
legendMode,
|
|
1741
|
+
legendTruncation,
|
|
1728
1742
|
"axisTitleX.text": xAxisTitleText,
|
|
1729
1743
|
"axisTitleY.text": yAxisTitleText,
|
|
1730
1744
|
"axisTitleY2.text": y2AxisTitleText,
|
|
@@ -1733,6 +1747,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1733
1747
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
1734
1748
|
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
1735
1749
|
"axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
|
|
1750
|
+
"axisLabelsX.maxLabelParts": xAxisMaxLabelParts,
|
|
1736
1751
|
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
1737
1752
|
"axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
|
|
1738
1753
|
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
@@ -1750,6 +1765,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1750
1765
|
lineWidth,
|
|
1751
1766
|
lineDashStyle,
|
|
1752
1767
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
1768
|
+
stepPosition,
|
|
1769
|
+
fieldStepPositions: stepPositionsByFieldStr,
|
|
1753
1770
|
yAxisMin: yAxisMinRaw,
|
|
1754
1771
|
yAxisMax: yAxisMaxRaw,
|
|
1755
1772
|
y2AxisMin: y2AxisMinRaw,
|
|
@@ -1760,6 +1777,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1760
1777
|
showYMinorGridLines,
|
|
1761
1778
|
showY2MinorGridLines,
|
|
1762
1779
|
showLineSmoothing,
|
|
1780
|
+
xAxisMajorTickVisibility,
|
|
1781
|
+
xAxisMajorTickSize,
|
|
1763
1782
|
yAxisMajorTickVisibility,
|
|
1764
1783
|
y2AxisMajorTickVisibility,
|
|
1765
1784
|
yAxisMajorTickSize,
|
|
@@ -1776,10 +1795,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1776
1795
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
1777
1796
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
1778
1797
|
const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
|
|
1798
|
+
const showXMajorTicks = xAxisMajorTickVisibility !== "hide";
|
|
1779
1799
|
const showYMajorTicks = yAxisMajorTickVisibility === "show";
|
|
1780
1800
|
const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
|
|
1781
1801
|
const showYMinorTicks = yAxisMinorTickVisibility === "show";
|
|
1782
1802
|
const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
|
|
1803
|
+
const showXAxisLine = parseXAxisLineVisibility(xAxisLineVisibility);
|
|
1804
|
+
const showYAxisLine = yAxisLineVisibility === "show";
|
|
1805
|
+
const showY2AxisLine = y2AxisLineVisibility === "show";
|
|
1783
1806
|
const yAxisMin = parseAxisValue(yAxisMinRaw);
|
|
1784
1807
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
1785
1808
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
@@ -1794,13 +1817,15 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1794
1817
|
y2AxisMajorUnitFromSimpleXML,
|
|
1795
1818
|
y2AxisMajorTickInterval
|
|
1796
1819
|
);
|
|
1797
|
-
const
|
|
1798
|
-
const
|
|
1799
|
-
const
|
|
1800
|
-
const
|
|
1820
|
+
const xAxisMajorTickSizeNum = xAxisMajorTickSize != null ? Number(xAxisMajorTickSize) : void 0;
|
|
1821
|
+
const yAxisMajorTickSizeNum = yAxisMajorTickSize != null ? Number(yAxisMajorTickSize) : void 0;
|
|
1822
|
+
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
1823
|
+
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
1824
|
+
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
1801
1825
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
1802
1826
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
1803
1827
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
1828
|
+
const stepPositionsByField = stepPositionsByFieldStr ? JSON.parse(stepPositionsByFieldStr) : void 0;
|
|
1804
1829
|
const legendLabels = parseArrayOption(legendLabelsStr);
|
|
1805
1830
|
const bgColor = backgroundColor || bgColorFromOptions;
|
|
1806
1831
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
@@ -1888,7 +1913,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1888
1913
|
nullValueMode,
|
|
1889
1914
|
markerDisplay,
|
|
1890
1915
|
lineDashStyle,
|
|
1891
|
-
lineDashStylesByField
|
|
1916
|
+
lineDashStylesByField,
|
|
1917
|
+
stepPosition,
|
|
1918
|
+
stepPositionsByField
|
|
1892
1919
|
),
|
|
1893
1920
|
[
|
|
1894
1921
|
yFields,
|
|
@@ -1899,7 +1926,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1899
1926
|
nullValueMode,
|
|
1900
1927
|
markerDisplay,
|
|
1901
1928
|
lineDashStyle,
|
|
1902
|
-
lineDashStylesByField
|
|
1929
|
+
lineDashStylesByField,
|
|
1930
|
+
stepPosition,
|
|
1931
|
+
stepPositionsByField
|
|
1903
1932
|
]
|
|
1904
1933
|
);
|
|
1905
1934
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -1914,9 +1943,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1914
1943
|
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
1915
1944
|
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
1916
1945
|
);
|
|
1946
|
+
const isSeriesCompare = legendMode === "seriesCompare";
|
|
1917
1947
|
const legend = (0, react_exports.useMemo)(
|
|
1918
|
-
() => getLegend({
|
|
1919
|
-
|
|
1948
|
+
() => getLegend({
|
|
1949
|
+
legendDisplay: isSeriesCompare && legendDisplay !== "off" ? "right" : legendDisplay,
|
|
1950
|
+
isSeriesCompare,
|
|
1951
|
+
legendTruncation
|
|
1952
|
+
}),
|
|
1953
|
+
[legendDisplay, isSeriesCompare, legendTruncation]
|
|
1920
1954
|
);
|
|
1921
1955
|
const handleChartClick = react_exports.useCallback(
|
|
1922
1956
|
(event) => {
|
|
@@ -2021,6 +2055,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2021
2055
|
seriesConfig: seriesOverrides,
|
|
2022
2056
|
legend,
|
|
2023
2057
|
legendLabels,
|
|
2058
|
+
legendTruncation,
|
|
2024
2059
|
isSeriesCompare: legendMode === "seriesCompare",
|
|
2025
2060
|
maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
|
|
2026
2061
|
scaleConfig,
|
|
@@ -2042,6 +2077,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2042
2077
|
showY2MinorGridLines,
|
|
2043
2078
|
showLineSmoothing,
|
|
2044
2079
|
dataValuesDisplay,
|
|
2080
|
+
showXMajorTicks,
|
|
2081
|
+
xAxisMajorTickSize: xAxisMajorTickSizeNum,
|
|
2045
2082
|
showYMajorTicks,
|
|
2046
2083
|
showY2MajorTicks,
|
|
2047
2084
|
yAxisMajorTickSize: yAxisMajorTickSizeNum,
|
|
@@ -2053,7 +2090,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2053
2090
|
yAxisMinorTickSize: yAxisMinorTickSizeNum,
|
|
2054
2091
|
y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
|
|
2055
2092
|
showYAxisWithZero,
|
|
2056
|
-
showY2AxisWithZero
|
|
2093
|
+
showY2AxisWithZero,
|
|
2094
|
+
showXAxisLine,
|
|
2095
|
+
showYAxisLine,
|
|
2096
|
+
showY2AxisLine,
|
|
2097
|
+
xAxisMaxLabelParts
|
|
2057
2098
|
}
|
|
2058
2099
|
));
|
|
2059
2100
|
}, [
|
|
@@ -2068,6 +2109,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2068
2109
|
seriesOverrides,
|
|
2069
2110
|
legend,
|
|
2070
2111
|
legendLabels,
|
|
2112
|
+
legendTruncation,
|
|
2071
2113
|
scaleConfig,
|
|
2072
2114
|
onClick,
|
|
2073
2115
|
handleChartClick,
|
|
@@ -2086,6 +2128,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2086
2128
|
showY2MinorGridLines,
|
|
2087
2129
|
showLineSmoothing,
|
|
2088
2130
|
dataValuesDisplay,
|
|
2131
|
+
showXMajorTicks,
|
|
2132
|
+
xAxisMajorTickSizeNum,
|
|
2089
2133
|
showYMajorTicks,
|
|
2090
2134
|
showY2MajorTicks,
|
|
2091
2135
|
yAxisMajorTickSizeNum,
|
|
@@ -2098,7 +2142,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2098
2142
|
y2AxisMinorTickSizeNum,
|
|
2099
2143
|
showYAxisWithZero,
|
|
2100
2144
|
showY2AxisWithZero,
|
|
2101
|
-
|
|
2145
|
+
showXAxisLine,
|
|
2146
|
+
showYAxisLine,
|
|
2147
|
+
showY2AxisLine,
|
|
2148
|
+
legendMode,
|
|
2149
|
+
xAxisMaxLabelParts
|
|
2102
2150
|
]);
|
|
2103
2151
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2104
2152
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|