@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/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.4.0 - 002bd482f"
492
+ "data-splunk-visualization-version": "28.5.1 - 617766eb3"
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.4.0 - 002bd482f",
591
+ "data-splunk-visualization-version": "28.5.1 - 617766eb3",
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 SideLegendWidth = 75;
1214
- var SeriesCompareLegendWidth = 200;
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 === "none") {
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 yAxisMajorTickSizeNum = yAxisMajorTickSize ? Number(yAxisMajorTickSize) : void 0;
1721
- const y2AxisMajorTickSizeNum = y2AxisMajorTickSize ? Number(y2AxisMajorTickSize) : void 0;
1722
- const yAxisMinorTickSizeNum = yAxisMinorTickSize ? Number(yAxisMinorTickSize) : void 0;
1723
- const y2AxisMinorTickSizeNum = y2AxisMinorTickSize ? Number(y2AxisMinorTickSize) : void 0;
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({ legendDisplay, isSeriesCompare: legendMode === "seriesCompare" }),
1842
- [legendDisplay, legendMode]
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
- legendMode
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);