码迷,mamicode.com
首页 > Windows程序 > 详细

WPFTookit Chart

时间:2015-04-22 11:16:49      阅读:294      评论:0      收藏:0      [点我收藏+]

标签:

如何使用WPFToolKit Chart

 

 

隐藏Legend

隐藏Chart的Legend

<chartingToolkit:Chart.LegendStyle>
    <Style TargetType="Control">
        <Setter Property="Width" Value="0" />
        <Setter Property="Height" Value="0" />
    </Style>
</chartingToolkit:Chart.LegendStyle>

 

隐藏具体Item的legend

<charting:LineSeries.LegendItemStyle >
  <Style TargetType="{x:Type charting:LegendItem}">
     <Setter Property="Visibility" Value="Collapsed"/>
  </Style>
</charting:LineSeries.LegendItemStyle>

 

显示定义横纵坐标

<Grid Height="800">
        <chartingToolkit:Chart  Name="lineChart" Title="Pressure over Time" 
    VerticalAlignment="Top" Margin="20,50,20,0" Height="500">
            <chartingToolkit:Chart.Axes>
                <chartingToolkit:LinearAxis Title="Pressure" Orientation="Y" Interval="100" />
                <chartingToolkit:LinearAxis Title="Time" Orientation="X" Interval="100" />
            </chartingToolkit:Chart.Axes>
            <chartingToolkit:LineSeries DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}"  Name="Test"
                                        IsSelectionEnabled="True" ClipToBounds="False">
            </chartingToolkit:LineSeries>        </chartingToolkit:Chart>
        <Button Width="100" Height="24" Margin="20,556,1058,220" Content="More" Name="Button1" />
    </Grid>

 

修改横纵坐标

 

 

 

修改ToolTip

WPFTookit Chart

标签:

原文地址:http://www.cnblogs.com/HQFZ/p/4446727.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!