SfChart SplineSeries data display and graphical orientation

Good morning,

I would need to display 30 results on the graph, but on the X-axis where I display the date, I cannot display 30 dates.

is it possible to fix the graph as if I were with the phone in the landscape? (my app doesn't handle phone rotation).

Or is it not possible to scroll the graph?


Thanks so much for the support.


Attachment: Cattura_2c4ebeda.zip

1 Reply

GM Gayathri Manickam Syncfusion Team January 21, 2022 03:11 PM UTC

Hi Macro Gobbi, 
 
We analyzed your query and achieved your requirement with the help of AutoScrollingDelta feature by showing the 10 dates at load time and remaining dates are shown by scrolling the chart as per the below code snippet.  
 
<chart:SfChart  
            <chart:SfChart.PrimaryAxis> 
                <chart:DateTimeAxis x:Name="axis" AutoScrollingMode="Start" AutoScrollingDelta="10" AutoScrollingDeltaType="Days" > 
                </chart:DateTimeAxis> 
            </chart:SfChart.PrimaryAxis> 
 
            <chart:SfChart.Series> 
                <chart:SplineSeries x:Name="series" ItemsSource="{Binding Data}" XBindingPath="XValue" YBindingPath="YValue"> 
                </chart:SplineSeries> 
            </chart:SfChart.Series> 
 
            <chart:SfChart.ChartBehaviors> 
                <chart:ChartZoomPanBehavior EnablePanning="True"/> 
            </chart:SfChart.ChartBehaviors> 
   </chart:SfChart> 
 
Also, we have prepared sample based on your requirement and please download the sample in the below link. For more information, please refer below UG link.  
 
 
Regards,  
Gayathri M 


Loader.
Up arrow icon