Skip to contents

Fill styling for areas (polygons, area under curves, etc.).

Usage

AreaStyle(
  color = NULL,
  opacity = NULL,
  origin = 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.

origin

Optional Character {"auto", "start", "end"} or Numeric: Area origin.

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.

Value

AreaStyle object.

Details

Corresponds to AreaStyleOption in src/util/types.ts (line 1169). ECharts docs: https://echarts.apache.org/en/option.html#series-line.areaStyle

Examples

AreaStyle(color = "#16a085", opacity = 0.3)
#> <rtemis.draw::AreaStyle>
#>  @ color          : chr "#16a085"
#>  @ opacity        : num 0.3
#>  @ origin         : NULL
#>  @ shadow_blur    : NULL
#>  @ shadow_color   : NULL
#>  @ shadow_offset_x: NULL
#>  @ shadow_offset_y: NULL