Legend settings (all)
1 2 3 4 5 6 7 8 9 10 11 12 13 | legend_vl(vl, chnl = "color", orient = NULL, offset = NULL,
values = NULL, format = NULL, labelAlign = NULL, labelBaseline = NULL,
labelColor = NULL, labelFont = NULL, labelFontSize = NULL,
short_time_labels = NULL, symbolColor = NULL, symbolShape = NULL,
symbolSize = NULL, symbolStrokeWidth = NULL, title = NULL,
titleColor = NULL, titleFont = NULL, titleFontSize = NULL,
titleFontWeight = NULL, remove = FALSE)
legend_color(vl, ...)
legend_size(vl, ...)
legend_shape(vl, ...)
|
vl |
a Vega-Lite object |
chnl |
a channel, by default vegalite creates legends for color, size, and shape |
orient, offset, values |
see legend docs |
format, labelAlign, labelBaseline, labelColor, labelFont, labelFontSize, short_time_labels |
see legend docs |
symbolColor, symbolShape, symbolSize, symbolStrokeWidth |
see legend docs |
title, titleColor, titleFont, titleFontSize, titleFontWeight |
see legend docs |
remove |
if |
... |
additional arguments to pass to legend_vl |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.