Major grid line over a plotted graphic

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
justAnUser
Posts: 4
Joined: Thu Jul 13, 2017 11:14 am

Major grid line over a plotted graphic

Post by justAnUser » Thu Jul 13, 2017 11:46 am

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

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Major grid line over a plotted graphic

Post by ArctionKestutis » Thu Jul 13, 2017 12:29 pm

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.

justAnUser
Posts: 4
Joined: Thu Jul 13, 2017 11:14 am

Re: Major grid line over a plotted graphic

Post by justAnUser » Thu Jul 13, 2017 12:40 pm

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!
Attachments
graphic.png
graphic.png (12.93 KiB) Viewed 11239 times

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Major grid line over a plotted graphic

Post by ArctionKestutis » Thu Jul 13, 2017 1:29 pm

You can set _chart.ViewXY.AxisLayout.GridVisibilityOrder = FrontOfSeries.

justAnUser
Posts: 4
Joined: Thu Jul 13, 2017 11:14 am

Re: Major grid line over a plotted graphic

Post by justAnUser » Thu Jul 13, 2017 1:50 pm

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
Attachments
Screenshot_1.png
Screenshot_1.png (20.6 KiB) Viewed 11239 times

justAnUser
Posts: 4
Joined: Thu Jul 13, 2017 11:14 am

Re: Major grid line over a plotted graphic

Post by justAnUser » Fri Jul 14, 2017 12:24 pm

Any help here? Thank you.

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Major grid line over a plotted graphic

Post by ArctionKestutis » Fri Jul 14, 2017 1:27 pm

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.

Post Reply