Hi Bharath,
Greetings from Syncfusion.
We have analysed your requirement and we suspect that you are setting Minimum and Maximum value for axis. We would like to explain you that scrolling to see remaining data works only if the range present within the given Minimum and Maximum.
So, for your case, you can use AutoScrollingDelta and AutoScrollingDeltaType instead of using Minimum and Maximum property to show the initial range. Please refer the below code.
Code snippet [XAML]:
<chart:SfChart.PrimaryAxis>
<chart:DateTimeAxis EnableAutoIntervalOnZooming="False" x:Name="XAxis" Interval="1" IntervalType="Hours" AutoScrollingDelta="6" AutoScrollingDeltaType="Hours" AutoScrollingMode="Start" >
<chart:DateTimeAxis.LabelStyle >
<chart:ChartAxisLabelStyle LabelFormat="hh tt" >
</chart:ChartAxisLabelStyle>
</chart:DateTimeAxis.LabelStyle>
</chart:DateTimeAxis>
</chart:SfChart.PrimaryAxis> |
If you still face the issue, please revert us the attached sample or your requirement is different from this. Please provide a more detail about your requirement.
Please get back to us for further assistance.
Thanks,
Muneesh Kumar G.