我正在尝试获取在OxyPlot WPF中所选(单击)的列。 有没有办法做到这一点? 我的WPF代码如下:
<oxy:Plot x:Name="plotDiagram" Title="Output" >
<oxy:Plot.Axes>
<oxy:CategoryAxis ItemsSource="{Binding Item.barDisplayData1}" LabelField="DisplayText"/>
<oxy:LinearAxis MinimumPadding="0" AbsoluteMinimum="0"/>
</oxy:Plot.Axes>
<oxy:Plot.Series>
<oxy:ColumnSeries Title="{Binding Item.Title1}" FillColor="Green" IsStacked="True" ItemsSource="{Binding Item.barDisplayData1}" ValueField="Value" />
<oxy:ColumnSeries Title="{Binding Item.Title2}" FillColor="Red" IsStacked="True" ItemsSource="{Binding Item.barDisplayData2}" ValueField="Value"/>
<oxy:ColumnSeries Title="{Binding Item.Title3}" FillColor="Yellow" IsStacked="True" ItemsSource="{Binding Item.barDisplayData3}" ValueField="Value"/>
</oxy:Plot.Series>
</oxy:Plot>