0

OxyPlot WPF - Get slected column

Darko Bondokic 9 aastat tagasi 0

I am trying to get selected (clicked) column in OxyPlot WPF. Is there any way to do that? My WPF code so far:




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