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


Overview

The Xamarin.Forms column chart uses vertical bars (called columns) to display different values of one or more items. Column charts are among the most common chart types that are being used. It is like a bar chart except that here the bars are vertical and not horizontal. Points from adjacent series are drawn as bars next to each other.

Beautiful Xamarin.Forms Column Charts


Key features

The Xamarin.Forms column chart shows the overlapping bars

Overlapping bars

Compare two different types of relational values using bar charts that overlap one another in Xamarin.Forms.

The Xamarin.Forms column chart shows the gradient color support

Gradient

Applies gradient colors to visualize data in different colors, improving the readability and appearance of the chart.

The Xamarin.Forms column chart shows the corner radius customization of bars

Corner radius

Modernize the UI by applying rounded corners to the bar chart.

The Xamarin.Forms column chart shows the multiple axes support

Multiple axes

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


Code example

<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:ColumnSeries 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 column chart

GitHub Code

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

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

Column Chart User Guide

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

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

Column Chart API Reference

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