@splunk/visualizations 28.4.0 → 28.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/Area.config.js +28 -7
  2. package/Area.config.js.map +2 -2
  3. package/Area.js +109 -39
  4. package/Area.js.map +2 -2
  5. package/Bar.config.js +28 -7
  6. package/Bar.config.js.map +2 -2
  7. package/Bar.js +109 -39
  8. package/Bar.js.map +2 -2
  9. package/Bubble.config.js +4 -4
  10. package/Bubble.config.js.map +2 -2
  11. package/Bubble.js +81 -30
  12. package/Bubble.js.map +2 -2
  13. package/CHANGELOG.external.md +98 -0
  14. package/ChoroplethSvg.js +74 -26
  15. package/ChoroplethSvg.js.map +2 -2
  16. package/Column.config.js +28 -7
  17. package/Column.config.js.map +2 -2
  18. package/Column.js +109 -39
  19. package/Column.js.map +2 -2
  20. package/Ellipse/config.d.ts.map +1 -1
  21. package/Ellipse.config.js +14 -5
  22. package/Ellipse.config.js.map +4 -4
  23. package/Ellipse.js +130 -73
  24. package/Ellipse.js.map +4 -4
  25. package/Events.js +74 -26
  26. package/Events.js.map +2 -2
  27. package/FillerGauge.js +234 -47
  28. package/FillerGauge.js.map +2 -2
  29. package/Image.js +74 -26
  30. package/Image.js.map +2 -2
  31. package/Line/lineUtils.d.ts.map +1 -1
  32. package/Line/mockdata/LineData.d.ts +95 -0
  33. package/Line/mockdata/LineData.d.ts.map +1 -1
  34. package/Line.config.js +28 -7
  35. package/Line.config.js.map +2 -2
  36. package/Line.js +125 -41
  37. package/Line.js.map +2 -2
  38. package/LinkGraph.js +74 -26
  39. package/LinkGraph.js.map +2 -2
  40. package/Map/PureMap/BubbleLayer.d.ts.map +1 -1
  41. package/Map/PureMap/ClusterLayer.d.ts.map +1 -1
  42. package/Map/PureMap/MapUtils.d.ts +2 -2
  43. package/Map/PureMap/MapUtils.d.ts.map +1 -1
  44. package/Map/PureMap/PureMap.d.ts.map +1 -1
  45. package/Map.js +111 -37
  46. package/Map.js.map +2 -2
  47. package/Markdown/config.d.ts.map +1 -1
  48. package/Markdown.config.js +14 -5
  49. package/Markdown.config.js.map +4 -4
  50. package/Markdown.js +91 -34
  51. package/Markdown.js.map +4 -4
  52. package/MarkerGauge.js +243 -56
  53. package/MarkerGauge.js.map +4 -4
  54. package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts.map +1 -1
  55. package/NetworkGraph/PureNetworkGraph/components/Node.d.ts.map +1 -1
  56. package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts.map +1 -1
  57. package/NetworkGraph/PureNetworkGraph/utils/dragUtils.d.ts +78 -0
  58. package/NetworkGraph/PureNetworkGraph/utils/dragUtils.d.ts.map +1 -0
  59. package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts +1 -2
  60. package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts.map +1 -1
  61. package/NetworkGraph/config.d.ts.map +1 -1
  62. package/NetworkGraph.config.js +1 -0
  63. package/NetworkGraph.config.js.map +2 -2
  64. package/NetworkGraph.js +366 -105
  65. package/NetworkGraph.js.map +4 -4
  66. package/PERFORMANCE.md +23 -0
  67. package/ParallelCoordinates/ParallelCoordinates.d.ts +1 -46
  68. package/ParallelCoordinates/ParallelCoordinates.d.ts.map +1 -1
  69. package/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts +12 -58
  70. package/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts.map +1 -1
  71. package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts +1 -0
  72. package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts.map +1 -1
  73. package/ParallelCoordinates.js +150 -153
  74. package/ParallelCoordinates.js.map +4 -4
  75. package/Pie/Pie.d.ts.map +1 -1
  76. package/Pie/config.d.ts.map +1 -1
  77. package/Pie/pieUtils.d.ts +4 -0
  78. package/Pie/pieUtils.d.ts.map +1 -1
  79. package/Pie.config.js +16 -0
  80. package/Pie.config.js.map +2 -2
  81. package/Pie.js +121 -35
  82. package/Pie.js.map +2 -2
  83. package/Punchcard.js +74 -26
  84. package/Punchcard.js.map +2 -2
  85. package/Rectangle/config.d.ts.map +1 -1
  86. package/Rectangle.config.js +14 -5
  87. package/Rectangle.config.js.map +4 -4
  88. package/Rectangle.js +92 -35
  89. package/Rectangle.js.map +4 -4
  90. package/Sankey/PureSankey/PureSankey.d.ts +26 -72
  91. package/Sankey/PureSankey/PureSankey.d.ts.map +1 -1
  92. package/Sankey/PureSankey/SankeyLink.d.ts +3 -19
  93. package/Sankey/PureSankey/SankeyLink.d.ts.map +1 -1
  94. package/Sankey/PureSankey/SankeyNode.d.ts +3 -20
  95. package/Sankey/PureSankey/SankeyNode.d.ts.map +1 -1
  96. package/Sankey/PureSankey/SankeyTooltip.d.ts +3 -24
  97. package/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -1
  98. package/Sankey.js +270 -336
  99. package/Sankey.js.map +2 -2
  100. package/Scatter.config.js +168 -147
  101. package/Scatter.config.js.map +4 -4
  102. package/Scatter.js +249 -179
  103. package/Scatter.js.map +4 -4
  104. package/SingleValue.js +96 -75
  105. package/SingleValue.js.map +2 -2
  106. package/SingleValueIcon/config.d.ts.map +1 -1
  107. package/SingleValueIcon.config.js +14 -5
  108. package/SingleValueIcon.config.js.map +4 -4
  109. package/SingleValueIcon.js +118 -76
  110. package/SingleValueIcon.js.map +4 -4
  111. package/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +1 -1
  112. package/SingleValueRadial.js +95 -76
  113. package/SingleValueRadial.js.map +2 -2
  114. package/Table/Table.d.ts.map +1 -1
  115. package/Table/hooks.d.ts +2 -0
  116. package/Table/hooks.d.ts.map +1 -1
  117. package/Table.js +95 -49
  118. package/Table.js.map +2 -2
  119. package/Timeline/PureTimeline/PureTimeline.d.ts.map +1 -1
  120. package/Timeline/PureTimeline/src/TimelinePlugin.d.ts.map +1 -1
  121. package/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -1
  122. package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts +2 -1
  123. package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -1
  124. package/Timeline.js +154 -54
  125. package/Timeline.js.map +2 -2
  126. package/common/Charting.d.ts.map +1 -1
  127. package/common/Charting.js +3 -0
  128. package/common/Charting.js.map +2 -2
  129. package/common/GaugeMajorTicks.js +150 -13
  130. package/common/GaugeMajorTicks.js.map +4 -4
  131. package/common/GaugeValueMarker.js +84 -17
  132. package/common/GaugeValueMarker.js.map +4 -4
  133. package/common/OptionsDoc.js.map +1 -1
  134. package/common/OverviewDoc.d.ts.map +1 -1
  135. package/common/OverviewDoc.js +2 -2
  136. package/common/OverviewDoc.js.map +2 -2
  137. package/common/TimeSeriesChartWrapper.d.ts.map +1 -1
  138. package/common/TimeSeriesChartWrapper.js +72 -24
  139. package/common/TimeSeriesChartWrapper.js.map +2 -2
  140. package/common/chartingUtils.d.ts +9 -3
  141. package/common/chartingUtils.d.ts.map +1 -1
  142. package/common/chartingUtils.js +21 -16
  143. package/common/chartingUtils.js.map +2 -2
  144. package/common/editorConfig/AxesChartDataConfig.d.ts +3 -3
  145. package/common/editorConfig/AxesChartDataConfig.d.ts.map +1 -1
  146. package/common/editorConfig/AxesChartDataDisplay.d.ts +4 -0
  147. package/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -1
  148. package/common/editorConfig/AxesChartLegend.d.ts.map +1 -1
  149. package/common/gaugeUtils.d.ts +37 -0
  150. package/common/gaugeUtils.d.ts.map +1 -1
  151. package/common/gaugeUtils.js +152 -2
  152. package/common/gaugeUtils.js.map +4 -4
  153. package/common/hocs/mockdata/trellisData.d.ts +119 -0
  154. package/common/hocs/mockdata/trellisData.d.ts.map +1 -1
  155. package/common/interfaces/Overview.d.ts +1 -0
  156. package/common/interfaces/Overview.d.ts.map +1 -1
  157. package/common/interfaces/VizConfig.d.ts +2 -1
  158. package/common/interfaces/VizConfig.d.ts.map +1 -1
  159. package/common/utils/mapUtils.js.map +1 -1
  160. package/common/utils/trellisUtils.d.ts.map +1 -1
  161. package/common/utils/trellisUtils.js +4 -6
  162. package/common/utils/trellisUtils.js.map +2 -2
  163. package/common/withDashboardViz.js +74 -26
  164. package/common/withDashboardViz.js.map +2 -2
  165. 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.4.0 - 002bd482f"
604
+ "data-splunk-visualization-version": "28.5.1 - 617766eb3"
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.4.0 - 002bd482f",
694
+ "data-splunk-visualization-version": "28.5.1 - 617766eb3",
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 SideLegendWidth = 75;
1300
- var SeriesCompareLegendWidth = 200;
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 === "none") {
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 yAxisMajorTickSizeNum = yAxisMajorTickSize ? Number(yAxisMajorTickSize) : void 0;
1798
- const y2AxisMajorTickSizeNum = y2AxisMajorTickSize ? Number(y2AxisMajorTickSize) : void 0;
1799
- const yAxisMinorTickSizeNum = yAxisMinorTickSize ? Number(yAxisMinorTickSize) : void 0;
1800
- const y2AxisMinorTickSizeNum = y2AxisMinorTickSize ? Number(y2AxisMinorTickSize) : void 0;
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({ legendDisplay, isSeriesCompare: legendMode === "seriesCompare" }),
1919
- [legendDisplay, legendMode]
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
- legendMode
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);