Elegantly Visualize Data with Interactive Features in .NET MAUI Charts | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (173).NET Core  (29).NET MAUI  (203)Angular  (107)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (40)Black Friday Deal  (1)Blazor  (211)BoldSign  (13)DocIO  (24)Essential JS 2  (106)Essential Studio  (200)File Formats  (65)Flutter  (132)JavaScript  (219)Microsoft  (118)PDF  (81)Python  (1)React  (98)Streamlit  (1)Succinctly series  (131)Syncfusion  (897)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (50)Windows Forms  (61)WinUI  (68)WPF  (157)Xamarin  (161)XlsIO  (35)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (146)Chart  (127)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (63)Development  (618)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (39)Extensions  (22)File Manager  (6)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  (501)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (42)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  (10)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (381)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (17)Web  (582)What's new  (323)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Elegantly Visualize Data with Interactive Features in .NET MAUI Charts

Elegantly Visualize Data with Interactive Features in .NET MAUI Charts

Charts are the perfect tools for visualizing a huge volume of data in a limited space. They help us easily understand trends in data through appealing visual representations.

Syncfusion .NET MAUI Charts is a well-crafted charting control for visualizing data. It provides a rich gallery of more than 10 chart and graph types that cater to all charting scenarios. One of its most powerful features is its interactive capabilities.

In this blog, we’ll look at some of the rich interactive features of the .NET MAUI Charts with code examples.

Tooltips

Tooltips are small windows that appear when a user hovers over a specific data point on the chart. They can display additional information about the data point, such as its value and category. Tooltips can be opened by tapping a data point on mobile devices or moving the pointer over a data point on desktop devices.

The following code example shows how to enable tooltips in a chart.

<chart:SfCartesianChart>
 
<chart:SfCartesianChart.XAxes> <chart:CategoryAxis/> </chart:SfCartesianChart.XAxes>
<chart:SfCartesianChart.YAxes> <chart:NumericalAxis/> </chart:SfCartesianChart.YAxes>
<chart:LineSeries EnableTooltip="True"
ItemsSource="{Binding LineData1}"
XBindingPath="Name"
YBindingPath="Value"
ShowMarkers="True"/> . . . </chart:SfCartesianChart>
Tooltips Feature in .NET MAUI Charts
Tooltips Feature in .NET MAUI Charts

Trackball

The trackball feature allows users to view and compare multiple data points on a chart. It is particularly useful for fast-line and scatter charts, allowing users to see the relationship between different data points. Users can use the trackball feature by long pressing on mobile devices or moving the pointer across the chart area on desktops.

The following code example demonstrates how to turn on the trackball feature.

<chart:SfCartesianChart>
 
 <chart:SfCartesianChart.XAxes>
  <chart:DateTimeAxis/>
 </chart:SfCartesianChart.XAxes>
 
 <chart:SfCartesianChart.YAxes>
  <chart:NumericalAxis/>
 </chart:SfCartesianChart.YAxes>
 
 <chart:LineSeries ItemsSource="{Binding ChartData1}" 
XBindingPath="Date"
YBindingPath="Value"/> <chart:SfCartesianChart.TrackballBehavior> <chart:ChartTrackballBehavior x:Name="trackball"
ShowLine="True"
ShowMarkers="True"
DisplayMode="FloatAllPoints"/> </chart:SfCartesianChart.TrackballBehavior> . . . </chart:SfCartesianChart>
Trackball Feature in .NET MAUI Charts
Trackball Feature in .NET MAUI Charts

Selection

The selection feature allows users to select and highlight specific data points or series on the chart and perform actions on them.

The following code example shows how to enable selection.

<chart:SfCartesianChart HorizontalOptions="Fill" 
VerticalOptions="Fill"
x:Name="chart"> <chart:SfCartesianChart.XAxes> <chart:DateTimeAxis/> </chart:SfCartesianChart.XAxes> <chart:SfCartesianChart.YAxes> <chart:NumericalAxis/> </chart:SfCartesianChart.YAxes> <chart:ColumnSeries ItemsSource="{Binding SelectionData}"
XBindingPath="Date"
YBindingPath="Value"> <chart:ColumnSeries.SelectionBehavior> <chart:DataPointSelectionBehavior SelectionBrush="#314A6E"
SelectedIndex="6"
Type="SingleDeselect"/> </chart:ColumnSeries.SelectionBehavior> </chart:ColumnSeries> </chart:SfCartesianChart>
Selecting Data Points in .NET MAUI Charts
Selecting Data Points in .NET MAUI Charts

Using the selection feature, we can also implement the drill-down function to navigate to another chart when tapping on a segment. This helps us show additional information about the selected data.

Drill-down Feature in .NET MAUI Charts
Drill-down Feature in .NET MAUI Charts

Explode on touch

The exploding on touch feature can be useful for highlighting a specific data point in a pie or doughnut chart. This feature allows users to explore a data point by just tapping or clicking on it.

Refer to the following code example to see how to turn this feature on.

<chart:SfCircularChart>
 <chart:DoughnutSeries ItemsSource="{Binding Data}"
                       XBindingPath=" Product "
                       YBindingPath="Value"
                       ExplodeOnTouch="True"/>
</chart:SfCircularChart>
Exploding on Touch Feature in .NET MAUI Doughnut Chart
Exploding on Touch Feature in .NET MAUI Doughnut Chart

Zooming and panning

The zooming and panning feature allows users to zoom in and out of specific parts of a chart and pan around the chart to view different sections. This is particularly useful for large datasets or charts with many data points.

Refer to the following code example to enable this feature.

<chart:SfCartesianChart>
 
 <chart:SfCartesianChart.XAxes>
  <chart:DateTimeAxis/>
 </chart:SfCartesianChart.XAxes>
 
 <chart:SfCartesianChart.YAxes>
  <chart:NumericalAxis/>
 </chart:SfCartesianChart.YAxes>
 
 <chart:SfCartesianChart.ZoomPanBehavior>
  <chart:ChartZoomPanBehavior/>
 </chart:SfCartesianChart.ZoomPanBehavior>

</chart:SfCartesianChart>
Zooming and Panning Feature in .NET MAUI Charts
Zooming and Panning Feature in .NET MAUI Charts

Conclusion

Thanks for reading! In this blog, we explored the interactive features of Syncfusion’s .NET MAUI Charts. Use these features to enhance your charting experience. Also, try out our .NET MAUI control demos available on GitHub and leave your feedback in the comments section at the end of this blog.

If you’re not a Syncfusion customer, start a 30-day free trial to see how our components can benefit your projects.

You can also contact us through our support forum, support portal, or feedback portal. We are always happy to assist you!

Test Flight
App Center Badge
Google Play Store Badge
Microsoft Badge
Github Store Badge

Related blogs

Tags:

Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed