vl.hconcat(…hconcat)
Horizontally concatenate charts.
hconcat
Method Overviewhconcat
API Reference# hconcat.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
# hconcat.background(value)
CSS color property to use as the background of the entire view.
Default value: "white"
# hconcat.bounds(value)
The bounds calculation method to use for determining the extent of a sub-plot. One of full
(the default) or flush
.
full
, the entire calculated bounds (including axes, title, and legend) will be used.flush
, only the specified width and height values for the sub-view will be used. The flush
setting can be useful when attempting to place sub-plots without axes or legends into a uniform grid structure.Default value: "full"
# hconcat.center(value)
Boolean flag indicating if subviews should be centered relative to their respective rows or columns.
Default value: false
# hconcat.config(value)
Vega-Lite configuration object. This property can only be defined at the top-level of a specification.
# hconcat.data(data)
The input data specification.
The behavior of this method depends on the argument type:
Array
, sets the data.values
property.Iterable
, sets the data.values
property.String
, sets the data.url
property.data
property.# hconcat.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.
# hconcat.description(value)
Description of this mark for commenting purpose.
# hconcat.facet(…values)
Facet a chart into sub-plots by partitioning data values.
# hconcat.hconcat(…value)
A list of views to be concatenated and put into a row.
# hconcat.name(value)
Name of the visualization for later reference.
# hconcat.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
# hconcat.params(…params)
An array of parameters that may be simple variables or more complex selections that map user input to data queries.
# hconcat.render(…values)
Compile and render the Vega-Lite visualization and return the DOM element containing the Vega View.
# hconcat.repeat(…values)
Repeat a chart template to generate multiple plots.
# hconcat.resolve(value)
Scale, axis, and legend resolutions for view composition specifications.
# hconcat.spacing(value)
The spacing in pixels between sub-views of the concat operator.
Default value: 10
# hconcat.title(value)
Title for the plot.
# hconcat.toSpec(…values)
Return the Vega-Lite specification as a JavaScript object.
# hconcat.toString(…values)
Return the Vega-Lite specification as a JSON string.
# hconcat.toView(…values)
Compile the Vega-Lite specification and return the resulting Vega View object.
# hconcat.transform(…transform)
The data transformations to apply.
# hconcat.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.