1

チャート

やあ!

これは WPF Toolkit の折れ線グラフです。

プログラムで Series1 テキストを変更する方法を知っている人はいますか?

ありがとう!

4

2 に答える 2

4

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>
于 2013-04-30T14:45:26.773 に答える
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>
于 2013-07-02T20:19:24.670 に答える