Spice up Your Xamarin.Forms App with Interactive Features of Syncfusion Charts | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (175).NET Core  (29).NET MAUI  (208)Angular  (109)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (41)Black Friday Deal  (1)Blazor  (220)BoldSign  (15)DocIO  (24)Essential JS 2  (107)Essential Studio  (200)File Formats  (67)Flutter  (133)JavaScript  (221)Microsoft  (119)PDF  (81)Python  (1)React  (101)Streamlit  (1)Succinctly series  (131)Syncfusion  (920)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (51)Windows Forms  (61)WinUI  (68)WPF  (159)Xamarin  (161)XlsIO  (37)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (151)Chart  (132)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (63)Development  (633)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (41)Extensions  (22)File Manager  (7)Gantt  (18)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (508)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (52)Security  (3)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (11)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (387)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (597)What's new  (333)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
4 interactive features of Xamarin Charts

Spice up Your Xamarin.Forms App with Interactive Features of Syncfusion Charts

Introduction

Looking at raw data and trying to make a decision is very tedious. Visual representations such as charts and graphs overcome this problem. These visual representations, when powered by interaction support, are a piece of cake to understand. In this blog, I am going to walk you through the rich and highly interactive features of Syncfusion Xamarin Charts. They are:

They help users understand data in a number of ways. Users can experiment with that data’s presentation to answer questions about it with the best visuals. Let’s see these controls’ interactive capabilities.

Tooltip

The Syncfusion Xamarin Charts tooltip is one of the control’s most valuable features. Users can easily customize the tooltips, which means we can define additional chart point information, customize the default appearance, place images, and more. So there’s almost no limit to the possibilities. Refer to our user guide for more details.

XAML

<chart:SfChart x:Name="chart">
  <chart:SfChart.Resources>
     <ResourceDictionary>
            <DataTemplate x:Key="toolTipTemplate1">
                <StackLayout BackgroundColor="#404041"> 
                    <Label Text="Franch" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" TextColor="White" FontAttributes="Bold" FontFamily="Helvetica" Margin="0" FontSize="12" Grid.Row="0" />
                    <BoxView Grid.Row="1" Color="White" HeightRequest="0.75" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" />
                    <StackLayout Orientation="Horizontal"  VerticalOptions="FillAndExpand" BackgroundColor="#404041" Spacing="0" Padding="3" Margin="0">
                        <Label Text="{Binding Value}" VerticalTextAlignment="Center" HorizontalOptions="StartAndExpand" TextColor="#CCCCCC" FontAttributes="Bold" FontFamily="Helvetica" FontSize="12" />
                        <Label Text="{Binding Size,StringFormat=' :  {0}%'}" VerticalTextAlignment="Center" HorizontalOptions="EndAndExpand" TextColor="White" FontAttributes="Bold" FontFamily="Helvetica" Margin="0" FontSize="12" />
                    </StackLayout>
                </StackLayout>
            </DataTemplate>
        </ResourceDictionary>
    </chart:SfChart.Resources>
    .....
    .....
    .....
    <chart:SfChart.Series>
        <chart:LineSeries x:Name="lineSeries1" TooltipTemplate="{StaticResource toolTipTemplate1}"  StrokeWidth="3" ItemsSource="{Binding LineData1}" Color="#00BDAE" XBindingPath="Value" YBindingPath="Size" LegendIcon="Circle" Label="France" EnableTooltip="True">
            <chart:LineSeries.DataMarker>
                <chart:ChartDataMarker  x:Name="marker" ShowMarker="True" MarkerColor="#00BDAE" MarkerBorderColor="White" ShowLabel="False" MarkerHeight="10" MarkerWidth="10" MarkerBorderWidth="2" />
            </chart:LineSeries.DataMarker>
        </chart:LineSeries>
        <chart:LineSeries x:Name="lineSeries2" TooltipTemplate="{StaticResource toolTipTemplate1}"  StrokeWidth="3" ItemsSource="{Binding LineData2}" Color="#404041" XBindingPath="Value" YBindingPath="Size" Label="Germany" LegendIcon="Circle" EnableTooltip="True">
            <chart:LineSeries.DataMarker>
                <chart:ChartDataMarker ShowMarker="True" MarkerColor="#404041" ShowLabel="False" MarkerBorderWidth="2" MarkerBorderColor="White" MarkerHeight="10" MarkerWidth="10" />
            </chart:LineSeries.DataMarker>
        </chart:LineSeries>
    </chart:SfChart.Series>
</chart:SfChart>

Chart Tooltip in Xamarin.Forms - An interactive feature

Tooltip

Selection

Xamarin Charts highlight data points or series. With the selection feature, we can implement the drill-down function to navigate to another page of information about a selected data point. Refer to our user guide for more details.

Chart Selection in Xamarin.FormsDrill-down

Trackball

In Xamarin Charts, trackball is similar to a tooltip, appearing on a chart as a hover label connected by a vertical or horizontal line to a data point. This feature can be used as an alternate to the data label feature, in case you are unable to show data labels for all data points due to space constraints. Some trackball features:

Chart Trackball in Xamarin.FormsTrackball

Zooming and panning

When plotting a Xamarin.Forms chart with large amounts of data, zooming and scrolling are very useful for data readability. Zooming is performed by pinching, selecting a region, or double tapping. A chart can be panned by dragging your finger across the touchscreen. Here are a few more helpful aspects of zooming and panning:

XAML

<chart:SfChart  x:Name="Chart">
    <chart:SfChart.ChartBehaviors>
        <chart:ChartZoomPanBehavior EnablePanning="True" EnableZooming="True" EnableDoubleTap="true" EnableSelectionZooming="True" EnableDirectionalZooming="True" ZoomMode="XY" />
    </chart:SfChart.ChartBehaviors>
            ....
            ...
            
</chart:SfChart>

Chart Zooming in Xamarin.Forms

Zooming and Panning

Conclusion

Data visualization and analysis is now an essential component of business processes. Companies big and small need clear, efficient, interactive ways to translate information properly. We ensure that our Charts component contributes to your business process with the user-based, interactive features available in this product. You can find more information about these interactive features here.

Play with our Charts control in Xamarin.Forms with the samples available in this GitHub location. Also, explore our samples available on Google Play and the Microsoft Store. Learn about the controls’ advanced features using our documentation.

If you have any questions or need any clarification, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Tags:

Share this post:

Comments (1)

[…] Spice up Your Xamarin.Forms App with Interactive Features of Syncfusion Charts (Karthikeyan V.) […]

Comments are closed.

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed