• 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>
  • 相关阅读:
    Redhat7 安装 yum源(亲测有效)
    Win10开启FTP与配置(完整无错版)
    DataStage中Transformer的函数大全
    缺省值是什么
    扫描线
    2021.07.02笔记-DP
    2021.07.02-2膜你赛
    2021.07.01膜你赛
    2021.06.21模拟赛
    2021.06.09模拟赛
  • 原文地址:https://www.cnblogs.com/mjgb/p/StackedColumnChart.html
Copyright © 2020-2023  润新知