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 100% 3D stacked column chart visualizes data with y-values stacked over one another in the series order. It shows the relationship between individual values to the total sum of the points.

Beautiful WPF 3D stacked column chart


Key features

Grouping support in 3D stacked column chart

Grouped stacked chart

Group the WPF chart series with a unique group name to differentiate that set of series from others.

The WPF 3D stacked column chart with marker support

Display markers

The WPF 100% 3D stacked column chart data points are visualized as marks with the built-in symbols such as cross, square, plus, inverted triangle, hexagon, ellipse, vertical line, horizontal line, diamond, triangle, and pentagon.

Spacing and width customization of 3D stacked column chart

Spacing and width

Customize the spacing between two columns and the width of the column.

Marker labels in 3D stacked column chart

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.


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 3D 100% Stacked Column Chart" Height="450" Width="700">
    
  <!--Setting DataContext-->
    <Window.DataContext>
        <local:Chart3DViewModel/>
    </Window.DataContext>

    <StackPanel HorizontalAlignment="Center"   VerticalAlignment="Center">

        <chart:SfChart3D  
            Margin="50" 
            Height="400" Width="400" Depth="500"
            VerticalAlignment="Bottom"
            EnableRotation="True">

            <!--  Initialize the horizontal axis for the WPF 3D Chart  -->
            <chart:SfChart3D.PrimaryAxis>
                <chart:CategoryAxis3D />
            </chart:SfChart3D.PrimaryAxis>

            <!--  Initialize the vertical axis for the WPF 3D Chart  -->
            <chart:SfChart3D.SecondaryAxis>
                <chart:NumericalAxis3D />
            </chart:SfChart3D.SecondaryAxis>

            <!--  Adding 100% 3D Stacked Column Chart to the WPF 3D Chart   -->
            <chart:StackingColumn100Series3D
                ItemsSource="{Binding CategoricalDatas}"
                XBindingPath="Year" 
                YBindingPath="Plastic">
            </chart:StackingColumn100Series3D>
              <chart:StackingColumn100Series3D
                ItemsSource="{Binding CategoricalDatas}"
                XBindingPath="Year" 
                YBindingPath="Plastic">
            </chart:StackingColumn100Series3D>
        </chart:SfChart3D>
    </StackPanel>
</Window>
public class BarChart3DModel 
    {
        public string Year { get; set; }

        public double Plastic { get; set; }

        public double Metal { get; set; }

        public BarChart3DModel(double metal, double plastic, string year)
        {
            Plastic = plastic;
            Year = year;
            Metal = metal;
        }

    }
    public class Chart3DViewModel
    {
        public Chart3DViewModel()
        {
            CategoricalDatas = new ObservableCollection<BarChart3DModel>();

            CategoricalDatas.Add(new BarChart3DModel(7, 5, "2008"));
            CategoricalDatas.Add(new BarChart3DModel(13, 10, "2009"));
            CategoricalDatas.Add(new BarChart3DModel(15, 12, "2010"));
            CategoricalDatas.Add(new BarChart3DModel(21, 20, "2011"));
            CategoricalDatas.Add(new BarChart3DModel(25, 23, "2012"));
        }

        public ObservableCollection<BarChart3DModel> CategoricalDatas
        {
            get;
            set;
        }
    }

Learning resources

Navigate to GitHub code used to configure the WPF 3D one hundred percent stacked column chart

GitHub Code

The WPF 3D one hundred percent stacked column chart configuration code is available in GitHub.

Navigate to the options available in the user guide to customize the WPF 3D one hundred percent stacked column chart

100% 3D stacked column chart User Guide

Learn more about the available options to customize WPF 3D one hundred percent stacked column charts.

Navigate to the API references documentation of the WPF 3D one hundred percent stacked column chart

100% 3D stacked column chart API Reference

Explore the WPF 3D one hundred percent stacked 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