XAxes MajorGrid Line Center

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
ChanY
Posts: 4
Joined: Thu May 10, 2018 2:42 am

XAxes MajorGrid Line Center

Post by ChanY » Thu May 10, 2018 7:24 am

Hello,


I want the vertical axis to be centered on the MajorGrid shown in the chart. Do you know any of these features?

Image

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

Re: XAxes MajorGrid Line Center

Post by ArctionKestutis » Fri May 11, 2018 9:26 am

Hi,
You could place Y Axis as percents of the graph width. For that you need to disable YAxisAutoPlacement and set Position. That is, 0 sets the axis in left edge, 50 in the middle and 100 in right edge.

Code: Select all

ViewXY.AxisLayout.YAxisAutoPlacement = YAxisAutoPlacement.Off;
axisY.Position = 50;
Hope this helps.
All the best.

ChanY
Posts: 4
Joined: Thu May 10, 2018 2:42 am

Re: XAxes MajorGrid Line Center

Post by ChanY » Mon May 14, 2018 1:58 am

Thank you for your reply.
But what I want is to have the position of the MajorGrid unconditionally centered, not the position of the Axis. If you know anything, please reply.

ChanY
Posts: 4
Joined: Thu May 10, 2018 2:42 am

Re: XAxes MajorGrid Line Center

Post by ChanY » Mon May 14, 2018 4:41 am

ArctionKestutis wrote:Hi,
You could place Y Axis as percents of the graph width. For that you need to disable YAxisAutoPlacement and set Position. That is, 0 sets the axis in left edge, 50 in the middle and 100 in right edge.

Code: Select all

ViewXY.AxisLayout.YAxisAutoPlacement = YAxisAutoPlacement.Off;
axisY.Position = 50;
Hope this helps.
All the best.

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

Re: XAxes MajorGrid Line Center

Post by ArctionKestutis » Mon May 14, 2018 6:25 am

Hello,
I don't see your image and description was not enough to understand your wish. Could you try again to add image and add more description. Perhaps you interested in CustomTicks, check those key words in User's Manual and Demo App.
P.S. You can send your question directly to Support email account as well.
All the best.

ChanY
Posts: 4
Joined: Thu May 10, 2018 2:42 am

Re: XAxes MajorGrid Line Center

Post by ChanY » Tue May 15, 2018 6:35 am

Thanks for the answer.
I'm sorry I do not have enough explanation. What I want to do is refresh the data on the chart at different frequencies in real time.
However, I would like to have a vertical gray line (MajorGird) generated based on the median value on a screen that is always being refreshed, as shown above.

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

Re: XAxes MajorGrid Line Center

Post by ArctionKestutis » Tue May 15, 2018 7:11 am

Hi Chan,
As I wrote, I don't see the image. Therefore, this make interpretation of your question very difficult. Could you try to upload the file again, or send to Arction's support email account.
All the best.

Post Reply