Skip to contents

`xl_chart_marker()` draws a symbol at each point of a series. Line, scatter and radar charts are where they show; on other types Excel ignores them.

`type = "automatic"` asks Excel for the default marker of that series, and is the one type that cannot be given a size or a format — libxlsxwriter documents that, and Excel drops them, so both are refused here.

Usage

xl_chart_marker(type = NULL, size = NA, format = NULL)

Arguments

type

The symbol: `"automatic"`, `"none"`, `"square"`, `"diamond"`, `"triangle"`, `"x"`, `"star"`, `"short_dash"`, `"long_dash"`, `"circle"` or `"plus"`.

size

The symbol's size in points, 2 to 72.

format

An [xl_format()] styling the symbol: [xl_border()] for its outline, [xl_fill()] for its fill or pattern.

Value

An `xl_chart_marker` object.

Examples

xl_chart_marker(type = "circle", size = 8)
#> <xl_chart_marker>
#>   set: type, size 
xl_chart_marker(type = "none")
#> <xl_chart_marker>
#>   set: type