1

图表

你好!

这是 WPF 工具包折线图。

有谁知道如何以编程方式更改 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 值

                               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 回答