• Chart without legend


    <Grid xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:charting="clr-namespace:Microsoft.Windows.Controls.DataVisualization.Charting;assembly=Microsoft.Windows.Controls.DataVisualization" xmlns:datavis="clr-namespace:Microsoft.Windows.Controls.DataVisualization;assembly=Microsoft.Windows.Controls.DataVisualization" xmlns:utility="clr-namespace:Utility;assembly=ChartBuilder" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
      <charting:Chart
       Title="Title"
       LegendTitle="Legend">

        <charting:Chart.LegendStyle>
          <Style TargetType
    ="datavis:Legend">
            <Setter Property="Width" Value
    ="0"/>
            <Setter Property="Height" Value
    ="0"/>
          </Style
    >
        </charting:Chart.LegendStyle
    >

        <charting:Chart.Series>
          <charting:ColumnSeries
           Title="Series 1">
            <charting:ColumnSeries.ItemsSource>
              <utility:ObservableObjectCollection>
                <sys:Double>1</sys:Double>
                <sys:Double>2.33333333333333</sys:Double>
                <sys:Double>3.66666666666667</sys:Double>
                <sys:Double>5</sys:Double>
              </utility:ObservableObjectCollection>
            </charting:ColumnSeries.ItemsSource>
          </charting:ColumnSeries>
        </charting:Chart.Series>
        <charting:Chart.Axes />
      </charting:Chart>
    </
    Grid>
  • 相关阅读:
    07_Go语言 ( 切片)
    06_Go语言( 数组)
    05_Go语言( 流程控制)
    04_Go语言( 运算符)
    02_Go语言(变量和常量)
    01_Go语言(环境的搭建)
    云电脑直播简单指南
    统信UOS共享打印机配置
    #插头dp#洛谷 5074 Eat the Trees
    #状压dp#洛谷 3959 [NOIP2017 提高组] 宝藏
  • 原文地址:https://www.cnblogs.com/ysharp/p/2043313.html
Copyright © 2020-2023  润新知