I have used an AreaSeries to show a colored area on a graph.
The colored area is rendered on top of the grid lines. Is there any way to bring the grid lines to the front?
This plot is defined in XAML in a WPF project. This is the configuration:
<oxy:Plot Grid.Row="1"
Margin="0"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
PlotType="XY"
TitleFontSize="11"
IsLegendVisible="False"
Title="{Binding Channel.Name}"
InvalidateFlag="{Binding Refresh}">
<oxy:Plot.Axes>
<oxy:LinearAxis Key="yAxis"
IsZoomEnabled="False"
IsPanEnabled="False"
Position="Left"
MajorGridlineStyle="Dot"
MajorGridlineColor="LightGray"
Title="Speed [m/s]"
Maximum="{Binding SpeedXDistance_MaxY}"/>
<oxy:LinearAxis Key="xAxis"
IsZoomEnabled="False"
IsPanEnabled="False"
Position="Bottom"
MajorGridlineStyle="Dot"
MajorGridlineColor="LightGray"
Title="Distance [m]"
Maximum="{Binding SpeedXDistance_MaxX}"/>
</oxy:Plot.Axes>
<oxy:Plot.Series>
<oxy:LineSeries ItemsSource="{Binding SpeedXDistancePoints}"
DataFieldX="X"
DataFieldY="Y"
StrokeThickness="1"
MarkerSize="0"
LineStyle="Solid"
Color="Blue"
MarkerType="None"/>
<oxy:AreaSeries ItemsSource="{Binding SpeedXDistanceUpperLimit}"
Fill="AliceBlue"
DataFieldX="X"
DataFieldY="Y"
StrokeThickness="1"
MarkerSize="0"
LineStyle="Solid"
Color="DarkGray"
MarkerType="None"/>
</oxy:Plot.Series>
</oxy:Plot>
Any help would be appreciated.