We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Overview

The Xamarin.Forms area chart is like a line chart that represents time-dependent data and shows the trends at equal intervals, but it fills the area. It can be configured with numerical, category, date time, or logarithmic axis for the graph.

Beautiful Xamarin.Forms Area Charts


Key features

Shows the Xamarin.Forms vertical area chart

Vertical chart

Rotate the area chart to plot data in the vertical direction and view data from a different perspective.

The Xamarin.Forms area chart shows the empty or null point support

Empty or null data point

The Xamarin.Forms area chart handles empty or null data points elegantly.

Shows the customizable area chart in Xamarin.Forms

Customization

Customize the color and border of the area chart using built-in APIs to make it visually unique.

Xamarin.Forms chart shows the marker support in area chart

Marker

Marks data points with built-in shapes such as circles, rectangles, ellipses, vertical lines, horizontal lines, diamonds, triangles, and pentagons. In addition to these shapes, use images to make the point more attractive.

Xamarin.Forms chart shows the multiple axis support

Multiple axes

Use multiple axes to plot different data sets that widely vary from one other.


Code example

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:ChartExample"
             xmlns:chart="clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms"
             x:Class="ChartExample.MainPage">

    <ContentPage.BindingContext>
        <local:ViewModel/>
    </ContentPage.BindingContext>

    <chart:SfChart>

        <chart:SfChart.PrimaryAxis>
            <chart:CategoryAxis/>
        </chart:SfChart.PrimaryAxis>

        <chart:SfChart.SecondaryAxis>
            <chart:NumericalAxis/>
        </chart:SfChart.SecondaryAxis>

        <chart:AreaSeries ItemsSource="{Binding Data}" XBindingPath="Month" YBindingPath="Target"/>

    </chart:SfChart>

</ContentPage>
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), 
        };
    }
}

Learning resources

Navigate to GitHub code used to configure the Xamarin.Forms area chart

GitHub Code

The Xamarin.Forms area chart configuration code is available in GitHub.

Navigate to the options available in User Guide to customize the Xamarin.Forms area chart

Area Chart User Guide

Learn available options to customize the Xamarin.Forms area chart.

Navigate to the API references documentation of Xamarin.Forms area chart

Area Chart API Reference

Explore the Xamarin.Forms area chart APIs.


145+ XAMARIN UI CONTROLS

ALL CONTROLS
  • Xamarin.Forms
  • Xamarin.Android
  • Xamarin.iOS
Scroll up icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon