2013-04-30 1 views
1

chartWPF Toolkit에서 범례 이름을 변경하는 방법

안녕하세요!

이것은 WPF Toolkit 선 차트입니다.

누구나 Series1 텍스트를 프로그래밍 방식으로 변경하는 방법을 알고 있습니까?

감사합니다.

+3

당신이 _anything_을 시도해 봤어 제목 값이 범례 텍스트에 대한 책임? –

+1

Google을 시도했지만 아무 것도 찾지 못했습니다. – bbonch

답변

4

LineSeries의 제목 = "월간 백작은"디스플레이

<wpft:Chart Canvas.Top="80" Canvas.Left="10" Name="mcChart" 
     Width="400" Height="250" 
     Background="LightSteelBlue"> 
    <wpft:Chart.Series> 
    <wpft:LineSeries Title=" Monthly Count" 
     IndependentValueBinding="{Binding Path=Key}" 
     DependentValueBinding="{Binding Path=Value}"> 
</wpft:LineSeries> 
</wpft:Chart.Series>   
</wpft:Chart> 
1

시리즈는

       Title="Deliveries by Hour" 
          Grid.Row="2" 
          Grid.Column="0" 
          Margin="10"> 
     <chartingToolkit:AreaSeries Title="Total added" 
            DependentValuePath="Value" 
            IndependentValuePath="Key" 
            IsSelectionEnabled="True" 
            ItemsSource="{Binding [0]}" /> 
     <chartingToolkit:AreaSeries Title="Sent" 
            DependentValuePath="Value" 
            IndependentValuePath="Key" 
            IsSelectionEnabled="True" 
            ItemsSource="{Binding [1]}" /> 
     <chartingToolkit:AreaSeries Title="3+ hours overdue" 
            DependentValuePath="Value" 
            IndependentValuePath="Key" 
            IsSelectionEnabled="True" 
            ItemsSource="{Binding [2]}" /> 
    </chartingToolkit:Chart>