Skip to contents

When faceting, layering, repeating, or concatenating a chart, one can choose whether axes, legends, or scales are shared or independent using the resolve specification

Usage

vl_resolve_axis_x(spec, how = c("independent", "shared"))

vl_resolve_axis_y(spec, how = c("independent", "shared"))

vl_resolve_legend_angle(spec, how = c("independent", "shared"))

vl_resolve_legend_color(spec, how = c("independent", "shared"))

vl_resolve_legend_fill(spec, how = c("independent", "shared"))

vl_resolve_legend_fillOpacity(spec, how = c("independent", "shared"))

vl_resolve_legend_opacity(spec, how = c("independent", "shared"))

vl_resolve_legend_radius(spec, how = c("independent", "shared"))

vl_resolve_legend_shape(spec, how = c("independent", "shared"))

vl_resolve_legend_size(spec, how = c("independent", "shared"))

vl_resolve_legend_stroke(spec, how = c("independent", "shared"))

vl_resolve_legend_strokeDash(spec, how = c("independent", "shared"))

vl_resolve_legend_strokeOpacity(spec, how = c("independent", "shared"))

vl_resolve_legend_strokeWidth(spec, how = c("independent", "shared"))

vl_resolve_legend_theta(spec, how = c("independent", "shared"))

vl_resolve_legend_x(spec, how = c("independent", "shared"))

vl_resolve_legend_xOffset(spec, how = c("independent", "shared"))

vl_resolve_legend_y(spec, how = c("independent", "shared"))

vl_resolve_legend_yOffset(spec, how = c("independent", "shared"))

vl_resolve_scale_angle(spec, how = c("independent", "shared"))

vl_resolve_scale_color(spec, how = c("independent", "shared"))

vl_resolve_scale_fill(spec, how = c("independent", "shared"))

vl_resolve_scale_fillOpacity(spec, how = c("independent", "shared"))

vl_resolve_scale_opacity(spec, how = c("independent", "shared"))

vl_resolve_scale_radius(spec, how = c("independent", "shared"))

vl_resolve_scale_shape(spec, how = c("independent", "shared"))

vl_resolve_scale_size(spec, how = c("independent", "shared"))

vl_resolve_scale_stroke(spec, how = c("independent", "shared"))

vl_resolve_scale_strokeDash(spec, how = c("independent", "shared"))

vl_resolve_scale_strokeOpacity(spec, how = c("independent", "shared"))

vl_resolve_scale_strokeWidth(spec, how = c("independent", "shared"))

vl_resolve_scale_theta(spec, how = c("independent", "shared"))

vl_resolve_scale_x(spec, how = c("independent", "shared"))

vl_resolve_scale_xOffset(spec, how = c("independent", "shared"))

vl_resolve_scale_y(spec, how = c("independent", "shared"))

vl_resolve_scale_yOffset(spec, how = c("independent", "shared"))

Arguments

spec

An input vega-lite spec

how

One of 'independent', 'shared'

Value

A modified Vega-Lite Spec