你好!
这是 WPF 工具包折线图。
有谁知道如何以编程方式更改 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 值
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>