@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/Events.js
CHANGED
|
@@ -489,7 +489,7 @@ var Cover = styled_components_default.div`
|
|
|
489
489
|
bottom: 0;
|
|
490
490
|
`;
|
|
491
491
|
var Blocker = styled_components_default.div.attrs({
|
|
492
|
-
"data-splunk-visualization-version": "28.
|
|
492
|
+
"data-splunk-visualization-version": "28.5.0 - b192418b7"
|
|
493
493
|
})`
|
|
494
494
|
position: relative;
|
|
495
495
|
width: 100%;
|
|
@@ -588,7 +588,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
588
588
|
FixSizeItem,
|
|
589
589
|
{
|
|
590
590
|
"data-test": "fix-size-item",
|
|
591
|
-
"data-splunk-visualization-version": "28.
|
|
591
|
+
"data-splunk-visualization-version": "28.5.0 - b192418b7",
|
|
592
592
|
width,
|
|
593
593
|
height,
|
|
594
594
|
backgroundColor
|
|
@@ -1210,25 +1210,27 @@ var parseAxisValue = (val) => {
|
|
|
1210
1210
|
const num = typeof val === "number" ? val : Number.parseFloat(val);
|
|
1211
1211
|
return Number.isNaN(num) ? void 0 : num;
|
|
1212
1212
|
};
|
|
1213
|
-
var
|
|
1214
|
-
|
|
1213
|
+
var parseXAxisLineVisibility = (visibility) => {
|
|
1214
|
+
if (visibility === "hide") return false;
|
|
1215
|
+
if (visibility === "show") return true;
|
|
1216
|
+
return void 0;
|
|
1217
|
+
};
|
|
1215
1218
|
var getLegend = (props) => {
|
|
1216
1219
|
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
1217
|
-
const { isSeriesCompare } = props;
|
|
1220
|
+
const { isSeriesCompare, legendTruncation } = props;
|
|
1218
1221
|
const commonLegendProps = {
|
|
1219
1222
|
center: true,
|
|
1220
1223
|
fontSize: 12,
|
|
1221
1224
|
largerTiles: true,
|
|
1222
|
-
hideSeriesValue: !isSeriesCompare
|
|
1225
|
+
hideSeriesValue: !isSeriesCompare,
|
|
1223
1226
|
// Show values if in seriesCompare mode
|
|
1227
|
+
legendTruncation
|
|
1224
1228
|
};
|
|
1225
1229
|
switch (legendPlacement) {
|
|
1226
1230
|
case "off":
|
|
1227
1231
|
return false;
|
|
1228
1232
|
case "left":
|
|
1229
|
-
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
1230
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1231
|
-
}, commonLegendProps));
|
|
1233
|
+
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
1232
1234
|
case "bottom":
|
|
1233
1235
|
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
1234
1236
|
wrap: true
|
|
@@ -1238,9 +1240,7 @@ var getLegend = (props) => {
|
|
|
1238
1240
|
wrap: true
|
|
1239
1241
|
}, commonLegendProps));
|
|
1240
1242
|
default:
|
|
1241
|
-
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
1242
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1243
|
-
}, commonLegendProps));
|
|
1243
|
+
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
1244
1244
|
}
|
|
1245
1245
|
};
|
|
1246
1246
|
var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
|
|
@@ -1301,9 +1301,7 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibilit
|
|
|
1301
1301
|
if (yAxisAbbreviation !== "none") {
|
|
1302
1302
|
yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
|
|
1303
1303
|
}
|
|
1304
|
-
if (yAxisAbbreviation
|
|
1305
|
-
yConfig.y.width = 55;
|
|
1306
|
-
} else {
|
|
1304
|
+
if (yAxisAbbreviation !== "none") {
|
|
1307
1305
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
1308
1306
|
}
|
|
1309
1307
|
if (yAxisLabelVisibility === "hide") {
|
|
@@ -1326,6 +1324,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1326
1324
|
y2Config.y2.type = scaleType;
|
|
1327
1325
|
if (axisAbbreviation !== "none") {
|
|
1328
1326
|
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
1327
|
+
y2Config.y2.width = label && label.length > 0 ? 50 : 10;
|
|
1329
1328
|
} else if (roundAxisLabelsToInteger) {
|
|
1330
1329
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
1331
1330
|
}
|
|
@@ -1341,7 +1340,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1341
1340
|
}
|
|
1342
1341
|
return y2Config;
|
|
1343
1342
|
};
|
|
1344
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
|
|
1343
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField, stepPosition, stepPositionsByField) => {
|
|
1345
1344
|
const seriesConfig = {};
|
|
1346
1345
|
let spanGaps;
|
|
1347
1346
|
let replaceNullsWithZero;
|
|
@@ -1368,6 +1367,8 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
1368
1367
|
);
|
|
1369
1368
|
if (shouldAssignToY2) {
|
|
1370
1369
|
seriesConfig[field].overrides.scale = "y2";
|
|
1370
|
+
} else {
|
|
1371
|
+
seriesConfig[field].overrides.scale = "y";
|
|
1371
1372
|
}
|
|
1372
1373
|
}
|
|
1373
1374
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
@@ -1380,6 +1381,11 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
1380
1381
|
if (fieldDashStyle) {
|
|
1381
1382
|
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
1382
1383
|
}
|
|
1384
|
+
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
1385
|
+
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
1386
|
+
if (fieldStepPosition && fieldStepPosition !== "off") {
|
|
1387
|
+
seriesConfig[field].stepPosition = fieldStepPosition;
|
|
1388
|
+
}
|
|
1383
1389
|
if (replaceNullsWithZero !== void 0) {
|
|
1384
1390
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
1385
1391
|
}
|
|
@@ -1613,6 +1619,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1613
1619
|
backgroundColor,
|
|
1614
1620
|
defaultFontColor,
|
|
1615
1621
|
additionalTooltipValues,
|
|
1622
|
+
xAxisLineVisibility: xAxisLineVisibility,
|
|
1623
|
+
yAxisLineVisibility,
|
|
1624
|
+
y2AxisLineVisibility,
|
|
1616
1625
|
showYAxisWithZero: showYAxisWithZeroFromProps,
|
|
1617
1626
|
showY2AxisWithZero: showY2AxisWithZeroFromProps
|
|
1618
1627
|
} = _a, otherOptions = __objRest(_a, [
|
|
@@ -1636,6 +1645,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1636
1645
|
"backgroundColor",
|
|
1637
1646
|
"defaultFontColor",
|
|
1638
1647
|
"additionalTooltipValues",
|
|
1648
|
+
// Extract axis line visibility options from props
|
|
1649
|
+
"xAxisLineVisibility",
|
|
1650
|
+
"yAxisLineVisibility",
|
|
1651
|
+
"y2AxisLineVisibility",
|
|
1639
1652
|
// Extract showYAxisWithZero directly from props for accelerated render mode
|
|
1640
1653
|
"showYAxisWithZero",
|
|
1641
1654
|
"showY2AxisWithZero"
|
|
@@ -1648,6 +1661,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1648
1661
|
fieldColors,
|
|
1649
1662
|
legendLabels: legendLabelsStr,
|
|
1650
1663
|
legendMode,
|
|
1664
|
+
legendTruncation,
|
|
1651
1665
|
"axisTitleX.text": xAxisTitleText,
|
|
1652
1666
|
"axisTitleY.text": yAxisTitleText,
|
|
1653
1667
|
"axisTitleY2.text": y2AxisTitleText,
|
|
@@ -1656,6 +1670,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1656
1670
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
1657
1671
|
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
1658
1672
|
"axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
|
|
1673
|
+
"axisLabelsX.maxLabelParts": xAxisMaxLabelParts,
|
|
1659
1674
|
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
1660
1675
|
"axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
|
|
1661
1676
|
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
@@ -1673,6 +1688,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1673
1688
|
lineWidth,
|
|
1674
1689
|
lineDashStyle,
|
|
1675
1690
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
1691
|
+
stepPosition,
|
|
1692
|
+
fieldStepPositions: stepPositionsByFieldStr,
|
|
1676
1693
|
yAxisMin: yAxisMinRaw,
|
|
1677
1694
|
yAxisMax: yAxisMaxRaw,
|
|
1678
1695
|
y2AxisMin: y2AxisMinRaw,
|
|
@@ -1683,6 +1700,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1683
1700
|
showYMinorGridLines,
|
|
1684
1701
|
showY2MinorGridLines,
|
|
1685
1702
|
showLineSmoothing,
|
|
1703
|
+
xAxisMajorTickVisibility,
|
|
1704
|
+
xAxisMajorTickSize,
|
|
1686
1705
|
yAxisMajorTickVisibility,
|
|
1687
1706
|
y2AxisMajorTickVisibility,
|
|
1688
1707
|
yAxisMajorTickSize,
|
|
@@ -1699,10 +1718,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1699
1718
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
1700
1719
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
1701
1720
|
const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
|
|
1721
|
+
const showXMajorTicks = xAxisMajorTickVisibility !== "hide";
|
|
1702
1722
|
const showYMajorTicks = yAxisMajorTickVisibility === "show";
|
|
1703
1723
|
const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
|
|
1704
1724
|
const showYMinorTicks = yAxisMinorTickVisibility === "show";
|
|
1705
1725
|
const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
|
|
1726
|
+
const showXAxisLine = parseXAxisLineVisibility(xAxisLineVisibility);
|
|
1727
|
+
const showYAxisLine = yAxisLineVisibility === "show";
|
|
1728
|
+
const showY2AxisLine = y2AxisLineVisibility === "show";
|
|
1706
1729
|
const yAxisMin = parseAxisValue(yAxisMinRaw);
|
|
1707
1730
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
1708
1731
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
@@ -1717,13 +1740,15 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1717
1740
|
y2AxisMajorUnitFromSimpleXML,
|
|
1718
1741
|
y2AxisMajorTickInterval
|
|
1719
1742
|
);
|
|
1720
|
-
const
|
|
1721
|
-
const
|
|
1722
|
-
const
|
|
1723
|
-
const
|
|
1743
|
+
const xAxisMajorTickSizeNum = xAxisMajorTickSize != null ? Number(xAxisMajorTickSize) : void 0;
|
|
1744
|
+
const yAxisMajorTickSizeNum = yAxisMajorTickSize != null ? Number(yAxisMajorTickSize) : void 0;
|
|
1745
|
+
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
1746
|
+
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
1747
|
+
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
1724
1748
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
1725
1749
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
1726
1750
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
1751
|
+
const stepPositionsByField = stepPositionsByFieldStr ? JSON.parse(stepPositionsByFieldStr) : void 0;
|
|
1727
1752
|
const legendLabels = parseArrayOption(legendLabelsStr);
|
|
1728
1753
|
const bgColor = backgroundColor || bgColorFromOptions;
|
|
1729
1754
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
@@ -1811,7 +1836,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1811
1836
|
nullValueMode,
|
|
1812
1837
|
markerDisplay,
|
|
1813
1838
|
lineDashStyle,
|
|
1814
|
-
lineDashStylesByField
|
|
1839
|
+
lineDashStylesByField,
|
|
1840
|
+
stepPosition,
|
|
1841
|
+
stepPositionsByField
|
|
1815
1842
|
),
|
|
1816
1843
|
[
|
|
1817
1844
|
yFields,
|
|
@@ -1822,7 +1849,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1822
1849
|
nullValueMode,
|
|
1823
1850
|
markerDisplay,
|
|
1824
1851
|
lineDashStyle,
|
|
1825
|
-
lineDashStylesByField
|
|
1852
|
+
lineDashStylesByField,
|
|
1853
|
+
stepPosition,
|
|
1854
|
+
stepPositionsByField
|
|
1826
1855
|
]
|
|
1827
1856
|
);
|
|
1828
1857
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -1837,9 +1866,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1837
1866
|
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
1838
1867
|
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
1839
1868
|
);
|
|
1869
|
+
const isSeriesCompare = legendMode === "seriesCompare";
|
|
1840
1870
|
const legend = (0, react_exports.useMemo)(
|
|
1841
|
-
() => getLegend({
|
|
1842
|
-
|
|
1871
|
+
() => getLegend({
|
|
1872
|
+
legendDisplay: isSeriesCompare && legendDisplay !== "off" ? "right" : legendDisplay,
|
|
1873
|
+
isSeriesCompare,
|
|
1874
|
+
legendTruncation
|
|
1875
|
+
}),
|
|
1876
|
+
[legendDisplay, isSeriesCompare, legendTruncation]
|
|
1843
1877
|
);
|
|
1844
1878
|
const handleChartClick = react_exports.useCallback(
|
|
1845
1879
|
(event) => {
|
|
@@ -1944,6 +1978,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1944
1978
|
seriesConfig: seriesOverrides,
|
|
1945
1979
|
legend,
|
|
1946
1980
|
legendLabels,
|
|
1981
|
+
legendTruncation,
|
|
1947
1982
|
isSeriesCompare: legendMode === "seriesCompare",
|
|
1948
1983
|
maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
|
|
1949
1984
|
scaleConfig,
|
|
@@ -1965,6 +2000,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1965
2000
|
showY2MinorGridLines,
|
|
1966
2001
|
showLineSmoothing,
|
|
1967
2002
|
dataValuesDisplay,
|
|
2003
|
+
showXMajorTicks,
|
|
2004
|
+
xAxisMajorTickSize: xAxisMajorTickSizeNum,
|
|
1968
2005
|
showYMajorTicks,
|
|
1969
2006
|
showY2MajorTicks,
|
|
1970
2007
|
yAxisMajorTickSize: yAxisMajorTickSizeNum,
|
|
@@ -1976,7 +2013,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1976
2013
|
yAxisMinorTickSize: yAxisMinorTickSizeNum,
|
|
1977
2014
|
y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
|
|
1978
2015
|
showYAxisWithZero,
|
|
1979
|
-
showY2AxisWithZero
|
|
2016
|
+
showY2AxisWithZero,
|
|
2017
|
+
showXAxisLine,
|
|
2018
|
+
showYAxisLine,
|
|
2019
|
+
showY2AxisLine,
|
|
2020
|
+
xAxisMaxLabelParts
|
|
1980
2021
|
}
|
|
1981
2022
|
));
|
|
1982
2023
|
}, [
|
|
@@ -1991,6 +2032,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1991
2032
|
seriesOverrides,
|
|
1992
2033
|
legend,
|
|
1993
2034
|
legendLabels,
|
|
2035
|
+
legendTruncation,
|
|
1994
2036
|
scaleConfig,
|
|
1995
2037
|
onClick,
|
|
1996
2038
|
handleChartClick,
|
|
@@ -2009,6 +2051,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2009
2051
|
showY2MinorGridLines,
|
|
2010
2052
|
showLineSmoothing,
|
|
2011
2053
|
dataValuesDisplay,
|
|
2054
|
+
showXMajorTicks,
|
|
2055
|
+
xAxisMajorTickSizeNum,
|
|
2012
2056
|
showYMajorTicks,
|
|
2013
2057
|
showY2MajorTicks,
|
|
2014
2058
|
yAxisMajorTickSizeNum,
|
|
@@ -2021,7 +2065,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2021
2065
|
y2AxisMinorTickSizeNum,
|
|
2022
2066
|
showYAxisWithZero,
|
|
2023
2067
|
showY2AxisWithZero,
|
|
2024
|
-
|
|
2068
|
+
showXAxisLine,
|
|
2069
|
+
showYAxisLine,
|
|
2070
|
+
showY2AxisLine,
|
|
2071
|
+
legendMode,
|
|
2072
|
+
xAxisMaxLabelParts
|
|
2025
2073
|
]);
|
|
2026
2074
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2027
2075
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|