zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    安卓上的蓝牙数据传输
    算法题 整理--- 不定时更新
    Scrapy 框架的安装以及常用指令
    Flask 基础
    HTTP 请求包含: (请求行,请求头,请求体)
    Python 字符串,列表,字典,集合的常用方法
    Vue+Django 登录测试
    用view视图不含序列化写图书管理系统
    解决hao123恶意捆绑浏览器问题
    不同试图实现增删改查操作
  • 原文地址:https://www.cnblogs.com/ysharp/p/2043313.html
Copyright © 2011-2022 走看看