1
Silverlight 3工具包圖表非常棒。我正在使用BarSeries,silverlight顯示的是與值邊界成比例的條的長度。但是有什麼辦法可以在酒吧或酒吧旁邊獲得實際價值嗎?這裏是我的XAMLSilverlight 3工具包圖表:如何顯示欄上的值?
<chartingToolkit:Chart
Grid.Column="1"
x:Name="chartEnvironmentStatusGlobal"
Title="Environment Status">
<chartingToolkit:BarSeries
x:Name="chartEnvironmentStatus"
Title="Pass"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="Green"
IndependentValueBinding="{Binding Path=Instance}"
DependentValueBinding="{Binding Path=Count}"
AnimationSequence="LastToFirst">
</chartingToolkit:BarSeries>
<chartingToolkit:BarSeries
x:Name="chartEnvironmentStatus1"
Title="Fail"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="Red"
IndependentValueBinding="{Binding Path=Instance}"
DependentValueBinding="{Binding Path=Count}"
AnimationSequence="LastToFirst">
</chartingToolkit:BarSeries>
</chartingToolkit:Chart>
在此先感謝您。
工作就像魅力!非常感謝你。 Silverlight模板非常棒。 – funwithcoding 2010-02-12 22:14:14
你可能想試試http://blogs.msdn.com/delay/archive/2008/12/14/expanded-access-to-silverlight-2-s-generic-xaml-resources-silverlightdefaultstylebrowser-updated-for -better-compatibility.aspx來提取模板 – Jags 2011-06-14 11:08:34