Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 22:51:41 +0000



[Programming Help] - How to move a chart vertically from ACSIL code?

View Count: 430

[2023-03-17 06:19:33]
User921987 - Posts: 236
The same way I can vertically drag the Y-axis (Pan) by the mouse but now I would like to do it from the ACSIL code.
Date Time Of Last Edit: 2023-03-17 06:22:01
[2023-03-18 03:06:43]
Tony - Posts: 522
Not sure if you meant changing the scale of a chart, if so, you just need to
change the value of sc.BaseGraphScaleConstRange

i.e sc.BaseGraphScaleConstRange += 10;
[2023-03-18 06:14:17]
User921987 - Posts: 236
My chart is set to "Interactive Scale Move" and the "Scale Range" is "Constant Range".

So I would like to move the chart vertically. I can do it manually by dragging the Y axis OR with the "hand" tool on top of the chart.

So the question is is it possible to MOVE the chart VERTICALLY up and down from the ACSIL code?
Date Time Of Last Edit: 2023-03-18 06:14:36
[2023-03-26 06:55:39]
User921987 - Posts: 236
Here is an example what I am trying to do from the ACSIL code:

https://youtu.be/opPjJwVHchA
[2023-03-27 15:41:00]
ForgivingComputers.com - Posts: 960
I think you are looking for these:

ACSIL Interface Members - Variables and Arrays: sc.BaseGraphScaleRangeBottom
ACSIL Interface Members - Variables and Arrays: sc.BaseGraphScaleRangeTop
[2023-03-27 15:46:13]
User921987 - Posts: 236
@bradh Thx pal. I'll check those.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account