@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.
Files changed (160) hide show
  1. package/Area.config.js +28 -7
  2. package/Area.config.js.map +2 -2
  3. package/Area.js +106 -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 +106 -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 +78 -30
  12. package/Bubble.js.map +2 -2
  13. package/CHANGELOG.external.md +89 -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 +106 -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 +122 -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.js.map +2 -2
  62. package/NetworkGraph.js +365 -105
  63. package/NetworkGraph.js.map +4 -4
  64. package/PERFORMANCE.md +23 -0
  65. package/ParallelCoordinates/ParallelCoordinates.d.ts +1 -46
  66. package/ParallelCoordinates/ParallelCoordinates.d.ts.map +1 -1
  67. package/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts +12 -58
  68. package/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts.map +1 -1
  69. package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts +1 -0
  70. package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts.map +1 -1
  71. package/ParallelCoordinates.js +150 -153
  72. package/ParallelCoordinates.js.map +4 -4
  73. package/Pie/Pie.d.ts.map +1 -1
  74. package/Pie/config.d.ts.map +1 -1
  75. package/Pie/pieUtils.d.ts +4 -0
  76. package/Pie/pieUtils.d.ts.map +1 -1
  77. package/Pie.config.js +16 -0
  78. package/Pie.config.js.map +2 -2
  79. package/Pie.js +118 -35
  80. package/Pie.js.map +2 -2
  81. package/Punchcard.js +74 -26
  82. package/Punchcard.js.map +2 -2
  83. package/Rectangle/config.d.ts.map +1 -1
  84. package/Rectangle.config.js +14 -5
  85. package/Rectangle.config.js.map +4 -4
  86. package/Rectangle.js +92 -35
  87. package/Rectangle.js.map +4 -4
  88. package/Sankey/PureSankey/PureSankey.d.ts +26 -72
  89. package/Sankey/PureSankey/PureSankey.d.ts.map +1 -1
  90. package/Sankey/PureSankey/SankeyLink.d.ts +3 -19
  91. package/Sankey/PureSankey/SankeyLink.d.ts.map +1 -1
  92. package/Sankey/PureSankey/SankeyNode.d.ts +3 -20
  93. package/Sankey/PureSankey/SankeyNode.d.ts.map +1 -1
  94. package/Sankey/PureSankey/SankeyTooltip.d.ts +3 -24
  95. package/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -1
  96. package/Sankey.js +270 -336
  97. package/Sankey.js.map +2 -2
  98. package/Scatter.config.js +168 -147
  99. package/Scatter.config.js.map +4 -4
  100. package/Scatter.js +246 -179
  101. package/Scatter.js.map +4 -4
  102. package/SingleValue.js +96 -75
  103. package/SingleValue.js.map +2 -2
  104. package/SingleValueIcon/config.d.ts.map +1 -1
  105. package/SingleValueIcon.config.js +14 -5
  106. package/SingleValueIcon.config.js.map +4 -4
  107. package/SingleValueIcon.js +118 -76
  108. package/SingleValueIcon.js.map +4 -4
  109. package/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +1 -1
  110. package/SingleValueRadial.js +95 -76
  111. package/SingleValueRadial.js.map +2 -2
  112. package/Table/Table.d.ts.map +1 -1
  113. package/Table/hooks.d.ts +2 -0
  114. package/Table/hooks.d.ts.map +1 -1
  115. package/Table.js +95 -49
  116. package/Table.js.map +2 -2
  117. package/Timeline/PureTimeline/PureTimeline.d.ts.map +1 -1
  118. package/Timeline/PureTimeline/src/TimelinePlugin.d.ts.map +1 -1
  119. package/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -1
  120. package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts +2 -1
  121. package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -1
  122. package/Timeline.js +154 -54
  123. package/Timeline.js.map +2 -2
  124. package/common/GaugeMajorTicks.js +150 -13
  125. package/common/GaugeMajorTicks.js.map +4 -4
  126. package/common/GaugeValueMarker.js +84 -17
  127. package/common/GaugeValueMarker.js.map +4 -4
  128. package/common/OptionsDoc.js.map +1 -1
  129. package/common/OverviewDoc.d.ts.map +1 -1
  130. package/common/OverviewDoc.js +2 -2
  131. package/common/OverviewDoc.js.map +2 -2
  132. package/common/TimeSeriesChartWrapper.d.ts.map +1 -1
  133. package/common/TimeSeriesChartWrapper.js +72 -24
  134. package/common/TimeSeriesChartWrapper.js.map +2 -2
  135. package/common/chartingUtils.d.ts +9 -3
  136. package/common/chartingUtils.d.ts.map +1 -1
  137. package/common/chartingUtils.js +21 -16
  138. package/common/chartingUtils.js.map +2 -2
  139. package/common/editorConfig/AxesChartDataConfig.d.ts +3 -3
  140. package/common/editorConfig/AxesChartDataConfig.d.ts.map +1 -1
  141. package/common/editorConfig/AxesChartDataDisplay.d.ts +4 -0
  142. package/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -1
  143. package/common/editorConfig/AxesChartLegend.d.ts.map +1 -1
  144. package/common/gaugeUtils.d.ts +37 -0
  145. package/common/gaugeUtils.d.ts.map +1 -1
  146. package/common/gaugeUtils.js +152 -2
  147. package/common/gaugeUtils.js.map +4 -4
  148. package/common/hocs/mockdata/trellisData.d.ts +119 -0
  149. package/common/hocs/mockdata/trellisData.d.ts.map +1 -1
  150. package/common/interfaces/Overview.d.ts +1 -0
  151. package/common/interfaces/Overview.d.ts.map +1 -1
  152. package/common/interfaces/VizConfig.d.ts +2 -1
  153. package/common/interfaces/VizConfig.d.ts.map +1 -1
  154. package/common/utils/mapUtils.js.map +1 -1
  155. package/common/utils/trellisUtils.d.ts.map +1 -1
  156. package/common/utils/trellisUtils.js +4 -6
  157. package/common/utils/trellisUtils.js.map +2 -2
  158. package/common/withDashboardViz.js +74 -26
  159. package/common/withDashboardViz.js.map +2 -2
  160. package/package.json +36 -36
