config_text: Text config

Description Usage Arguments References

View source: R/config.r

Description

Text config

Usage

1
2
3
config_text(vl, angle = NULL, align = NULL, baseline = NULL, dx = NULL,
  dy = NULL, radius = NULL, theta = NULL, format = NULL,
  short_time_labels = NULL, opacity = NULL)

Arguments

vl

a Vega-Lite object

angle

rotation angle of the text, in degrees.

align

horizontal alignment of the text. One of left, right, center.

baseline

vertical alignment of the text. One of top, middle, bottom.

dx, dy

horizontal/vertical in pixels, between the text label and its anchor point. The offset is applied after rotation by the angle property.

radius

polar coordinate radial offset, in pixels, of the text label from the origin determined by the x and y properties.

theta

polar coordinate angle, in radians, of the text label from the origin determined by the x and y properties. Values for theta follow the same convention of arc mark startAngle and endAngle properties: angles are measured in radians, with 0 indicating “north”.

format

ormatting pattern for text value. If not defined, this will be determined automatically

short_time_labels

whether month names and weekday names should be abbreviated.

opacity

0-1

References

Vega-Lite Mark spec


vegalite documentation built on May 30, 2017, 1:57 a.m.