@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/Punchcard.js
CHANGED
|
@@ -754,7 +754,7 @@ var Cover = styled_components_default.div`
|
|
|
754
754
|
bottom: 0;
|
|
755
755
|
`;
|
|
756
756
|
var Blocker = styled_components_default.div.attrs({
|
|
757
|
-
"data-splunk-visualization-version": "28.
|
|
757
|
+
"data-splunk-visualization-version": "28.5.0 - b192418b7"
|
|
758
758
|
})`
|
|
759
759
|
position: relative;
|
|
760
760
|
width: 100%;
|
|
@@ -844,7 +844,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
844
844
|
FixSizeItem,
|
|
845
845
|
{
|
|
846
846
|
"data-test": "fix-size-item",
|
|
847
|
-
"data-splunk-visualization-version": "28.
|
|
847
|
+
"data-splunk-visualization-version": "28.5.0 - b192418b7",
|
|
848
848
|
width,
|
|
849
849
|
height,
|
|
850
850
|
backgroundColor
|
|
@@ -1461,25 +1461,27 @@ var parseAxisValue = (val) => {
|
|
|
1461
1461
|
const num = typeof val === "number" ? val : Number.parseFloat(val);
|
|
1462
1462
|
return Number.isNaN(num) ? void 0 : num;
|
|
1463
1463
|
};
|
|
1464
|
-
var
|
|
1465
|
-
|
|
1464
|
+
var parseXAxisLineVisibility = (visibility) => {
|
|
1465
|
+
if (visibility === "hide") return false;
|
|
1466
|
+
if (visibility === "show") return true;
|
|
1467
|
+
return void 0;
|
|
1468
|
+
};
|
|
1466
1469
|
var getLegend = (props) => {
|
|
1467
1470
|
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
1468
|
-
const { isSeriesCompare } = props;
|
|
1471
|
+
const { isSeriesCompare, legendTruncation } = props;
|
|
1469
1472
|
const commonLegendProps = {
|
|
1470
1473
|
center: true,
|
|
1471
1474
|
fontSize: 12,
|
|
1472
1475
|
largerTiles: true,
|
|
1473
|
-
hideSeriesValue: !isSeriesCompare
|
|
1476
|
+
hideSeriesValue: !isSeriesCompare,
|
|
1474
1477
|
// Show values if in seriesCompare mode
|
|
1478
|
+
legendTruncation
|
|
1475
1479
|
};
|
|
1476
1480
|
switch (legendPlacement) {
|
|
1477
1481
|
case "off":
|
|
1478
1482
|
return false;
|
|
1479
1483
|
case "left":
|
|
1480
|
-
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
1481
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1482
|
-
}, commonLegendProps));
|
|
1484
|
+
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
1483
1485
|
case "bottom":
|
|
1484
1486
|
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
1485
1487
|
wrap: true
|
|
@@ -1489,9 +1491,7 @@ var getLegend = (props) => {
|
|
|
1489
1491
|
wrap: true
|
|
1490
1492
|
}, commonLegendProps));
|
|
1491
1493
|
default:
|
|
1492
|
-
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
1493
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1494
|
-
}, commonLegendProps));
|
|
1494
|
+
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
1495
1495
|
}
|
|
1496
1496
|
};
|
|
1497
1497
|
var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
|
|
@@ -1552,9 +1552,7 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibilit
|
|
|
1552
1552
|
if (yAxisAbbreviation !== "none") {
|
|
1553
1553
|
yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
|
|
1554
1554
|
}
|
|
1555
|
-
if (yAxisAbbreviation
|
|
1556
|
-
yConfig.y.width = 55;
|
|
1557
|
-
} else {
|
|
1555
|
+
if (yAxisAbbreviation !== "none") {
|
|
1558
1556
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
1559
1557
|
}
|
|
1560
1558
|
if (yAxisLabelVisibility === "hide") {
|
|
@@ -1577,6 +1575,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1577
1575
|
y2Config.y2.type = scaleType;
|
|
1578
1576
|
if (axisAbbreviation !== "none") {
|
|
1579
1577
|
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
1578
|
+
y2Config.y2.width = label && label.length > 0 ? 50 : 10;
|
|
1580
1579
|
} else if (roundAxisLabelsToInteger) {
|
|
1581
1580
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
1582
1581
|
}
|
|
@@ -1592,7 +1591,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1592
1591
|
}
|
|
1593
1592
|
return y2Config;
|
|
1594
1593
|
};
|
|
1595
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
|
|
1594
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField, stepPosition, stepPositionsByField) => {
|
|
1596
1595
|
const seriesConfig = {};
|
|
1597
1596
|
let spanGaps;
|
|
1598
1597
|
let replaceNullsWithZero;
|
|
@@ -1619,6 +1618,8 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
1619
1618
|
);
|
|
1620
1619
|
if (shouldAssignToY2) {
|
|
1621
1620
|
seriesConfig[field].overrides.scale = "y2";
|
|
1621
|
+
} else {
|
|
1622
|
+
seriesConfig[field].overrides.scale = "y";
|
|
1622
1623
|
}
|
|
1623
1624
|
}
|
|
1624
1625
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
@@ -1631,6 +1632,11 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
1631
1632
|
if (fieldDashStyle) {
|
|
1632
1633
|
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
1633
1634
|
}
|
|
1635
|
+
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
1636
|
+
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
1637
|
+
if (fieldStepPosition && fieldStepPosition !== "off") {
|
|
1638
|
+
seriesConfig[field].stepPosition = fieldStepPosition;
|
|
1639
|
+
}
|
|
1634
1640
|
if (replaceNullsWithZero !== void 0) {
|
|
1635
1641
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
1636
1642
|
}
|
|
@@ -1855,6 +1861,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1855
1861
|
backgroundColor,
|
|
1856
1862
|
defaultFontColor,
|
|
1857
1863
|
additionalTooltipValues,
|
|
1864
|
+
xAxisLineVisibility: xAxisLineVisibility,
|
|
1865
|
+
yAxisLineVisibility,
|
|
1866
|
+
y2AxisLineVisibility,
|
|
1858
1867
|
showYAxisWithZero: showYAxisWithZeroFromProps,
|
|
1859
1868
|
showY2AxisWithZero: showY2AxisWithZeroFromProps
|
|
1860
1869
|
} = _a, otherOptions = __objRest(_a, [
|
|
@@ -1878,6 +1887,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1878
1887
|
"backgroundColor",
|
|
1879
1888
|
"defaultFontColor",
|
|
1880
1889
|
"additionalTooltipValues",
|
|
1890
|
+
// Extract axis line visibility options from props
|
|
1891
|
+
"xAxisLineVisibility",
|
|
1892
|
+
"yAxisLineVisibility",
|
|
1893
|
+
"y2AxisLineVisibility",
|
|
1881
1894
|
// Extract showYAxisWithZero directly from props for accelerated render mode
|
|
1882
1895
|
"showYAxisWithZero",
|
|
1883
1896
|
"showY2AxisWithZero"
|
|
@@ -1890,6 +1903,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1890
1903
|
fieldColors,
|
|
1891
1904
|
legendLabels: legendLabelsStr,
|
|
1892
1905
|
legendMode,
|
|
1906
|
+
legendTruncation,
|
|
1893
1907
|
"axisTitleX.text": xAxisTitleText,
|
|
1894
1908
|
"axisTitleY.text": yAxisTitleText,
|
|
1895
1909
|
"axisTitleY2.text": y2AxisTitleText,
|
|
@@ -1898,6 +1912,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1898
1912
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
1899
1913
|
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
1900
1914
|
"axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
|
|
1915
|
+
"axisLabelsX.maxLabelParts": xAxisMaxLabelParts,
|
|
1901
1916
|
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
1902
1917
|
"axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
|
|
1903
1918
|
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
@@ -1915,6 +1930,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1915
1930
|
lineWidth,
|
|
1916
1931
|
lineDashStyle,
|
|
1917
1932
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
1933
|
+
stepPosition,
|
|
1934
|
+
fieldStepPositions: stepPositionsByFieldStr,
|
|
1918
1935
|
yAxisMin: yAxisMinRaw,
|
|
1919
1936
|
yAxisMax: yAxisMaxRaw,
|
|
1920
1937
|
y2AxisMin: y2AxisMinRaw,
|
|
@@ -1925,6 +1942,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1925
1942
|
showYMinorGridLines,
|
|
1926
1943
|
showY2MinorGridLines,
|
|
1927
1944
|
showLineSmoothing,
|
|
1945
|
+
xAxisMajorTickVisibility,
|
|
1946
|
+
xAxisMajorTickSize,
|
|
1928
1947
|
yAxisMajorTickVisibility,
|
|
1929
1948
|
y2AxisMajorTickVisibility,
|
|
1930
1949
|
yAxisMajorTickSize,
|
|
@@ -1941,10 +1960,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1941
1960
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
1942
1961
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
1943
1962
|
const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
|
|
1963
|
+
const showXMajorTicks = xAxisMajorTickVisibility !== "hide";
|
|
1944
1964
|
const showYMajorTicks = yAxisMajorTickVisibility === "show";
|
|
1945
1965
|
const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
|
|
1946
1966
|
const showYMinorTicks = yAxisMinorTickVisibility === "show";
|
|
1947
1967
|
const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
|
|
1968
|
+
const showXAxisLine = parseXAxisLineVisibility(xAxisLineVisibility);
|
|
1969
|
+
const showYAxisLine = yAxisLineVisibility === "show";
|
|
1970
|
+
const showY2AxisLine = y2AxisLineVisibility === "show";
|
|
1948
1971
|
const yAxisMin = parseAxisValue(yAxisMinRaw);
|
|
1949
1972
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
1950
1973
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
@@ -1959,13 +1982,15 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1959
1982
|
y2AxisMajorUnitFromSimpleXML,
|
|
1960
1983
|
y2AxisMajorTickInterval
|
|
1961
1984
|
);
|
|
1962
|
-
const
|
|
1963
|
-
const
|
|
1964
|
-
const
|
|
1965
|
-
const
|
|
1985
|
+
const xAxisMajorTickSizeNum = xAxisMajorTickSize != null ? Number(xAxisMajorTickSize) : void 0;
|
|
1986
|
+
const yAxisMajorTickSizeNum = yAxisMajorTickSize != null ? Number(yAxisMajorTickSize) : void 0;
|
|
1987
|
+
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
1988
|
+
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
1989
|
+
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
1966
1990
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
1967
1991
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
1968
1992
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
1993
|
+
const stepPositionsByField = stepPositionsByFieldStr ? JSON.parse(stepPositionsByFieldStr) : void 0;
|
|
1969
1994
|
const legendLabels = parseArrayOption(legendLabelsStr);
|
|
1970
1995
|
const bgColor = backgroundColor || bgColorFromOptions;
|
|
1971
1996
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
@@ -2053,7 +2078,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2053
2078
|
nullValueMode,
|
|
2054
2079
|
markerDisplay,
|
|
2055
2080
|
lineDashStyle,
|
|
2056
|
-
lineDashStylesByField
|
|
2081
|
+
lineDashStylesByField,
|
|
2082
|
+
stepPosition,
|
|
2083
|
+
stepPositionsByField
|
|
2057
2084
|
),
|
|
2058
2085
|
[
|
|
2059
2086
|
yFields,
|
|
@@ -2064,7 +2091,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2064
2091
|
nullValueMode,
|
|
2065
2092
|
markerDisplay,
|
|
2066
2093
|
lineDashStyle,
|
|
2067
|
-
lineDashStylesByField
|
|
2094
|
+
lineDashStylesByField,
|
|
2095
|
+
stepPosition,
|
|
2096
|
+
stepPositionsByField
|
|
2068
2097
|
]
|
|
2069
2098
|
);
|
|
2070
2099
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -2079,9 +2108,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2079
2108
|
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
2080
2109
|
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
2081
2110
|
);
|
|
2111
|
+
const isSeriesCompare = legendMode === "seriesCompare";
|
|
2082
2112
|
const legend = (0, react_exports.useMemo)(
|
|
2083
|
-
() => getLegend({
|
|
2084
|
-
|
|
2113
|
+
() => getLegend({
|
|
2114
|
+
legendDisplay: isSeriesCompare && legendDisplay !== "off" ? "right" : legendDisplay,
|
|
2115
|
+
isSeriesCompare,
|
|
2116
|
+
legendTruncation
|
|
2117
|
+
}),
|
|
2118
|
+
[legendDisplay, isSeriesCompare, legendTruncation]
|
|
2085
2119
|
);
|
|
2086
2120
|
const handleChartClick = react_exports.useCallback(
|
|
2087
2121
|
(event) => {
|
|
@@ -2186,6 +2220,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2186
2220
|
seriesConfig: seriesOverrides,
|
|
2187
2221
|
legend,
|
|
2188
2222
|
legendLabels,
|
|
2223
|
+
legendTruncation,
|
|
2189
2224
|
isSeriesCompare: legendMode === "seriesCompare",
|
|
2190
2225
|
maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
|
|
2191
2226
|
scaleConfig,
|
|
@@ -2207,6 +2242,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2207
2242
|
showY2MinorGridLines,
|
|
2208
2243
|
showLineSmoothing,
|
|
2209
2244
|
dataValuesDisplay,
|
|
2245
|
+
showXMajorTicks,
|
|
2246
|
+
xAxisMajorTickSize: xAxisMajorTickSizeNum,
|
|
2210
2247
|
showYMajorTicks,
|
|
2211
2248
|
showY2MajorTicks,
|
|
2212
2249
|
yAxisMajorTickSize: yAxisMajorTickSizeNum,
|
|
@@ -2218,7 +2255,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2218
2255
|
yAxisMinorTickSize: yAxisMinorTickSizeNum,
|
|
2219
2256
|
y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
|
|
2220
2257
|
showYAxisWithZero,
|
|
2221
|
-
showY2AxisWithZero
|
|
2258
|
+
showY2AxisWithZero,
|
|
2259
|
+
showXAxisLine,
|
|
2260
|
+
showYAxisLine,
|
|
2261
|
+
showY2AxisLine,
|
|
2262
|
+
xAxisMaxLabelParts
|
|
2222
2263
|
}
|
|
2223
2264
|
));
|
|
2224
2265
|
}, [
|
|
@@ -2233,6 +2274,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2233
2274
|
seriesOverrides,
|
|
2234
2275
|
legend,
|
|
2235
2276
|
legendLabels,
|
|
2277
|
+
legendTruncation,
|
|
2236
2278
|
scaleConfig,
|
|
2237
2279
|
onClick,
|
|
2238
2280
|
handleChartClick,
|
|
@@ -2251,6 +2293,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2251
2293
|
showY2MinorGridLines,
|
|
2252
2294
|
showLineSmoothing,
|
|
2253
2295
|
dataValuesDisplay,
|
|
2296
|
+
showXMajorTicks,
|
|
2297
|
+
xAxisMajorTickSizeNum,
|
|
2254
2298
|
showYMajorTicks,
|
|
2255
2299
|
showY2MajorTicks,
|
|
2256
2300
|
yAxisMajorTickSizeNum,
|
|
@@ -2263,7 +2307,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2263
2307
|
y2AxisMinorTickSizeNum,
|
|
2264
2308
|
showYAxisWithZero,
|
|
2265
2309
|
showY2AxisWithZero,
|
|
2266
|
-
|
|
2310
|
+
showXAxisLine,
|
|
2311
|
+
showYAxisLine,
|
|
2312
|
+
showY2AxisLine,
|
|
2313
|
+
legendMode,
|
|
2314
|
+
xAxisMaxLabelParts
|
|
2267
2315
|
]);
|
|
2268
2316
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2269
2317
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|