Skip to contents

Stroke styling for lines in series, axes, and components.

Usage

LineStyle(
  color = NULL,
  width = NULL,
  opacity = NULL,
  type = NULL,
  cap = NULL,
  join = NULL,
  dash_offset = NULL,
  miter_limit = NULL,
  shadow_blur = NULL,
  shadow_color = NULL,
  shadow_offset_x = NULL,
  shadow_offset_y = NULL
)

Arguments

color

Optional Character: CSS line color.

width

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

opacity

Optional Numeric [0, 1]: Line opacity.

type

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

cap

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

join

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

dash_offset

Optional Numeric: Dash offset for dashed lines.

miter_limit

Optional Numeric [0, Inf): Miter limit for miter joins.

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