I am trying the candlestick chart and I want only 1 bar of space at the end of the chart. For this reason, I limit the chart with the xAxis.setVisibleRangeLimit(0, dataSize + 1) method. By adding +1 to the data size, I get the space at the end of the chart. However, when the chart ends, if I continue to swipe left chart is stretching. I want it to stop when chart comes to end, not stretching. I tried the ZoomPanModifier.setClipModeX (ClipMode.ClipAtExtents) method, but this causes the space at the end of the chart to disappear. How do I prevent the chart from stretching by preserving the trailing gap?
I’m not sure, because you didn’t provide code which reproduces this issue, but I think this could happen because by default ZoomPanModifier clips to MaximumRange and when you set VisibleRangeLimit sometimes it may cause this stretching effect. Can you try to set ClipModeTargetX to VisibleRangeLimit?
sciChartBuilder.newModifierGroup() .withZoomPanModifier() .withClipModexTargetX(ClipModeTarget.VisibleRangeLimit) .build();
Hope this will help you!
I tried .withClipModexTargetX(ClipModeTarget.VisibleRangeLimit) but it’s not worked.
I added screen recording to one drive to show the problem: https://1drv.ms/v/s!Aq2z0EdIrh2sgcR_B-jqEJTDsVYkXg?e=6x40XB
Please login first to submit.