vega-lite-api

vl.concat(…concat)

Concatenate charts.

concat Method Overview

concat API Reference

# concat.align(value)

The alignment to apply to grid rows and columns. The supported string values are "all", "each", and "none".

Alternatively, an object value of the form {"row": string, "column": string} can be used to supply different alignments for rows and columns.

Default value: "all".

# concat.autosize(value)

How the visualization size should be determined. If a string, should be one of "pad", "fit" or "none". Object values can additionally specify parameters for content sizing and automatic resizing.

Default value: pad

# concat.background(value)

CSS color property to use as the background of the entire view.

Default value: "white"

# concat.bounds(value)

The bounds calculation method to use for determining the extent of a sub-plot. One of full (the default) or flush.

Default value: "full"

# concat.center(value)

Boolean flag indicating if subviews should be centered relative to their respective rows or columns.

An object value of the form {"row": boolean, "column": boolean} can be used to supply different centering values for rows and columns.

Default value: false

# concat.columns(value)

The number of columns to include in the view composition layout.

Default value: undefined – An infinite number of columns (a single row) will be assumed. This is equivalent to hconcat (for concat) and to using the column channel (for facet and repeat).

Note:

1) This property is only for:

2) Setting the columns to 1 is equivalent to vconcat (for concat) and to using the row channel (for facet and repeat).

# concat.concat(…value)

A list of views to be concatenated.

# concat.config(value)

Vega-Lite configuration object. This property can only be defined at the top-level of a specification.

# concat.data(data)

The input data specification.

The behavior of this method depends on the argument type:

# concat.datasets(value)

A global data store for named datasets. This is a mapping from names to inline datasets. This can be an array of objects or primitive values or a string. Arrays of primitive values are ingested as objects with a data property.

# concat.description(value)

Description of this mark for commenting purpose.

# concat.facet(…values)

Facet a chart into sub-plots by partitioning data values.

# concat.name(value)

Name of the visualization for later reference.

# concat.padding(value)

The default visualization padding, in pixels, from the edge of the visualization canvas to the data rectangle. If a number, specifies padding for all sides. If an object, the value should have the format {"left": 5, "top": 5, "right": 5, "bottom": 5} to specify padding for each side of the visualization.

Default value: 5

# concat.params(…params)

An array of parameters that may be simple variables or more complex selections that map user input to data queries.

# concat.render(…values)

Compile and render the Vega-Lite visualization and return the DOM element containing the Vega View.

# concat.repeat(…values)

Repeat a chart template to generate multiple plots.

# concat.resolve(value)

Scale, axis, and legend resolutions for view composition specifications.

# concat.spacing(value)

The spacing in pixels between sub-views of the composition operator. An object of the form {"row": number, "column": number} can be used to set different spacing values for rows and columns.

Default value: Depends on "spacing" property of the view composition configuration (20 by default)

# concat.title(value)

Title for the plot.

# concat.toSpec(…values)

Return the Vega-Lite specification as a JavaScript object.

# concat.toString(…values)

Return the Vega-Lite specification as a JSON string.

# concat.toView(…values)

Compile the Vega-Lite specification and return the resulting Vega View object.

# concat.transform(…transform)

The data transformations to apply.

# concat.usermeta(value)

Optional metadata that will be passed to Vega. This object is completely ignored by Vega and Vega-Lite and can be used for custom metadata.