EMarginUnits

type EMarginUnits = (muPercent, muPixels);

Type Library
TeeChartx

Description
Default value: muPercent

Determines the units of the four margin properties:

MarginLeft

MarginTop

MarginRight

MarginBottom

When MarginUnits is muPercent, chart margins are calculated as percentage of total chart width and height.

Percent margins are useful to obtain the same margin proportions, no matter the chart size.

When MarginUnits is muPixels, chart margins are just the pixel quantity.

Example:

TChart1.Panel.MarginUnits = muPixels

TChart1.Panel.MarginLeft = 10 // 10 pixels

TChart1.Panel.MarginRight = 10 // 10 pixels