Skip to contents

Configuration for the cartesian coordinate grid container.

Usage

Grid(
  show = NULL,
  left = NULL,
  right = NULL,
  top = NULL,
  bottom = NULL,
  width = NULL,
  height = NULL,
  contain_label = NULL,
  background_color = NULL,
  border_width = NULL,
  border_color = NULL,
  shadow_blur = NULL,
  shadow_color = NULL,
  shadow_offset_x = NULL,
  shadow_offset_y = NULL
)

Arguments

show

Optional Logical: Whether to show the grid border.

left

Optional Numeric or Character: Distance from the left side of the container.

right

Optional Numeric or Character: Distance from the right side of the container.

top

Optional Numeric or Character: Distance from the top of the container.

bottom

Optional Numeric or Character: Distance from the bottom of the container.

width

Optional Numeric or Character: Grid width.

height

Optional Numeric or Character: Grid height.

contain_label

Optional Logical: Whether the grid region contains axis labels.

background_color

Optional Character: Grid background color.

border_width

Optional Numeric [0, Inf): Grid border width.

border_color

Optional Character: Grid border color.

shadow_blur

Optional Numeric [0, Inf): Shadow blur radius.

shadow_color

Optional Character: Shadow color.

shadow_offset_x

Optional Numeric: Shadow horizontal offset.

shadow_offset_y

Optional Numeric: Shadow vertical offset.

Details

Corresponds to GridOption in src/coord/cartesian/GridModel.ts (line 37). ECharts docs: https://echarts.apache.org/en/option.html#grid