Page 1 of 1

Major grid line over a plotted graphic

Posted: Thu Jul 13, 2017 11:46 am
by justAnUser
Hello,

Is there any way to not hide Major grid lines when I plot something? I mean that grid lines should be over a plotted graphic.

Thanks

Re: Major grid line over a plotted graphic

Posted: Thu Jul 13, 2017 12:29 pm
by ArctionKestutis
Hello,

By default you should have major grid visible. If not, check _chart.ViewXY.Axis.MajorGrid.Visible property.
If you don't see ticks either, most likely you set Axis.CustomTicksEnabled = true, but without creating CustomTicks collection.

All the best.

Re: Major grid line over a plotted graphic

Posted: Thu Jul 13, 2017 12:40 pm
by justAnUser
Major ticks are visible but if I add, for example, a red area in the graphic then it overrides grid major lines and they will not be visible anymore but I would like to display them above the red area. The graphic attached. How can I do that?

Thank you!

Re: Major grid line over a plotted graphic

Posted: Thu Jul 13, 2017 1:29 pm
by ArctionKestutis
You can set _chart.ViewXY.AxisLayout.GridVisibilityOrder = FrontOfSeries.

Re: Major grid line over a plotted graphic

Posted: Thu Jul 13, 2017 1:50 pm
by justAnUser
Thank you! It works.

Another one thing here - is there a way to show major grid line only for red region but not for whole chart? I just don't want to override black graphic by grid lines if it is possible.
Thanks

Re: Major grid line over a plotted graphic

Posted: Fri Jul 14, 2017 12:24 pm
by justAnUser
Any help here? Thank you.

Re: Major grid line over a plotted graphic

Posted: Fri Jul 14, 2017 1:27 pm
by ArctionKestutis
Hello,

Sorry if sometime we can not provide prompt response. We need to prioritize questions send to our Support email account from users with exciting subscription.

There is no way to make grid several colors or with different rendering order. However, there are several workarounds. For example, you can create LineCollection (see our Demo App corresponding example) with with same LineStyle as grid and draw collection with disabled Behind property.

All the best.