We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Enable Scroll Bar In "Windows Phone" Charts

Thread ID:

Created:

Updated:

Platform:

Replies:

113969 Oct 20,2013 05:21 AM Oct 21,2013 09:16 AM Windows Phone 1
loading
Tags: Chart
alaa ezzat
Asked On October 20, 2013 05:21 AM

Dears , i use a chart control and i want to show scroll bar horizontally when it show too many points , so i used this code 

=====================
 <Charts:SfChart 
x:Name="chrtProgress"   
Margin="12,12,12,0"  
Grid.Row="0" 
ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible"  >

====================
and 
====================
    <Charts:LineSeries EnableAnimation="True" ShowTooltip="True" Charts:ChartTooltip.EnableAnimation="True" XBindingPath="Key" YBindingPath="Value" ItemsSource="{Binding Weights}" Label="Progress" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible"  >

==========================================
But no scrollbar appear anywehre , so how to show scrollbar in charts 

                                    

Sheik Syed Abthaheer M [Syncfusion]
Replied On October 21, 2013 09:16 AM

Hi alaa ezzat,

Thanks for using Syncfusion products.

We would like to inform you that, currently we do not have ScrollBar support  for WindownsPhone. We have Scroll bar support for WPF, Silverlight and WinRT controls. However you can achieve your requirement  by using ZoomFactor property of Primary Axis with ZoomPanBehavior as shown in the given below code snippet.

Code Snippet [Xaml]:

<syncfusion:SfChart.Behaviors>

<syncfusion:ChartZoomPanBehavior />

</syncfusion:SfChart.Behaviors>

<syncfusion:SfChart.PrimaryAxis>

<syncfusion:CategoryAxis Interval="3" ZoomFactor="0.20" />

</syncfusion:SfChart.PrimaryAxis>



We have prepared the sample that tries to meet your requirement. Please download the sample from the below location.

Please let us know if you need any further assistance. 

Regards,
M. Sheik


WP_ColumnChart_57e24f6c.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;