Skip to content

This article in the Syncfusion Knowledge Base explains how to add benchmark line in .NET MAUI Cartesian chart

Notifications You must be signed in to change notification settings

SyncfusionExamples/How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

How to add a benchmark line to the .NET MAUI Cartesian Chart

A benchmark line in a chart is a horizontal or vertical line that represents a specific value or threshold. It is used to visually compare data points against this reference value. For example, a benchmark line can indicate a target sales figure, a minimum acceptable performance level, or any other significant threshold.

Cartesian Chart

A Cartesian chart (or Cartesian coordinate chart) uses a rectangular coordinate system to plot data points on an X and Y axis. It is commonly used for displaying data in various formats, including line charts, bar charts, and scatter plots. The SfCartesianChart control from Syncfusion for .NET MAUI provides a flexible and powerful way to create these charts with various data visualization options.

Column Series

A Column Series is a type of chart series where data points are represented as vertical bars (columns) extending from the X-axis. It is one of the most common and effective ways to visualize data, especially when comparing different categories or tracking changes over time.

Annotations Support

Annotations in charts are graphical elements that can be added to provide additional information or highlight specific areas of the chart. They help in enhancing the interpretability of the chart by marking important data points, trends, or thresholds. Common types of annotations include lines, shapes, text, and images.

In this example, we will explore how to add the benchmark line for a Cartesian chart using the annotation feature and custom drawing method.

Annotation

Custom drawing

Troubleshooting

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 BenchMark KB article.