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 candle chart visualizes financial data and shows the trends at equal intervals. It can be often combined with line and column charts to show the close and volume of the data.

Beautiful Xamarin.Forms Candle Chart


Key features

Xamarin.Forms chart shows the bull and bear color customization

Hollow and filled

Configure the hollow or filled type in candle chart to view stock data from a different perspective.

Xamarin.Forms chart provides zooming and scrolling support to view the particular region

Zooming and scrolling

Supports zooming and scrolling when dealing with large amount of data to visualize the data point in any region.

Xamarin.Forms chart uses the technical indicator to predict the future price movements

Technical indicators

Supports analyzing historical data and predicting future price movements.

Xamarin.Forms chart shows the bull and bear color customization

Bull and bear

Customizable bull and bear colors.


Code example

Easily get started with the Xamarin Candle Chart using a few simple lines of C# code example 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:CandleSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Low="Low" Open="Open" Close="Close"/>

    </chart:SfChart>

</ContentPage>
public class Model
{
    public string Year { get; set; }

    public double High { get; set; }

    public double Low { get; set; }

    public double Open { get; set; }

    public double Close { get; set; }

    public Model(string xValue, double open, double high, double low, double close)
    {
        Year = xValue;
        Open = open;
        High = high;
        Low = low;
        Close = close;
    }
}

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

    public ViewModel()
    {
        Data = new ObservableCollection<Model>()
        {
            new Model("2010", 873.8, 878.85, 855.5, 860.5),
            new Model("2011", 861, 868.4, 835.2, 843.45),
            new Model("2012", 846.15, 853, 838.5, 847.5),
            new Model("2013", 846, 860.75, 841, 855),
            new Model("2014", 841, 845, 827.85, 838.65)
        };
    }
}

Learning resources

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

GitHub Code

Explore the Xamarin.Forms Candle 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 candle chart

Candle Chart User Guide

Learn available options to customize the Xamarin.Forms candle chart

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

Candle Chart API Reference

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