This example showcases the creation of a Bullet Chart using SfLinerGauge from Syncfusion Gauges to evaluate product and sales performance.
A Bullet Chart is a data visualization tool designed to display key performance indicators in a compact format. It consists of a main bar representing actual performance, a marker for the target value, and qualitative background ranges indicating performance levels. Bullet charts are more space-efficient and informative compared to traditional gauges. They are commonly used in business intelligence dashboards to track metrics like revenue, sales, and efficiency. This makes them ideal for quick and clear performance analysis.
The key features of the Linear Gauge such as Scale, Range, Pointer and Marker customization.
The Linear Gauge in Syncfusion MAUI Charts enhances clarity and context by allowing precise scaling and customization. Configure Interval and Maximum values to set the gauge range, and use MinorTicksPerInterval to control minor tick visibility. Dynamically enable or disable ShowLine, ShowLabels, and ShowTicks for better axis control.
The Range in Syncfusion Linear Gauge enhances clarity by visually differentiating performance levels. Define three LinearRange elements—Low (poor), Mid (average), and High (excellent) with distinct colors for easy interpretation. This allows users to quickly assess performance at a glance.
The Bar Pointer in Syncfusion Linear Gauge enhances clarity by visually representing ActualValues as product performance. Customize the fill color and pointer size for better visibility. This bar serves as the primary performance indicator within the gauge.
The Marker in Syncfusion Linear Gauge enhances clarity by highlighting TargetValues using a LinearShapePointer with a rectangular marker. Customize its shape, width, height, and position to make the target stand out. This helps users easily compare actual performance against the target.
After executing these code examples, we will get the output that resembles the following image.
Path too long exception
If you are facing a path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.
For a step-by-step procedure, refer to the .NET MAUI Bullet Chart blog post.