Edit this page

plotArea Object

The plot area configuration options. This is the area containing the plotted series.

plotArea.background String(default: "white")

The background color of the plot area.

plotArea.opacity Number(default: 1)

The background opacity of the plot area.

plotArea.border Object

The border of the plot area.

plotArea.border.color String(default: "black")

The color of the border.

plotArea.border.dashType String(default: "solid")

The dash type of the border.

"solid"

Specifies a solid line.

"dot"

Specifies a line consisting of dots.

"dash"

Specifies a line consisting of dashes.

"longDash"

Specifies a line consisting of a repeating pattern of long-dash.

"dashDot"

Specifies a line consisting of a repeating pattern of dash-dot.

"longDashDot"

Specifies a line consisting of a repeating pattern of long-dash-dot.

"longDashDotDot"

Specifies a line consisting of a repeating pattern of long-dash-dot-dot.

plotArea.border.width Number(default: 0)

The width of the border.

plotArea.margin Number |Object(default: 5)

The margin of the plot area.

Example

// sets the top, right, bottom and left margin to 3px.
margin: 3

// sets the top and left margin to 1px
// margin right and bottom are with 5px (by default)
margin: { top: 1, left: 1 }
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy