Hello
I'm using the RectangleBarSeries as a trick to display columns on a DateTimeAxis. It works fairly well but it seems these series are drawn on top of every other series. So if you mix LineSeries and RectangleBarSeries, the rectangles appear to be on top and prevent any tracker event on the LineSeries.
As it works fine with AreaSeries instead of RectangleBarSeries, I guess this shouldn't be too big of a problem. I don't know if there's a way to specify a layer for series, like there is for annotations...
Comments: Can you provide code that shows the error? I tried the following code and cannot reproduce: ```cs [Example("#10236: RectangleBarSeries rendered on top layer")] public static PlotModel RectangleBarSeriesRenderedOnTopLayer() { var plotModel1 = new PlotModel { Title = "Issue 10236", }; var lineSeries1 = new LineSeries(); lineSeries1.Points.Add(new DataPoint(0, 1)); lineSeries1.Points.Add(new DataPoint(1, 0)); plotModel1.Series.Add(lineSeries1); var rectangleBarSeries1 = new RectangleBarSeries(); rectangleBarSeries1.Items.Add(new RectangleBarItem(0.25, 0.25, 0.75, 0.75)); plotModel1.Series.Add(rectangleBarSeries1); var lineSeries2 = new LineSeries(); lineSeries2.Points.Add(new DataPoint(0, 0)); lineSeries2.Points.Add(new DataPoint(1, 1)); plotModel1.Series.Add(lineSeries2); return plotModel1; } ``` The rectangleBarSeries1 is shown above lineSeries1 and below lineSeries2, as expected.
I'm using the RectangleBarSeries as a trick to display columns on a DateTimeAxis. It works fairly well but it seems these series are drawn on top of every other series. So if you mix LineSeries and RectangleBarSeries, the rectangles appear to be on top and prevent any tracker event on the LineSeries.
As it works fine with AreaSeries instead of RectangleBarSeries, I guess this shouldn't be too big of a problem. I don't know if there's a way to specify a layer for series, like there is for annotations...
Comments: Can you provide code that shows the error? I tried the following code and cannot reproduce: ```cs [Example("#10236: RectangleBarSeries rendered on top layer")] public static PlotModel RectangleBarSeriesRenderedOnTopLayer() { var plotModel1 = new PlotModel { Title = "Issue 10236", }; var lineSeries1 = new LineSeries(); lineSeries1.Points.Add(new DataPoint(0, 1)); lineSeries1.Points.Add(new DataPoint(1, 0)); plotModel1.Series.Add(lineSeries1); var rectangleBarSeries1 = new RectangleBarSeries(); rectangleBarSeries1.Items.Add(new RectangleBarItem(0.25, 0.25, 0.75, 0.75)); plotModel1.Series.Add(rectangleBarSeries1); var lineSeries2 = new LineSeries(); lineSeries2.Points.Add(new DataPoint(0, 0)); lineSeries2.Points.Add(new DataPoint(1, 1)); plotModel1.Series.Add(lineSeries2); return plotModel1; } ``` The rectangleBarSeries1 is shown above lineSeries1 and below lineSeries2, as expected.