1
如何交換WPF Toolkit折線圖中的座標軸?我有以下XAML:如何在WPF Toolkit折線圖中交換座標軸?
<chartingToolkit:Chart Name="lineChart" Title="Line Series Demo" Margin="0,0,0,0">
<chartingToolkit:LineSeries DependentValuePath="Key" IndependentValuePath="Value" ItemsSource="{Binding}" IsSelectionEnabled="True" />
</chartingToolkit:Chart>
從屬值始終顯示爲Y軸。我需要它們作爲X軸。這可能與WPF工具包圖表?如果我不能使用WPF Toolkit來做到這一點,那麼我可以使用其他免費的WPF圖表庫嗎?我所需要的是可以在X軸上處理多個系列的線形圖,並在Y軸上處理字符串。
你能不能簡單地設置'DependentValuePath =「Value」IndependentValuePath =「Key」'? – 2012-01-10 21:43:09
@djacobson數據被定義爲'KeyValuePair',所以如果我按照您的建議切換值和鍵,我會得到一個InvalidOperationException「沒有合適的座標軸可用於繪製相關值。 –
Rado
2012-01-10 21:54:53