The .NET MAUI Linear Gauge control is a multipurpose data visualization control that displays numerical values on a linear scale either horizontally or vertically. This project shows how to create and configure the Linear Gauge control of Syncfusion. This project also includes a code snippet to set a specific axis pointer value and customize the axis line height and width as well as how to add multiple axis ranges.
.NET Multi-platform App UI (.NET MAUI) apps can be written for the following platforms:
- Android 5.0 (API 21) or higher.
- iOS 11 or higher, using the latest release of Xcode.
- macOS 10.15 or higher, using Mac Catalyst.
- Windows 11 and Windows 10 version 1809 or higher, using Windows UI Library (WinUI) 3.
- Visual Studio 2022 Preview version 17.6.0 (.NET MAUI version 6.0.552) with .NET 6.0 and .NET 7.0
- Microsoft Visual Studio 2022 version 17.5.1 with (.NET MAUI version 6.0.552) with .NET 6.0 and .NET 7.0
- Visual Studio 2022 for Mac Preview version 17.5 (.NET MAUI version 6.0.552) with .NET 6.0 and .NET 7.0
Refer to the following link for more details: System Requirements
-
Clone the sample and open it in Visual Studio 2022 preview.
Note: If you download the sample using the "Download ZIP" option, right-click it, select Properties, and then select Unblock.
-
Register your license key in the App.cs file as demonstrated in the following code.
public App() { //Register Syncfusion license Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY"); InitializeComponent(); MainPage = new MainPage(); }
Refer to this link for more details.
-
Clean and build the application.
-
Run the application.
Syncfusion has no liability for any damage or consequence that may arise from using or viewing the samples. The samples are for demonstrative purposes. If you choose to use or access the samples, you agree to not hold Syncfusion liable, in any form, for any damage related to use, for accessing, or viewing the samples. By accessing, viewing, or seeing the samples, you acknowledge and agree Syncfusion’s samples will not allow you seek injunctive relief in any form for any claim related to the sample. If you do not agree to this, do not view, access, utilize, or otherwise do anything with Syncfusion’s samples.
The appearance of the .NET MAUI Linear Gauge can be set to both vertical and horizontal orientations. You can choose horizontal gauge or vertical gauge depending on your requirements.
A range is a visual element that helps you quickly visualize where a data range falls on the axis track. You can add a child content inside the linear range. Multiple ranges with different styles can be added to a linear gauge. You can also customize the position of the range.
A pointer is used to indicate a specific value on an scale. The gauge has three types of pointers: shape marker pointer, content marker pointer, and bar pointer. All the pointers can be customized as needed and you can also add multiple pointers in the Linear Gauge.
Animate the gauge elements in a visually appealing manner when they are loaded or their values are changed.
The shape and content marker pointers in the Linear Gauge can be moved from one value to another by swiping or drag gestures.
Learn More about .NET MAUI Linear Gauge
Suggest a feature or report a bug
Syncfusion's .NET MAUI UI Controls library is the only suite that you will ever need to build an application since it contains over 40 high-performance, lightweight, modular, and responsive UI Controls in a single package. In addition to Linear Gauge, we provide popular .NET MAUI Controls such as DataGridCharts, Scheduler, ListView, and Excel Library.
Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 29,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.
Today, we provide 1800+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, JavaScript, and .NET MAUI), and desktop development (WinForms, WPF, WinUI,UWP, Flutter, and .NET MAUI). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.
[email protected] | www.syncfusion.com | Toll Free: 1-888-9 DOTNET