Page 1 of 1

Chart: Include Constant Lines values in Y-Axis Auto Range?

Posted: Mon Oct 30, 2017 6:18 pm
by Chris42
Hi,

I've noticed that when calculating the Y-Axis range on a line chart any Constant Lines are not included. This may mean that the Constant Lines are not displayed (depending on the data to be displayed).

Q: Is it possible to ensure that any Constant Lines are always displayed?

E.g. the left-hand chart auto-ranges the data but the Constant Line is off the top; value = 55. The chart on the right is nearer to how I'd like to see it.

I have managed to almost do it in event code (see the right-hand chart) but this then doesn't include the built-in clever auto-ranging logic normally used (e.g. to show all the marker values in the right-hand chart).

Thanks,
Chris

Re: Chart: Include Constant Lines values in Y-Axis Auto Rang

Posted: Wed Nov 01, 2017 8:32 am
by Alex K.
Hello,

Yes, it is correct behavior.
You can set the Range for Y-Axis that Constant Line was included in this range.

Thank you.

Re: Chart: Include Constant Lines values in Y-Axis Auto Rang

Posted: Wed Nov 01, 2017 9:30 am
by Chris42
Hi Alex,

Thanks for that. Can I just confirm: I need to manually set the range (e.g. in code) to ensure the Constant Lines are visible?

Q: in the Process Chart event, Is there a way of obtaining in code the auto-range values that would be used so I can just adjust them if required?

Chris

Re: Chart: Include Constant Lines values in Y-Axis Auto Rang

Posted: Thu Nov 02, 2017 7:19 pm
by Alex K.
Hello,

Unfortunately, it is no way to get auto-range values.
You can use your method.

Thank you.

Re: Chart: Include Constant Lines values in Y-Axis Auto Rang

Posted: Thu Nov 02, 2017 7:27 pm
by Chris42
Hi Alex,

Great, thanks, I'll use my method.

Chris

Re: Chart: Include Constant Lines values in Y-Axis Auto Rang

Posted: Thu Nov 02, 2017 9:06 pm
by Alex K.
Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.