zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    软件开发过程须贯彻评估和测试
    【灌水】多维成功论
    改进c系列(目录)
    网站管理艺术
    .net 跨平台也是一句谎言
    用户界面和逻辑应该分离
    设计模式
    程序员找不到工作是因为管理差
    编码阶段
    保证软件开发质量的一种管理学
  • 原文地址:https://www.cnblogs.com/mjgb/p/StackedColumnChart.html
Copyright © 2011-2022 走看看