How to avoid chart overlap with title?

Hi,

I tried searching for a solution but couldn't find any and I am happy to be proven wrong.

Chart on the top right corner is overlapping with the title of the chart. Title is taking precedence over chart and chart is getting obstructed by the title as show in the below image. Please advise how to permanently fix this.

Appreciate your help.

  1. check in parameter window > Axes & Grid > Axes, if "Scaling" is Automatic.

  2. if scaling is Automatic, move mouse on price axis and double-click. Mouse cursor will change to up-down arrow
    image
    This resets the scale incase you accidentally moved the price axis.

  3. Your chart window is too small, which indicates as if you have used tiles layout, something like 16 or 20 etc charts. Looks cramped.

  4. Custom Scaling

If you want custom scaling, you can do it manually from the parameters window.
Select scaling: Custom, set your min Y and Max Y

OR

do it programmatically using AFL Function Reference - SETCHARTOPTIONS

ymin, ymax - (new in 5.07) these parameters specify Y-axis minimum and maximum values for custom scaling

For Example:
Ymax will be get HighestVisibleValue( H ) and increase by a factor, * 1.005 etc and
Ymin = LowestVisibleValue( L ) * 0.995

1 Like

@vdtedla1 one easy way is to add to your formula this line:

GraphXSpace = 10;  // 10%

From the documentation:
GraphXSpace defines how much extra space should be added above and below graph line (in percent).

For example:

GraphXSpace = 5;

adds 5% extra space above and below the graph line. When GraphXSpace is not defined in the formula then default 2% is used.

1 Like

Easiest indeed !
Always some confusion with me as many Graph*** variables were deprecated (retained for backward compatibility ) so brain tries to avoid them.

Wrong.
The easiest way is using mouse on y- axis

Old (repeated) topic

Well, it was in the context of programmatic change.
GraphXSpace is easiest in terms of custom scaling.

Otherwise, the mouse thing even i suggested above because I sometimes accidentally shift the price scale.

Who cares. It is still old topic.

Thanks @beppe. This solution worked like a charm.

@fxshrat - I am looking for more like a permanent solution rather than changing it everytime. In the thread you have included, I saw the same solution as the solution provided by @beppe.

Thanks @nsm51 for your solution but Beppe's solution is very simple.

Thanks everyone for your help.

2 Likes