首页 > Windows开发 > 详细

WPFTookit Chart

时间:2015-04-22 11:16:49      阅读:309      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!