Hello Stacked Column Chart

<navigation:Page xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  
          x:Class="SLChartsPoc.Views.StackColumnChart" 
           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:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="StackColumnChart Page">
    <Grid x:Name="LayoutRoot">
        <toolkit:Chart>
            <toolkit:Chart.Series>
                <toolkit:StackedColumnSeries >
                    <toolkit:SeriesDefinition Title="Net (Projected)" 
                                              ItemsSource="{Binding Items}"
                                          IndependentValueBinding="{Binding DisplayText}" DependentValueBinding="{Binding X}" />
                    <toolkit:SeriesDefinition Title="Net (Realized)" 
                                          ItemsSource="{Binding Items}"
                                          IndependentValueBinding="{Binding DisplayText}" DependentValueBinding="{Binding Y}" />
                </toolkit:StackedColumnSeries>  
            </toolkit:Chart.Series>
            
            <toolkit:Chart.Axes>
                <toolkit:LinearAxis Orientation="Y" 
                                    Minimum="0" 
                                    Location="Left" 
                                    Title="Sales"  />
                <toolkit:CategoryAxis Title="Category" 
                                      Orientation="X"/>
            </toolkit:Chart.Axes>

        </toolkit:Chart> 
    </Grid>
</navigation:Page>
原文地址:https://www.cnblogs.com/mjgb/p/StackedColumnChart.html