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 WPF Range Column Chart is generally used to show the variation in the data value for a given time. It supports zooming, scrolling, tooltip, etc.

WPF Range Column Chart documentation

WPF Range Column Chart


Key features

WPF Range Column Chart Showing Spacing between Bars

Spacing and width

The range column chart provides an option to customize the spacing between two columns and the width of the column.

WPF Range Column Chart with Gradient Brush

Gradient

Apply gradient colors to visualize data in different colors, improving the readability and appearance of the range column chart in WPF.

WPF Range Column Chart with Markers

Display markers

The WPF Range Column Chart data points are visualized as marks with the built-in symbols such as cross, square, plus, inverted triangles, hexagon, ellipses, vertical lines, horizontal lines, diamonds, triangles, and pentagons.

WPF Range Column Chart with Data Labels

Data labels

Data labels display information about the data points. It provides the support for customizing the foreground, border, and background in addition to template support to customize the default appearance with the desired view. You can rotate a data label by its given angle.

WPF Vertical Range Column Chart

Vertical range column chart

The WPF Range Column Chart can be transposed vertically for users to view data from a different perspective.


Code example

<Window x:Class="ChartExample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:ChartExample"
        xmlns:chart="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.WPF"
        mc:Ignorable="d"
        Title="WPF Range Column Chart" Height="450" Width="700">
    
    <!--Setting DataContext-->
    <Window.DataContext>
        <local:ViewModel/>
    </Window.DataContext>
    
    <StackPanel>
        <chart:SfChart Height="300" Width="500">
            <!--Initialize the horizontal axis for the WPF Chart-->
            <chart:SfChart.PrimaryAxis>
                <chart:CategoryAxis/>
            </chart:SfChart.PrimaryAxis>

            <!--Initialize the vertical axis for the WPF Chart-->
            <chart:SfChart.SecondaryAxis>
                <chart:NumericalAxis/>
            </chart:SfChart.SecondaryAxis>
           
            <!--Adding Range Column Series to the WPF Chart-->
              <chart:RangeColumnSeries
                High="Stock"
                ItemsSource="{Binding Products}"
                Low="Price"
                XBindingPath="ProductName">
            </chart:RangeColumnSeries>
        </chart:SfChart>
    </StackPanel>
</Window>
public class RangeColumnChartModel
    {
        public string ProductName { get; set; }
        public double Price { get; set; }
        public double Stock { get; set; }
    }


public class ViewModel
{
    public ObservableCollection<RangeColumnChartModel> Products { get; set; }

    public ViewModel()
    {
        this.Products = new ObservableCollection<RangeColumnChartModel>();
            Products.Add(new RangeColumnChartModel() { ProductName = "Rice", Price = 20, Stock = 53 });
            Products.Add(new RangeColumnChartModel() { ProductName = "Wheat", Price = 22, Stock = 76 });
            Products.Add(new RangeColumnChartModel() { ProductName = "Oil", Price = 30, Stock = 80 });
            Products.Add(new RangeColumnChartModel() { ProductName = "Corn", Price = 26, Stock = 50 });
            Products.Add(new RangeColumnChartModel() { ProductName = "Gram", Price = 36, Stock = 68 });
            Products.Add(new RangeColumnChartModel() { ProductName = "Milk", Price = 20, Stock = 90 });
            Products.Add(new RangeColumnChartModel() { ProductName = "Butter", Price = 40, Stock = 73 });
    }
}

Learning resources

Navigate to GitHub code used to configure the WPF Range Column Chart

GitHub Code

The WPF Range Column Chart configuration code is available in GitHub.

Navigate to the options available in the user guide to customize the WPF Range Column Chart

WPF Range Column Chart User Guide

Learn more about the available options to customize WPF Range Column Charts.

Navigate to the API references documentation of the WPF Range Column Chart

WPF Range Column Chart API Reference

Explore the WPF Range Column Chart APIs.


100+ WPF CONTROLS

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