chartArea Object

The chart area configuration options. This is the entire visible area of the chart.

chartArea.background String(default: "white")

The background color of the chart area.

chartArea.opacity Number(default: 1)

The background opacity of the chart area.

chartArea.border Object

The border of the chart area.

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

The color of the border.

chartArea.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.

chartArea.border.width Number(default: 0)

The width of the border.

chartArea.height Number(default: 400)

The height of the chart area.

chartArea.margin Number|Object(default: 2)

The margin of the chart 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 }

chartArea.width Number(default: 600)

The width of the chart area.

In this article