new layout
The WinUI Cartesian Charts control is optimized to visualize large quantities of data in an elegant way. Its rich feature set includes functionalities like data binding, multiple axes, legends, animations, data labels, trackballs, tooltips, gradients, and zooming.
The Cartesian chart includes popular and widely used charts like line, column, bar, area, and scatter.
A vast range of features is available to customize the appearance of charts and render the desired outputs.
Animation represents data with smooth fluid transitions.
The WINUI Chart was designed with a focus on fast-paced performance to let users render huge amounts of data in seconds.
Enables users from different locales to use Charts by formatting dates, currencies, and numbering to suit their preferences.
Charts in WINUI render adaptively based on device type like Windows desktops and device orientation, providing an optimal user experience.
The WinUI Cartesian Charts control supports three types of axes: numerical, categorical, and date-time. The appearance of all chart axis elements can be customized with built-in properties.
Uses a numeric scale and displays numbers in equal intervals in axis labels.
Displays date-time values in equal intervals in axis labels. It is typically used as the x-axis.
The WinUI fast chart plots a large number of data points fast.
The fast line chart is a special kind of line chart that renders a collection with a huge number of data points. A fast line chart is rendered using a polyline segment.
A fast column chart is used to boost the performance of the column series.
A fast scatter chart is used to render a large number of scatter points.
A fast step-line chart is the high-performance version of the step-line series.
From a vast collection of features available in WINUI Cartesian Charts, a few are described here.
For the series to be plotted vertically, the axis direction can be mirrored when required.
Legends provide additional information that is helpful in identifying individual series in a chart. They can be docked to left, right, top, or bottom positions of the chart area.
Data points can easily be annotated with labels to help improve readability.
The end-user experience is greatly enhanced by a set of interactive features: zooming and panning, tooltip, selection, trackball, and crosshair.
Improve the readability of large numbers of data points by zooming and panning. Zooming is performed by pinching, selecting a region, or double tapping at the required position.
Tooltips display pop-ups with additional information when the mouse hovers over a data point.
Allows users to highlight or select specific data points or areas of a chart for further analysis or comparison. There are two types of selection: data point and series.
Display the exact data values for multiple data points simultaneously by tracking the position of the user’s cursor.
The Crosshair feature is used to display the exact values of data points on the x and y axes at a particular location on the chart for an accurate analysis.
Easily get started with the WinUI Charts using a few simple lines of XAML and C# code examples as demonstrated below. Also, explore our WinUI Charts Example which shows you how to render and configure Charts in WinUI.
<Window x:Class="ChartExample.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ChartExample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:chart="using:Syncfusion.UI.Xaml.Charts"
mc:Ignorable="d"
Title="WinUI Column Chart" Height="450" Width="700">
<Grid>
<chart:SfCartesianChart Height="300" Width="500">
<!--Setting DataContext-->
<chart:SfCartesianChart.DataContext>
<local:ViewModel/>
</chart:SfCartesianChart.DataContext>
<!--Initialize the horizontal axis for the WinUI Chart-->
<chart:SfCartesianChart.XAxes>
<chart:CategoryAxis/>
</chart:SfCartesianChart.XAxes>
<!--Initialize the vertical axis for the WinUI Chart-->
<chart:SfCartesianChart.YAxes>
<chart:NumericalAxis/>
</chart:SfCartesianChart.YAxes>
<!--Adding Column Series to the WinUI Chart-->
<chart:ColumnSeries ItemsSource="{Binding Data}"
XBindingPath="Month"
YBindingPath="Target">
</chart:ColumnSeries>
</chart:SfCartesianChart>
</Grid>
</Window>
public class Model
{
public string Month { get; set; }
public double Target { get; set; }
public Model(string xValue, double yValue)
{
Month = xValue;
Target = yValue;
}
}
public class ViewModel
{
public ObservableCollection<Model> Data { get; set; }
public ViewModel()
{
Data = new ObservableCollection<Model>()
{
new Model("Jan", 50),
new Model("Feb", 70),
new Model("Mar", 65),
new Model("Apr", 57),
new Model("May", 48),
};
}
}
You can find our WinUI Charts demo here.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.