2017-12-06 23 views
0

WPFToolkit의 차트 컨트롤을 사용하고 있습니다.차트 영역에서 키 레이블을 제거하는 방법은 무엇입니까?

차트 영역에서 "키"레이블을 제거하거나 숨기려면 어떻게해야합니까?

나는 화면에 빨간색으로 표시 :

Chart

나는 다음과 같은 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> 

답변

0

How does one hide the legend에 따르면 사용해보십시오 :

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