Florian Koch
Florian Koch

Reputation: 1502

Delphi TChart Bar Offsets

By default, the biggest value in the chart will have a full bar from bottom to top.

enter image description here

Is there a way to get some space between the top of the diagram and the maximum value? I wanted to have a standard zoom of 90% or something like this, but zooming out any further is not possible.

Upvotes: 0

Views: 1120

Answers (2)

SilverWarior
SilverWarior

Reputation: 8331

As @Narcis Calvet sad one option is to use MaximumOffset but another option is to use:

Chart1.Axes.Left.Increment := 20;

I prefer to use Increments instead of MaximumOffset becouse usually it reults in nicer numerical scale on the side.

EDIT: To learn more about controlling the TChart Axis controll check this site: http://wiki.teechart.net/index.php?title=VCLTutorial4

Upvotes: 1

Narcís Calvet
Narcís Calvet

Reputation: 7452

Yes, this is possible using axis MaximumOffset property. For example:

  Chart1.Axes.Left.MaximumOffset:=25;

Upvotes: 3

Related Questions