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. Image for the cookie policy date
Syncfusion Feedback


Overview

The Xamarin.Forms 100% stacked area chart displays multiple series of data as stacked areas, ensuring that the cumulative proportion of each stacked element always totals 100%. Thus, the y-axis will always render within the range 0–100. This chart type is best suited for depicting the relative contribution of data points.

Beautiful Xamarin.Forms Stacked Area 100 Chart


Key features

Xamarin.Forms chart show the vertical rendering of stacked area 100 chart

Vertical rendering

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

Xamarin.Forms chart show the empty or null data point support in stacked area 100 chart

Empty point

Empty or null data points are elegantly handled in the 100% stacked area chart.

Xamarin.Forms chart show the color and stroke customization of stacked area 100 chart

Customization

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


Code example

Easily get started with Xamarin Stacked Area 100% Chart using a few simple lines of C# code, as demonstrated below,

<?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:StackingArea100Series 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 stacked area 100 chart

GitHub Code

Explore the Xamarin.Forms Stacked Area 100% Chart example from GitHub to learn how to render and configure charts.

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

100% Stacked Area Chart User Guide

Learn available options to customize the Xamarin.Forms 100% stacked area chart.

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

100% Stacked Area Chart API Reference

Explore the Xamarin.Forms 100% stacked area chart APIs.


150+ XAMARIN UI CONTROLS

ALL CONTROLS
  • Xamarin.Forms
  • Xamarin.Android
  • Xamarin.iOS
The most downloaded control (based on the nuget.org download count).
Scroll up icon