@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/LinkGraph.js CHANGED
@@ -3038,7 +3038,7 @@ var Cover = styled_components_default.div`
3038
3038
  bottom: 0;
3039
3039
  `;
3040
3040
  var Blocker = styled_components_default.div.attrs({
3041
- "data-splunk-visualization-version": "28.4.0 - 002bd482f"
3041
+ "data-splunk-visualization-version": "28.5.1 - 617766eb3"
3042
3042
  })`
3043
3043
  position: relative;
3044
3044
  width: 100%;
@@ -3149,7 +3149,7 @@ var withFixedSizeContainer = (Viz) => {
3149
3149
  FixSizeItem,
3150
3150
  {
3151
3151
  "data-test": "fix-size-item",
3152
- "data-splunk-visualization-version": "28.4.0 - 002bd482f",
3152
+ "data-splunk-visualization-version": "28.5.1 - 617766eb3",
3153
3153
  width,
3154
3154
  height,
3155
3155
  backgroundColor
@@ -3828,25 +3828,27 @@ var parseAxisValue = (val) => {
3828
3828
  const num = typeof val === "number" ? val : Number.parseFloat(val);
3829
3829
  return Number.isNaN(num) ? void 0 : num;
3830
3830
  };
3831
- var SideLegendWidth = 75;
3832
- var SeriesCompareLegendWidth = 200;
3831
+ var parseXAxisLineVisibility = (visibility) => {
3832
+ if (visibility === "hide") return false;
3833
+ if (visibility === "show") return true;
3834
+ return void 0;
3835
+ };
3833
3836
  var getLegend = (props) => {
3834
3837
  const legendPlacement = props == null ? void 0 : props.legendDisplay;
3835
- const { isSeriesCompare } = props;
3838
+ const { isSeriesCompare, legendTruncation } = props;
3836
3839
  const commonLegendProps = {
3837
3840
  center: true,
3838
3841
  fontSize: 12,
3839
3842
  largerTiles: true,
3840
- hideSeriesValue: !isSeriesCompare
3843
+ hideSeriesValue: !isSeriesCompare,
3841
3844
  // Show values if in seriesCompare mode
3845
+ legendTruncation
3842
3846
  };
3843
3847
  switch (legendPlacement) {
3844
3848
  case "off":
3845
3849
  return false;
3846
3850
  case "left":
3847
- return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
3848
- width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
3849
- }, commonLegendProps));
3851
+ return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({}, commonLegendProps));
3850
3852
  case "bottom":
3851
3853
  return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
3852
3854
  wrap: true
@@ -3856,9 +3858,7 @@ var getLegend = (props) => {
3856
3858
  wrap: true
3857
3859
  }, commonLegendProps));
3858
3860
  default:
3859
- return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
3860
- width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
3861
- }, commonLegendProps));
3861
+ return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({}, commonLegendProps));
3862
3862
  }
3863
3863
  };
3864
3864
  var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
@@ -3919,9 +3919,7 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibilit
3919
3919
  if (yAxisAbbreviation !== "none") {
3920
3920
  yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
3921
3921
  }
3922
- if (yAxisAbbreviation === "none") {
3923
- yConfig.y.width = 55;
3924
- } else {
3922
+ if (yAxisAbbreviation !== "none") {
3925
3923
  yConfig.y.width = label && label.length > 0 ? 30 : 10;
3926
3924
  }
3927
3925
  if (yAxisLabelVisibility === "hide") {
@@ -3944,6 +3942,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
3944
3942
  y2Config.y2.type = scaleType;
3945
3943
  if (axisAbbreviation !== "none") {
3946
3944
  y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
3945
+ y2Config.y2.width = label && label.length > 0 ? 50 : 10;
3947
3946
  } else if (roundAxisLabelsToInteger) {
3948
3947
  y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
3949
3948
  }
@@ -3959,7 +3958,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
3959
3958
  }
3960
3959
  return y2Config;
3961
3960
  };
3962
- var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
3961
+ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField, stepPosition, stepPositionsByField) => {
3963
3962
  const seriesConfig = {};
3964
3963
  let spanGaps;
3965
3964
  let replaceNullsWithZero;
@@ -3986,6 +3985,8 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
3986
3985
  );
3987
3986
  if (shouldAssignToY2) {
3988
3987
  seriesConfig[field].overrides.scale = "y2";
3988
+ } else {
3989
+ seriesConfig[field].overrides.scale = "y";
3989
3990
  }
3990
3991
  }
3991
3992
  if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
@@ -3998,6 +3999,11 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
3998
3999
  if (fieldDashStyle) {
3999
4000
  seriesConfig[field].lineDashStyle = fieldDashStyle;
4000
4001
  }
4002
+ const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
4003
+ const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
4004
+ if (fieldStepPosition && fieldStepPosition !== "off") {
4005
+ seriesConfig[field].stepPosition = fieldStepPosition;
4006
+ }
4001
4007
  if (replaceNullsWithZero !== void 0) {
4002
4008
  seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
4003
4009
  }
@@ -4236,6 +4242,9 @@ var TimeSeriesChartWrapper = (props) => {
4236
4242
  backgroundColor,
4237
4243
  defaultFontColor,
4238
4244
  additionalTooltipValues,
4245
+ xAxisLineVisibility: xAxisLineVisibility,
4246
+ yAxisLineVisibility,
4247
+ y2AxisLineVisibility,
4239
4248
  showYAxisWithZero: showYAxisWithZeroFromProps,
4240
4249
  showY2AxisWithZero: showY2AxisWithZeroFromProps
4241
4250
  } = _a, otherOptions = __objRest(_a, [
@@ -4259,6 +4268,10 @@ var TimeSeriesChartWrapper = (props) => {
4259
4268
  "backgroundColor",
4260
4269
  "defaultFontColor",
4261
4270
  "additionalTooltipValues",
4271
+ // Extract axis line visibility options from props
4272
+ "xAxisLineVisibility",
4273
+ "yAxisLineVisibility",
4274
+ "y2AxisLineVisibility",
4262
4275
  // Extract showYAxisWithZero directly from props for accelerated render mode
4263
4276
  "showYAxisWithZero",
4264
4277
  "showY2AxisWithZero"
@@ -4271,6 +4284,7 @@ var TimeSeriesChartWrapper = (props) => {
4271
4284
  fieldColors,
4272
4285
  legendLabels: legendLabelsStr,
4273
4286
  legendMode,
4287
+ legendTruncation,
4274
4288
  "axisTitleX.text": xAxisTitleText,
4275
4289
  "axisTitleY.text": yAxisTitleText,
4276
4290
  "axisTitleY2.text": y2AxisTitleText,
@@ -4279,6 +4293,7 @@ var TimeSeriesChartWrapper = (props) => {
4279
4293
  "axisTitleY2.visibility": y2AxisTitleVisibility,
4280
4294
  "axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
4281
4295
  "axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
4296
+ "axisLabelsX.maxLabelParts": xAxisMaxLabelParts,
4282
4297
  "axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
4283
4298
  "axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
4284
4299
  "axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
@@ -4296,6 +4311,8 @@ var TimeSeriesChartWrapper = (props) => {
4296
4311
  lineWidth,
4297
4312
  lineDashStyle,
4298
4313
  fieldDashStyles: lineDashStylesByFieldStr,
4314
+ stepPosition,
4315
+ fieldStepPositions: stepPositionsByFieldStr,
4299
4316
  yAxisMin: yAxisMinRaw,
4300
4317
  yAxisMax: yAxisMaxRaw,
4301
4318
  y2AxisMin: y2AxisMinRaw,
@@ -4306,6 +4323,8 @@ var TimeSeriesChartWrapper = (props) => {
4306
4323
  showYMinorGridLines,
4307
4324
  showY2MinorGridLines,
4308
4325
  showLineSmoothing,
4326
+ xAxisMajorTickVisibility,
4327
+ xAxisMajorTickSize,
4309
4328
  yAxisMajorTickVisibility,
4310
4329
  y2AxisMajorTickVisibility,
4311
4330
  yAxisMajorTickSize,
@@ -4322,10 +4341,14 @@ var TimeSeriesChartWrapper = (props) => {
4322
4341
  const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
4323
4342
  const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
4324
4343
  const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
4344
+ const showXMajorTicks = xAxisMajorTickVisibility !== "hide";
4325
4345
  const showYMajorTicks = yAxisMajorTickVisibility === "show";
4326
4346
  const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
4327
4347
  const showYMinorTicks = yAxisMinorTickVisibility === "show";
4328
4348
  const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
4349
+ const showXAxisLine = parseXAxisLineVisibility(xAxisLineVisibility);
4350
+ const showYAxisLine = yAxisLineVisibility === "show";
4351
+ const showY2AxisLine = y2AxisLineVisibility === "show";
4329
4352
  const yAxisMin = parseAxisValue(yAxisMinRaw);
4330
4353
  const yAxisMax = parseAxisValue(yAxisMaxRaw);
4331
4354
  const y2AxisMin = parseAxisValue(y2AxisMinRaw);
@@ -4340,13 +4363,15 @@ var TimeSeriesChartWrapper = (props) => {
4340
4363
  y2AxisMajorUnitFromSimpleXML,
4341
4364
  y2AxisMajorTickInterval
4342
4365
  );
4343
- const yAxisMajorTickSizeNum = yAxisMajorTickSize ? Number(yAxisMajorTickSize) : void 0;
4344
- const y2AxisMajorTickSizeNum = y2AxisMajorTickSize ? Number(y2AxisMajorTickSize) : void 0;
4345
- const yAxisMinorTickSizeNum = yAxisMinorTickSize ? Number(yAxisMinorTickSize) : void 0;
4346
- const y2AxisMinorTickSizeNum = y2AxisMinorTickSize ? Number(y2AxisMinorTickSize) : void 0;
4366
+ const xAxisMajorTickSizeNum = xAxisMajorTickSize != null ? Number(xAxisMajorTickSize) : void 0;
4367
+ const yAxisMajorTickSizeNum = yAxisMajorTickSize != null ? Number(yAxisMajorTickSize) : void 0;
4368
+ const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
4369
+ const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
4370
+ const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
4347
4371
  const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
4348
4372
  const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
4349
4373
  const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
4374
+ const stepPositionsByField = stepPositionsByFieldStr ? JSON.parse(stepPositionsByFieldStr) : void 0;
4350
4375
  const legendLabels = parseArrayOption(legendLabelsStr);
4351
4376
  const bgColor = backgroundColor || bgColorFromOptions;
4352
4377
  const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
@@ -4434,7 +4459,9 @@ var TimeSeriesChartWrapper = (props) => {
4434
4459
  nullValueMode,
4435
4460
  markerDisplay,
4436
4461
  lineDashStyle,
4437
- lineDashStylesByField
4462
+ lineDashStylesByField,
4463
+ stepPosition,
4464
+ stepPositionsByField
4438
4465
  ),
4439
4466
  [
4440
4467
  yFields,
@@ -4445,7 +4472,9 @@ var TimeSeriesChartWrapper = (props) => {
4445
4472
  nullValueMode,
4446
4473
  markerDisplay,
4447
4474
  lineDashStyle,
4448
- lineDashStylesByField
4475
+ lineDashStylesByField,
4476
+ stepPosition,
4477
+ stepPositionsByField
4449
4478
  ]
4450
4479
  );
4451
4480
  const chartingEventAnnotations = (0, react_exports.useMemo)(
@@ -4460,9 +4489,14 @@ var TimeSeriesChartWrapper = (props) => {
4460
4489
  () => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
4461
4490
  [xScaleConfig, yScaleConfig, y2ScaleConfig]
4462
4491
  );
4492
+ const isSeriesCompare = legendMode === "seriesCompare";
4463
4493
  const legend = (0, react_exports.useMemo)(
4464
- () => getLegend({ legendDisplay, isSeriesCompare: legendMode === "seriesCompare" }),
4465
- [legendDisplay, legendMode]
4494
+ () => getLegend({
4495
+ legendDisplay: isSeriesCompare && legendDisplay !== "off" ? "right" : legendDisplay,
4496
+ isSeriesCompare,
4497
+ legendTruncation
4498
+ }),
4499
+ [legendDisplay, isSeriesCompare, legendTruncation]
4466
4500
  );
4467
4501
  const handleChartClick = react_exports.useCallback(
4468
4502
  (event) => {
@@ -4567,6 +4601,7 @@ var TimeSeriesChartWrapper = (props) => {
4567
4601
  seriesConfig: seriesOverrides,
4568
4602
  legend,
4569
4603
  legendLabels,
4604
+ legendTruncation,
4570
4605
  isSeriesCompare: legendMode === "seriesCompare",
4571
4606
  maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
4572
4607
  scaleConfig,
@@ -4588,6 +4623,8 @@ var TimeSeriesChartWrapper = (props) => {
4588
4623
  showY2MinorGridLines,
4589
4624
  showLineSmoothing,
4590
4625
  dataValuesDisplay,
4626
+ showXMajorTicks,
4627
+ xAxisMajorTickSize: xAxisMajorTickSizeNum,
4591
4628
  showYMajorTicks,
4592
4629
  showY2MajorTicks,
4593
4630
  yAxisMajorTickSize: yAxisMajorTickSizeNum,
@@ -4599,7 +4636,11 @@ var TimeSeriesChartWrapper = (props) => {
4599
4636
  yAxisMinorTickSize: yAxisMinorTickSizeNum,
4600
4637
  y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
4601
4638
  showYAxisWithZero,
4602
- showY2AxisWithZero
4639
+ showY2AxisWithZero,
4640
+ showXAxisLine,
4641
+ showYAxisLine,
4642
+ showY2AxisLine,
4643
+ xAxisMaxLabelParts
4603
4644
  }
4604
4645
  ));
4605
4646
  }, [
@@ -4614,6 +4655,7 @@ var TimeSeriesChartWrapper = (props) => {
4614
4655
  seriesOverrides,
4615
4656
  legend,
4616
4657
  legendLabels,
4658
+ legendTruncation,
4617
4659
  scaleConfig,
4618
4660
  onClick,
4619
4661
  handleChartClick,
@@ -4632,6 +4674,8 @@ var TimeSeriesChartWrapper = (props) => {
4632
4674
  showY2MinorGridLines,
4633
4675
  showLineSmoothing,
4634
4676
  dataValuesDisplay,
4677
+ showXMajorTicks,
4678
+ xAxisMajorTickSizeNum,
4635
4679
  showYMajorTicks,
4636
4680
  showY2MajorTicks,
4637
4681
  yAxisMajorTickSizeNum,
@@ -4644,7 +4688,11 @@ var TimeSeriesChartWrapper = (props) => {
4644
4688
  y2AxisMinorTickSizeNum,
4645
4689
  showYAxisWithZero,
4646
4690
  showY2AxisWithZero,
4647
- legendMode
4691
+ showXAxisLine,
4692
+ showYAxisLine,
4693
+ showY2AxisLine,
4694
+ legendMode,
4695
+ xAxisMaxLabelParts
4648
4696
  ]);
4649
4697
  const memoizedVisualization = (0, react_exports.useMemo)(() => {
4650
4698
  return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);