简体   繁体   English

如何删除图表区域下的按键标签?

[英]How can you remove label of key under chart area?

I'm using the chart control from the WPFToolkit. 我正在使用WPFToolkit中的图表控件。

How can I remove or hide label of "key" under chart area? 如何删除或隐藏图表区域下的“键”标签?

I marked it in red on screen: 我在屏幕上将其标记为红色:

图表

I have the following XAML code: 我有以下XAML代码:

<chartingToolkit:Chart Margin="62.14,92.004,0,130.505"
                       Name="chart"
                       HorizontalAlignment="Left"
                       Width="385" 
                       BorderThickness="0"
                       Padding="0" >
    <chartingToolkit:LineSeries DependentValuePath="Value"
                                IndependentValuePath="Key"
                                ItemsSource="{Binding}"
                                IsSelectionEnabled="True"
                                DataPointStyle="{StaticResource InvisibleDataPoint}"/>
</chartingToolkit:Chart>

According to How does one hide the legend try using: 根据如何隐藏图例尝试使用:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM