- Home
- Forum
- Xamarin.Forms
- Problem with scrolling
Problem with scrolling
Hello I have a problem with horizontal scroll view. Imagine that I have three StackLayouts taking whole screen and in the middle one I would like to have a graph chart. Problem is that chart is too big and I want to have horizontal scroll only for that section but couldn't manage so far. I even tried to do it as a custom control. Any ideas, suggestions? How can i achieve x-axis scrolling
SIGN IN To post a reply.
4 Replies
DV
Divya Venkatesan
Syncfusion Team
December 13, 2017 04:31 PM UTC
Hi Nicholas,
You can reduce the size of chart using WidthRequest and HeightRequest property and set the Orientation of ScrollView as Horizontal to make the scroll in horizontal direction. We have prepared a sample for this.
Sample: http://www.syncfusion.com/downloads/support/forum/135015/ze/ChartSample604259174
Please get back to us if you need any further assistance on this.
Regards,
Divya Venkatesan
You can reduce the size of chart using WidthRequest and HeightRequest property and set the Orientation of ScrollView as Horizontal to make the scroll in horizontal direction. We have prepared a sample for this.
Sample: http://www.syncfusion.com/downloads/support/forum/135015/ze/ChartSample604259174
Please get back to us if you need any further assistance on this.
Regards,
Divya Venkatesan
BI
Billy
July 22, 2018 02:33 AM UTC
I couldn't get a gradient in my splinearea chart until I removed my Scrollview. Not digging that too much. ):
Without Scroll
With Scroll
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:chart="clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms"
xmlns:controls="clr-namespace:FishingFanatic.Controls;assembly=FishingFanatic"
xmlns:viewModels="clr-namespace:FishingFanatic.ViewModels;assembly=FishingFanatic"
BackgroundColor="Transparent">
HeightRequest="400"
WidthRequest="3000"
BackgroundColor="Transparent">
ShowMajorGridLines = "false">
Text="{Binding ChartYText}"
TextColor="White" />
Padding="0"
VerticalOptions="EndAndExpand">
BI
Billy
July 22, 2018 04:16 PM UTC
The xaml wasn't showing up correctly in the above message. Here's the file:
Attachment: TideChartPage_d6ee85ed.zip
Attachment: TideChartPage_d6ee85ed.zip
MP
Michael Prabhu M
Syncfusion Team
July 23, 2018 12:02 PM UTC
Hi Billy,
Thanks for the code snippets, we were able to reproduce this issue in Xamarin.Forms.Android and we have logged a defect report on this, we will fix this issue in our upcoming Volume 2 Service Pack 2 release which is scheduled to be rolled out at the end of August 2018.
Thanks,
Michael
SIGN IN To post a reply.
- 4 Replies
- 4 Participants
-
NA Nicholas Antoniades
- Dec 12, 2017 02:20 PM UTC
- Jul 23, 2018 12:02 PM UTC