やあ!
これは WPF Toolkit の折れ線グラフです。
プログラムで Series1 テキストを変更する方法を知っている人はいますか?
ありがとう!
LineSeries Title=" Monthly Count" は、凡例テキストの表示を担当します
<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>
シリーズにはタイトル値があります
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>