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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Overview

The Xamarin.Forms waterfall chart explains gradual changes in the quantitative value of an entity that is subject to changes by increments or decrements. Using the waterfall chart, you can quickly illustrate changes in revenues.

Beautiful Xamarin.Forms Waterfall Chart


Key features

Xamarin.Forms chart shows the waterfall chart features AutoSum

AutoSum

Calculate the sum of previous data points in the waterfall chart. If this property is disabled, use the specified ItemsSource collection’s y value.

Xamarin.Forms chart shows color customization in a waterfall chart

UI customization

Customize the positive, negative, and summary segment colors of the waterfall chart by using built-in APIs to make it visually unique.

Xamarin.Forms chart shows data labels of waterfall chart

Data labels

Data points can easily be annotated with data labels to improve readability.


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:WaterfallSeries ItemsSource="{Binding Data}" XBindingPath="Category" YBindingPath="Value" SummaryBindingPath="IsSummary"/>
               
	</chart:SfChart>
	
</ContentPage>
public class Model
{
    public string Category { get; set; }

    public double Value { get; set; }

    public bool IsSummary { get; set; }

    public Model(string category, double value, bool isSummary)
    {
        Category = category;
        Value = value;
        IsSummary = isSummary;
    }
}

public class ViewModel
{
    public ObservableCollection<Model> Data { get; set; }

    public ViewModel()
    {
        Data = new ObservableCollection<Model>()
        {
            new Model("Sales", 145, false),
            new Model("Staff", -65, false),
            new Model("Balance", 58, true),
            new Model("Others", 12, false),
            new Model("Tax", -30, false),
            new Model("Profit", 45, true),
            new Model("Inventory", -12, false),
            new Model("Marketing", -25, false),
            new Model("Net Income", 25, true),
        };
    }
}

Learning resources

Check out the code used to configure the Xamarin.Forms waterfall chart on GitHub

GitHub Code

The Xamarin.Forms waterfall chart configuration code is available on GitHub.

View the options available to customize the Xamarin.Forms waterfall chart in the user guide

Waterfall Chart User Guide

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

Navigate to the API reference documentation of the Xamarin.Forms waterfall chart

Waterfall Chart API Reference

Explore the Xamarin.Forms waterfall 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

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

Live Chat Icon For mobile
Live Chat Icon