Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

Commented Unassigned: RectangleBarSeries rendered on top layer [10236]

$
0
0
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: I tweaked my code a bit, making sure I add the RectangleBarSeries first so they are "under" the other series. And I think they are correctly rendered. But the tracker (that I've set to appear on mouseover) seems confused about the series to show. It is true it's over two different series. As I type this, I think I have the idea why it always show the RectangleBarSeries. It always "enters" the RectangleBarSeries first, and doesn't leave it before going over the LineSeries. That might explain why it always choose to show the series "behind". I might be stretching things a bit with what I'm trying to do ;) I'll test it with the default tracker behaviour (the click) to see if the problem remains. Do you think I should post in the discussions the way I "trick" to display columns series on a LinearAxis? I've also managed to do bubble series. Your library is really something well done.

Viewing all articles
Browse latest Browse all 2061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>