ChartDirector 6.0 (Ruby Edition)

FinanceChart.setMargins


Usage

setMargins(leftMargin, topMargin, rightMargin, bottomMargin)

Description

Sets the margins around the plot area. The default is 40 pixels for the left and right margins, and 30 pixels for the top margin and 35 pixels for the bottom margin.

Arguments

ArgumentDefaultDescription
leftMargin(Mandatory)The distance from the left side of the plot area to the left side of the chart.
topMargin(Mandatory)The distance from the top of the plot area to the top of the chart.
rightMargin(Mandatory)The distance from the right side of the plot area to the right side of the chart.
bottomMargin(Mandatory)The distance from the bottom of the plot area to the bottom of the chart.

Return Value

None