Skip to contents

Styling for graphical items (bar segments, scatter points, pie slices, etc.). Includes both fill and stroke options.

Usage

ItemStyle(
  color = NULL,
  opacity = NULL,
  border_color = NULL,
  border_width = NULL,
  border_type = NULL,
  border_cap = NULL,
  border_join = NULL,
  border_dash_offset = NULL,
  border_miter_limit = NULL,
  border_radius = NULL,
  decal = NULL,
  shadow_blur = NULL,
  shadow_color = NULL,
  shadow_offset_x = NULL,
  shadow_offset_y = NULL
)

Arguments

color

Optional Character: CSS fill color.

opacity

Optional Numeric [0, 1]: Fill opacity.

border_color

Optional Character: Border color.

border_width

Optional Numeric [0, Inf): Border width in pixels.

border_type

Optional Character {"solid", "dashed", "dotted"}: Border line type.

border_cap

Optional Character {"butt", "round", "square"}: Border line cap.

border_join

Optional Character {"bevel", "round", "miter"}: Border line join.

border_dash_offset

Optional Numeric: Border dash offset.

border_miter_limit

Optional Numeric [0, Inf): Border miter limit.

border_radius

Optional Numeric, Character, or Numeric vector: Corner border radius.

decal

Optional Any: Decal pattern for accessibility.

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 ItemStyleOption in src/util/types.ts (line 1142). ECharts docs: https://echarts.apache.org/en/option.html#series-bar.itemStyle