@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
@@ -474,7 +474,7 @@ var Cover = styled_components_default.div`
474
474
  bottom: 0;
475
475
  `;
476
476
  var Blocker = styled_components_default.div.attrs({
477
- "data-splunk-visualization-version": "28.4.0 - 002bd482f"
477
+ "data-splunk-visualization-version": "28.5.1 - 617766eb3"
478
478
  })`
479
479
  position: relative;
480
480
  width: 100%;
@@ -573,7 +573,7 @@ var withFixedSizeContainer = (Viz) => {
573
573
  FixSizeItem,
574
574
  {
575
575
  "data-test": "fix-size-item",
576
- "data-splunk-visualization-version": "28.4.0 - 002bd482f",
576
+ "data-splunk-visualization-version": "28.5.1 - 617766eb3",
577
577
  width,
578
578
  height,
579
579
  backgroundColor
@@ -1178,25 +1178,27 @@ var parseAxisValue = (val) => {
1178
1178
  const num = typeof val === "number" ? val : Number.parseFloat(val);
1179
1179
  return Number.isNaN(num) ? void 0 : num;
1180
1180
  };
1181
- var SideLegendWidth = 75;
1182
- var SeriesCompareLegendWidth = 200;
1181
+ var parseXAxisLineVisibility = (visibility) => {
1182
+ if (visibility === "hide") return false;
1183
+ if (visibility === "show") return true;
1184
+ return void 0;
1185
+ };
1183
1186
  var getLegend = (props) => {
1184
1187
  const legendPlacement = props == null ? void 0 : props.legendDisplay;
1185
- const { isSeriesCompare } = props;
1188
+ const { isSeriesCompare, legendTruncation } = props;
1186
1189
  const commonLegendProps = {
1187
1190
  center: true,
1188
1191
  fontSize: 12,
1189
1192
  largerTiles: true,
1190
- hideSeriesValue: !isSeriesCompare
1193
+ hideSeriesValue: !isSeriesCompare,
1191
1194
  // Show values if in seriesCompare mode
1195
+ legendTruncation
1192
1196
  };
1193
1197
  switch (legendPlacement) {
1194
1198
  case "off":
1195
1199
  return false;
1196
1200
  case "left":
1197
- return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
1198
- width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
1199
- }, commonLegendProps));
1201
+ return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({}, commonLegendProps));
1200
1202
  case "bottom":
1201
1203
  return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
1202
1204
  wrap: true
@@ -1206,9 +1208,7 @@ var getLegend = (props) => {
1206
1208
  wrap: true
1207
1209
  }, commonLegendProps));
1208
1210
  default:
1209
- return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
1210
- width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
1211
- }, commonLegendProps));
1211
+ return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({}, commonLegendProps));
1212
1212
  }
1213
1213
  };
1214
1214
  var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
@@ -1269,9 +1269,7 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibilit
1269
1269
  if (yAxisAbbreviation !== "none") {
1270
1270
  yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
1271
1271
  }
1272
- if (yAxisAbbreviation === "none") {
1273
- yConfig.y.width = 55;
1274
- } else {
1272
+ if (yAxisAbbreviation !== "none") {
1275
1273
  yConfig.y.width = label && label.length > 0 ? 30 : 10;
1276
1274
  }
1277
1275
  if (yAxisLabelVisibility === "hide") {
@@ -1294,6 +1292,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
1294
1292
  y2Config.y2.type = scaleType;
1295
1293
  if (axisAbbreviation !== "none") {
1296
1294
  y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
1295
+ y2Config.y2.width = label && label.length > 0 ? 50 : 10;
1297
1296
  } else if (roundAxisLabelsToInteger) {
1298
1297
  y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
1299
1298
  }
@@ -1309,7 +1308,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
1309
1308
  }
1310
1309
  return y2Config;
1311
1310
  };
1312
- var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
1311
+ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField, stepPosition, stepPositionsByField) => {
1313
1312
  const seriesConfig = {};
1314
1313
  let spanGaps;
1315
1314
  let replaceNullsWithZero;
@@ -1336,6 +1335,8 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
1336
1335
  );
1337
1336
  if (shouldAssignToY2) {
1338
1337
  seriesConfig[field].overrides.scale = "y2";
1338
+ } else {
1339
+ seriesConfig[field].overrides.scale = "y";
1339
1340
  }
1340
1341
  }
1341
1342
  if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
@@ -1348,6 +1349,11 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
1348
1349
  if (fieldDashStyle) {
1349
1350
  seriesConfig[field].lineDashStyle = fieldDashStyle;
1350
1351
  }
1352
+ const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
1353
+ const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
1354
+ if (fieldStepPosition && fieldStepPosition !== "off") {
1355
+ seriesConfig[field].stepPosition = fieldStepPosition;
1356
+ }
1351
1357
  if (replaceNullsWithZero !== void 0) {
1352
1358
  seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
1353
1359
  }
@@ -1581,6 +1587,9 @@ var TimeSeriesChartWrapper = (props) => {
1581
1587
  backgroundColor,
1582
1588
  defaultFontColor,
1583
1589
  additionalTooltipValues,
1590
+ xAxisLineVisibility: xAxisLineVisibility,
1591
+ yAxisLineVisibility,
1592
+ y2AxisLineVisibility,
1584
1593
  showYAxisWithZero: showYAxisWithZeroFromProps,
1585
1594
  showY2AxisWithZero: showY2AxisWithZeroFromProps
1586
1595
  } = _a, otherOptions = __objRest(_a, [
@@ -1604,6 +1613,10 @@ var TimeSeriesChartWrapper = (props) => {
1604
1613
  "backgroundColor",
1605
1614
  "defaultFontColor",
1606
1615
  "additionalTooltipValues",
1616
+ // Extract axis line visibility options from props
1617
+ "xAxisLineVisibility",
1618
+ "yAxisLineVisibility",
1619
+ "y2AxisLineVisibility",
1607
1620
  // Extract showYAxisWithZero directly from props for accelerated render mode
1608
1621
  "showYAxisWithZero",
1609
1622
  "showY2AxisWithZero"
@@ -1616,6 +1629,7 @@ var TimeSeriesChartWrapper = (props) => {
1616
1629
  fieldColors,
1617
1630
  legendLabels: legendLabelsStr,
1618
1631
  legendMode,
1632
+ legendTruncation,
1619
1633
  "axisTitleX.text": xAxisTitleText,
1620
1634
  "axisTitleY.text": yAxisTitleText,
1621
1635
  "axisTitleY2.text": y2AxisTitleText,
@@ -1624,6 +1638,7 @@ var TimeSeriesChartWrapper = (props) => {
1624
1638
  "axisTitleY2.visibility": y2AxisTitleVisibility,
1625
1639
  "axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
1626
1640
  "axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
1641
+ "axisLabelsX.maxLabelParts": xAxisMaxLabelParts,
1627
1642
  "axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
1628
1643
  "axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
1629
1644
  "axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
@@ -1641,6 +1656,8 @@ var TimeSeriesChartWrapper = (props) => {
1641
1656
  lineWidth,
1642
1657
  lineDashStyle,
1643
1658
  fieldDashStyles: lineDashStylesByFieldStr,
1659
+ stepPosition,
1660
+ fieldStepPositions: stepPositionsByFieldStr,
1644
1661
  yAxisMin: yAxisMinRaw,
1645
1662
  yAxisMax: yAxisMaxRaw,
1646
1663
  y2AxisMin: y2AxisMinRaw,
@@ -1651,6 +1668,8 @@ var TimeSeriesChartWrapper = (props) => {
1651
1668
  showYMinorGridLines,
1652
1669
  showY2MinorGridLines,
1653
1670
  showLineSmoothing,
1671
+ xAxisMajorTickVisibility,
1672
+ xAxisMajorTickSize,
1654
1673
  yAxisMajorTickVisibility,
1655
1674
  y2AxisMajorTickVisibility,
1656
1675
  yAxisMajorTickSize,
@@ -1667,10 +1686,14 @@ var TimeSeriesChartWrapper = (props) => {
1667
1686
  const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
1668
1687
  const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
1669
1688
  const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
1689
+ const showXMajorTicks = xAxisMajorTickVisibility !== "hide";
1670
1690
  const showYMajorTicks = yAxisMajorTickVisibility === "show";
1671
1691
  const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
1672
1692
  const showYMinorTicks = yAxisMinorTickVisibility === "show";
1673
1693
  const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
1694
+ const showXAxisLine = parseXAxisLineVisibility(xAxisLineVisibility);
1695
+ const showYAxisLine = yAxisLineVisibility === "show";
1696
+ const showY2AxisLine = y2AxisLineVisibility === "show";
1674
1697
  const yAxisMin = parseAxisValue(yAxisMinRaw);
1675
1698
  const yAxisMax = parseAxisValue(yAxisMaxRaw);
1676
1699
  const y2AxisMin = parseAxisValue(y2AxisMinRaw);
@@ -1685,13 +1708,15 @@ var TimeSeriesChartWrapper = (props) => {
1685
1708
  y2AxisMajorUnitFromSimpleXML,
1686
1709
  y2AxisMajorTickInterval
1687
1710
  );
1688
- const yAxisMajorTickSizeNum = yAxisMajorTickSize ? Number(yAxisMajorTickSize) : void 0;
1689
- const y2AxisMajorTickSizeNum = y2AxisMajorTickSize ? Number(y2AxisMajorTickSize) : void 0;
1690
- const yAxisMinorTickSizeNum = yAxisMinorTickSize ? Number(yAxisMinorTickSize) : void 0;
1691
- const y2AxisMinorTickSizeNum = y2AxisMinorTickSize ? Number(y2AxisMinorTickSize) : void 0;
1711
+ const xAxisMajorTickSizeNum = xAxisMajorTickSize != null ? Number(xAxisMajorTickSize) : void 0;
1712
+ const yAxisMajorTickSizeNum = yAxisMajorTickSize != null ? Number(yAxisMajorTickSize) : void 0;
1713
+ const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
1714
+ const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
1715
+ const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
1692
1716
  const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
1693
1717
  const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
1694
1718
  const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
1719
+ const stepPositionsByField = stepPositionsByFieldStr ? JSON.parse(stepPositionsByFieldStr) : void 0;
1695
1720
  const legendLabels = parseArrayOption(legendLabelsStr);
1696
1721
  const bgColor = backgroundColor || bgColorFromOptions;
1697
1722
  const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
@@ -1779,7 +1804,9 @@ var TimeSeriesChartWrapper = (props) => {
1779
1804
  nullValueMode,
1780
1805
  markerDisplay,
1781
1806
  lineDashStyle,
1782
- lineDashStylesByField
1807
+ lineDashStylesByField,
1808
+ stepPosition,
1809
+ stepPositionsByField
1783
1810
  ),
1784
1811
  [
1785
1812
  yFields,
@@ -1790,7 +1817,9 @@ var TimeSeriesChartWrapper = (props) => {
1790
1817
  nullValueMode,
1791
1818
  markerDisplay,
1792
1819
  lineDashStyle,
1793
- lineDashStylesByField
1820
+ lineDashStylesByField,
1821
+ stepPosition,
1822
+ stepPositionsByField
1794
1823
  ]
1795
1824
  );
1796
1825
  const chartingEventAnnotations = (0, react_exports.useMemo)(
@@ -1805,9 +1834,14 @@ var TimeSeriesChartWrapper = (props) => {
1805
1834
  () => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
1806
1835
  [xScaleConfig, yScaleConfig, y2ScaleConfig]
1807
1836
  );
1837
+ const isSeriesCompare = legendMode === "seriesCompare";
1808
1838
  const legend = (0, react_exports.useMemo)(
1809
- () => getLegend({ legendDisplay, isSeriesCompare: legendMode === "seriesCompare" }),
1810
- [legendDisplay, legendMode]
1839
+ () => getLegend({
1840
+ legendDisplay: isSeriesCompare && legendDisplay !== "off" ? "right" : legendDisplay,
1841
+ isSeriesCompare,
1842
+ legendTruncation
1843
+ }),
1844
+ [legendDisplay, isSeriesCompare, legendTruncation]
1811
1845
  );
1812
1846
  const handleChartClick = react_exports.useCallback(
1813
1847
  (event) => {
@@ -1912,6 +1946,7 @@ var TimeSeriesChartWrapper = (props) => {
1912
1946
  seriesConfig: seriesOverrides,
1913
1947
  legend,
1914
1948
  legendLabels,
1949
+ legendTruncation,
1915
1950
  isSeriesCompare: legendMode === "seriesCompare",
1916
1951
  maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
1917
1952
  scaleConfig,
@@ -1933,6 +1968,8 @@ var TimeSeriesChartWrapper = (props) => {
1933
1968
  showY2MinorGridLines,
1934
1969
  showLineSmoothing,
1935
1970
  dataValuesDisplay,
1971
+ showXMajorTicks,
1972
+ xAxisMajorTickSize: xAxisMajorTickSizeNum,
1936
1973
  showYMajorTicks,
1937
1974
  showY2MajorTicks,
1938
1975
  yAxisMajorTickSize: yAxisMajorTickSizeNum,
@@ -1944,7 +1981,11 @@ var TimeSeriesChartWrapper = (props) => {
1944
1981
  yAxisMinorTickSize: yAxisMinorTickSizeNum,
1945
1982
  y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
1946
1983
  showYAxisWithZero,
1947
- showY2AxisWithZero
1984
+ showY2AxisWithZero,
1985
+ showXAxisLine,
1986
+ showYAxisLine,
1987
+ showY2AxisLine,
1988
+ xAxisMaxLabelParts
1948
1989
  }
1949
1990
  ));
1950
1991
  }, [
@@ -1959,6 +2000,7 @@ var TimeSeriesChartWrapper = (props) => {
1959
2000
  seriesOverrides,
1960
2001
  legend,
1961
2002
  legendLabels,
2003
+ legendTruncation,
1962
2004
  scaleConfig,
1963
2005
  onClick,
1964
2006
  handleChartClick,
@@ -1977,6 +2019,8 @@ var TimeSeriesChartWrapper = (props) => {
1977
2019
  showY2MinorGridLines,
1978
2020
  showLineSmoothing,
1979
2021
  dataValuesDisplay,
2022
+ showXMajorTicks,
2023
+ xAxisMajorTickSizeNum,
1980
2024
  showYMajorTicks,
1981
2025
  showY2MajorTicks,
1982
2026
  yAxisMajorTickSizeNum,
@@ -1989,7 +2033,11 @@ var TimeSeriesChartWrapper = (props) => {
1989
2033
  y2AxisMinorTickSizeNum,
1990
2034
  showYAxisWithZero,
1991
2035
  showY2AxisWithZero,
1992
- legendMode
2036
+ showXAxisLine,
2037
+ showYAxisLine,
2038
+ showY2AxisLine,
2039
+ legendMode,
2040
+ xAxisMaxLabelParts
1993
2041
  ]);
1994
2042
  const memoizedVisualization = (0, react_exports.useMemo)(() => {
1995
2043
  return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);