package/Bubble.js CHANGED
@@ -1015,6 +1015,9 @@ var isTrellisEnabled = ({ options, featureFlags }) => {
1015
1015
  const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
1016
1016
  return isTrellisFeatureFlagOn({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
1017
1017
  };
1018
+ var isAcceleratedRenderFeatureFlagOn = ({ featureFlags }) => {
1019
+ return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableAcceleratedRender);
1020
+ };
1018
1021
  var AxesChartDataConfig = {
1019
1022
  label: (0, i18n_exports._)("Data configurations"),
1020
1023
  layout: [
@@ -1148,9 +1151,6 @@ var AxesChartDataConfigBubble = {
1148
1151
  }
1149
1152
  ])
1150
1153
  };
1151
- var isAcceleratedRenderFeatureFlagOn = ({ featureFlags }) => {
1152
- return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableAcceleratedRender);
1153
- };
1154
1154
  var AcceleratedRenderEditorLayout = [
1155
1155
  [
1156
1156
  {
@@ -1160,7 +1160,7 @@ var AcceleratedRenderEditorLayout = [
1160
1160
  showEditor: isAcceleratedRenderFeatureFlagOn,
1161
1161
  editorProps: {
1162
1162
  help: (0, i18n_exports._)(
1163
- "Render visualizations faster for large datasets. Some functionalities might not be available in this mode."
1163
+ "Render visualizations faster for large datasets. Split series is not available in this mode."
1164
1164
  ),
1165
1165
  helpFormat: "under"
1166
1166
  // helpTextLink: {
@@ -2324,7 +2324,7 @@ var Cover = styled_components_default.div`
2324
2324
  bottom: 0;
2325
2325
  `;
2326
2326
  var Blocker = styled_components_default.div.attrs({
2327
- "data-splunk-visualization-version": "28.4.0 - 002bd482f"
2327
+ "data-splunk-visualization-version": "28.5.0 - b192418b7"
2328
2328
  })`
2329
2329
  position: relative;
2330
2330
  width: 100%;
@@ -2405,7 +2405,7 @@ var withFixedSizeContainer = (Viz) => {
2405
2405
  FixSizeItem,
2406
2406
  {
2407
2407
  "data-test": "fix-size-item",
2408
- "data-splunk-visualization-version": "28.4.0 - 002bd482f",
2408
+ "data-splunk-visualization-version": "28.5.0 - b192418b7",
2409
2409
  width,
2410
2410
  height,
2411
2411
  backgroundColor
@@ -2810,25 +2810,27 @@ var parseAxisValue = (val) => {
2810
2810
  const num = typeof val === "number" ? val : Number.parseFloat(val);
2811
2811
  return Number.isNaN(num) ? void 0 : num;
2812
2812
  };
2813
- var SideLegendWidth = 75;
2814
- var SeriesCompareLegendWidth = 200;
2813
+ var parseXAxisLineVisibility = (visibility) => {
2814
+ if (visibility === "hide") return false;
2815
+ if (visibility === "show") return true;
2816
+ return void 0;
2817
+ };
2815
2818
  var getLegend = (props) => {
2816
2819
  const legendPlacement = props == null ? void 0 : props.legendDisplay;
2817
- const { isSeriesCompare } = props;
2820
+ const { isSeriesCompare, legendTruncation } = props;
2818
2821
  const commonLegendProps = {
2819
2822
  center: true,
2820
2823
  fontSize: 12,
2821
2824
  largerTiles: true,
2822
- hideSeriesValue: !isSeriesCompare
2825
+ hideSeriesValue: !isSeriesCompare,
2823
2826
  // Show values if in seriesCompare mode
2827
+ legendTruncation
2824
2828
  };
2825
2829
  switch (legendPlacement) {
2826
2830
  case "off":
2827
2831
  return false;
2828
2832
  case "left":
2829
- return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
2830
- width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
2831
- }, commonLegendProps));
2833
+ return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({}, commonLegendProps));
2832
2834
  case "bottom":
2833
2835
  return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
2834
2836
  wrap: true
@@ -2838,9 +2840,7 @@ var getLegend = (props) => {
2838
2840
  wrap: true
2839
2841
  }, commonLegendProps));
2840
2842
  default:
2841
- return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
2842
- width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
2843
- }, commonLegendProps));
2843
+ return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({}, commonLegendProps));
2844
2844
  }
2845
2845
  };
2846
2846
  var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
@@ -2901,9 +2901,7 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibilit
2901
2901
  if (yAxisAbbreviation !== "none") {
2902
2902
  yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
2903
2903
  }
2904
- if (yAxisAbbreviation === "none") {
2905
- yConfig.y.width = 55;
2906
- } else {
2904
+ if (yAxisAbbreviation !== "none") {
2907
2905
  yConfig.y.width = label && label.length > 0 ? 30 : 10;
2908
2906
  }
2909
2907
  if (yAxisLabelVisibility === "hide") {
@@ -2926,6 +2924,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
2926
2924
  y2Config.y2.type = scaleType;
2927
2925
  if (axisAbbreviation !== "none") {
2928
2926
  y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
2927
+ y2Config.y2.width = label && label.length > 0 ? 50 : 10;
2929
2928
  } else if (roundAxisLabelsToInteger) {
2930
2929
  y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
2931
2930
  }
@@ -2941,7 +2940,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
2941
2940
  }
2942
2941
  return y2Config;
2943
2942
  };
2944
- var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
2943
+ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField, stepPosition, stepPositionsByField) => {
2945
2944
  const seriesConfig = {};
2946
2945
  let spanGaps;
2947
2946
  let replaceNullsWithZero;
@@ -2968,6 +2967,8 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
2968
2967
  );
2969
2968
  if (shouldAssignToY2) {
2970
2969
  seriesConfig[field].overrides.scale = "y2";
2970
+ } else {
2971
+ seriesConfig[field].overrides.scale = "y";
2971
2972
  }
2972
2973
  }
2973
2974
  if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
@@ -2980,6 +2981,11 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
2980
2981
  if (fieldDashStyle) {
2981
2982
  seriesConfig[field].lineDashStyle = fieldDashStyle;
2982
2983
  }
2984
+ const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
2985
+ const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
2986
+ if (fieldStepPosition && fieldStepPosition !== "off") {
2987
+ seriesConfig[field].stepPosition = fieldStepPosition;
2988
+ }
2983
2989
  if (replaceNullsWithZero !== void 0) {
2984
2990
  seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
2985
2991
  }
@@ -3162,6 +3168,9 @@ var TimeSeriesChartWrapper = (props) => {
3162
3168
  backgroundColor,
3163
3169
  defaultFontColor,
3164
3170
  additionalTooltipValues,
3171
+ xAxisLineVisibility: xAxisLineVisibility,
3172
+ yAxisLineVisibility,
3173
+ y2AxisLineVisibility,
3165
3174
  showYAxisWithZero: showYAxisWithZeroFromProps,
3166
3175
  showY2AxisWithZero: showY2AxisWithZeroFromProps
3167
3176
  } = _a, otherOptions = __objRest(_a, [
@@ -3185,6 +3194,10 @@ var TimeSeriesChartWrapper = (props) => {
3185
3194
  "backgroundColor",
3186
3195
  "defaultFontColor",
3187
3196
  "additionalTooltipValues",
3197
+ // Extract axis line visibility options from props
3198
+ "xAxisLineVisibility",
3199
+ "yAxisLineVisibility",
3200
+ "y2AxisLineVisibility",
3188
3201
  // Extract showYAxisWithZero directly from props for accelerated render mode
3189
3202
  "showYAxisWithZero",
3190
3203
  "showY2AxisWithZero"
@@ -3197,6 +3210,7 @@ var TimeSeriesChartWrapper = (props) => {
3197
3210
  fieldColors,
3198
3211
  legendLabels: legendLabelsStr,
3199
3212
  legendMode,
3213
+ legendTruncation,
3200
3214
  "axisTitleX.text": xAxisTitleText,
3201
3215
  "axisTitleY.text": yAxisTitleText,
3202
3216
  "axisTitleY2.text": y2AxisTitleText,
@@ -3205,6 +3219,7 @@ var TimeSeriesChartWrapper = (props) => {
3205
3219
  "axisTitleY2.visibility": y2AxisTitleVisibility,
3206
3220
  "axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
3207
3221
  "axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
3222
+ "axisLabelsX.maxLabelParts": xAxisMaxLabelParts,
3208
3223
  "axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
3209
3224
  "axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
3210
3225
  "axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
@@ -3222,6 +3237,8 @@ var TimeSeriesChartWrapper = (props) => {
3222
3237
  lineWidth,
3223
3238
  lineDashStyle,
3224
3239
  fieldDashStyles: lineDashStylesByFieldStr,
3240
+ stepPosition,
3241
+ fieldStepPositions: stepPositionsByFieldStr,
3225
3242
  yAxisMin: yAxisMinRaw,
3226
3243
  yAxisMax: yAxisMaxRaw,
3227
3244
  y2AxisMin: y2AxisMinRaw,
@@ -3232,6 +3249,8 @@ var TimeSeriesChartWrapper = (props) => {
3232
3249
  showYMinorGridLines,
3233
3250
  showY2MinorGridLines,
3234
3251
  showLineSmoothing,
3252
+ xAxisMajorTickVisibility,
3253
+ xAxisMajorTickSize,
3235
3254
  yAxisMajorTickVisibility,
3236
3255
  y2AxisMajorTickVisibility,
3237
3256
  yAxisMajorTickSize,
@@ -3248,10 +3267,14 @@ var TimeSeriesChartWrapper = (props) => {
3248
3267
  const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
3249
3268
  const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
3250
3269
  const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
3270
+ const showXMajorTicks = xAxisMajorTickVisibility !== "hide";
3251
3271
  const showYMajorTicks = yAxisMajorTickVisibility === "show";
3252
3272
  const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
3253
3273
  const showYMinorTicks = yAxisMinorTickVisibility === "show";
3254
3274
  const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
3275
+ const showXAxisLine = parseXAxisLineVisibility(xAxisLineVisibility);
3276
+ const showYAxisLine = yAxisLineVisibility === "show";
3277
+ const showY2AxisLine = y2AxisLineVisibility === "show";
3255
3278
  const yAxisMin = parseAxisValue(yAxisMinRaw);
3256
3279
  const yAxisMax = parseAxisValue(yAxisMaxRaw);
3257
3280
  const y2AxisMin = parseAxisValue(y2AxisMinRaw);
@@ -3266,13 +3289,15 @@ var TimeSeriesChartWrapper = (props) => {
3266
3289
  y2AxisMajorUnitFromSimpleXML,
3267
3290
  y2AxisMajorTickInterval
3268
3291
  );
3269
- const yAxisMajorTickSizeNum = yAxisMajorTickSize ? Number(yAxisMajorTickSize) : void 0;
3270
- const y2AxisMajorTickSizeNum = y2AxisMajorTickSize ? Number(y2AxisMajorTickSize) : void 0;
3271
- const yAxisMinorTickSizeNum = yAxisMinorTickSize ? Number(yAxisMinorTickSize) : void 0;
3272
- const y2AxisMinorTickSizeNum = y2AxisMinorTickSize ? Number(y2AxisMinorTickSize) : void 0;
3292
+ const xAxisMajorTickSizeNum = xAxisMajorTickSize != null ? Number(xAxisMajorTickSize) : void 0;
3293
+ const yAxisMajorTickSizeNum = yAxisMajorTickSize != null ? Number(yAxisMajorTickSize) : void 0;
3294
+ const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
3295
+ const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
3296
+ const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
3273
3297
  const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
3274
3298
  const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
3275
3299
  const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
3300
+ const stepPositionsByField = stepPositionsByFieldStr ? JSON.parse(stepPositionsByFieldStr) : void 0;
3276
3301
  const legendLabels = parseArrayOption(legendLabelsStr);
3277
3302
  const bgColor = backgroundColor || bgColorFromOptions;
3278
3303
  const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
@@ -3360,7 +3385,9 @@ var TimeSeriesChartWrapper = (props) => {
3360
3385
  nullValueMode,
3361
3386
  markerDisplay,
3362
3387
  lineDashStyle,
3363
- lineDashStylesByField
3388
+ lineDashStylesByField,
3389
+ stepPosition,
3390
+ stepPositionsByField
3364
3391
  ),
3365
3392
  [
3366
3393
  yFields,
@@ -3371,7 +3398,9 @@ var TimeSeriesChartWrapper = (props) => {
3371
3398
  nullValueMode,
3372
3399
  markerDisplay,
3373
3400
  lineDashStyle,
3374
- lineDashStylesByField
3401
+ lineDashStylesByField,
3402
+ stepPosition,
3403
+ stepPositionsByField
3375
3404
  ]
3376
3405
  );
3377
3406
  const chartingEventAnnotations = (0, react_exports.useMemo)(
@@ -3386,9 +3415,14 @@ var TimeSeriesChartWrapper = (props) => {
3386
3415
  () => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
3387
3416
  [xScaleConfig, yScaleConfig, y2ScaleConfig]
3388
3417
  );
3418
+ const isSeriesCompare = legendMode === "seriesCompare";
3389
3419
  const legend = (0, react_exports.useMemo)(
3390
- () => getLegend({ legendDisplay, isSeriesCompare: legendMode === "seriesCompare" }),
3391
- [legendDisplay, legendMode]
3420
+ () => getLegend({
3421
+ legendDisplay: isSeriesCompare && legendDisplay !== "off" ? "right" : legendDisplay,
3422
+ isSeriesCompare,
3423
+ legendTruncation
3424
+ }),
3425
+ [legendDisplay, isSeriesCompare, legendTruncation]
3392
3426
  );
3393
3427
  const handleChartClick = react_exports.useCallback(
3394
3428
  (event) => {
@@ -3493,6 +3527,7 @@ var TimeSeriesChartWrapper = (props) => {
3493
3527
  seriesConfig: seriesOverrides,
3494
3528
  legend,
3495
3529
  legendLabels,
3530
+ legendTruncation,
3496
3531
  isSeriesCompare: legendMode === "seriesCompare",
3497
3532
  maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
3498
3533
  scaleConfig,
@@ -3514,6 +3549,8 @@ var TimeSeriesChartWrapper = (props) => {
3514
3549
  showY2MinorGridLines,
3515
3550
  showLineSmoothing,
3516
3551
  dataValuesDisplay,
3552
+ showXMajorTicks,
3553
+ xAxisMajorTickSize: xAxisMajorTickSizeNum,
3517
3554
  showYMajorTicks,
3518
3555
  showY2MajorTicks,
3519
3556
  yAxisMajorTickSize: yAxisMajorTickSizeNum,
@@ -3525,7 +3562,11 @@ var TimeSeriesChartWrapper = (props) => {
3525
3562
  yAxisMinorTickSize: yAxisMinorTickSizeNum,
3526
3563
  y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
3527
3564
  showYAxisWithZero,
3528
- showY2AxisWithZero
3565
+ showY2AxisWithZero,
3566
+ showXAxisLine,
3567
+ showYAxisLine,
3568
+ showY2AxisLine,
3569
+ xAxisMaxLabelParts
3529
3570
  }
3530
3571
  ));
3531
3572
  }, [
@@ -3540,6 +3581,7 @@ var TimeSeriesChartWrapper = (props) => {
3540
3581
  seriesOverrides,
3541
3582
  legend,
3542
3583
  legendLabels,
3584
+ legendTruncation,
3543
3585
  scaleConfig,
3544
3586
  onClick,
3545
3587
  handleChartClick,
@@ -3558,6 +3600,8 @@ var TimeSeriesChartWrapper = (props) => {
3558
3600
  showY2MinorGridLines,
3559
3601
  showLineSmoothing,
3560
3602
  dataValuesDisplay,
3603
+ showXMajorTicks,
3604
+ xAxisMajorTickSizeNum,
3561
3605
  showYMajorTicks,
3562
3606
  showY2MajorTicks,
3563
3607
  yAxisMajorTickSizeNum,
@@ -3570,7 +3614,11 @@ var TimeSeriesChartWrapper = (props) => {
3570
3614
  y2AxisMinorTickSizeNum,
3571
3615
  showYAxisWithZero,
3572
3616
  showY2AxisWithZero,
3573
- legendMode
3617
+ showXAxisLine,
3618
+ showYAxisLine,
3619
+ showY2AxisLine,
3620
+ legendMode,
3621
+ xAxisMaxLabelParts
3574
3622
  ]);
3575
3623
  const memoizedVisualization = (0, react_exports.useMemo)(() => {
3576
3624
  return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);