The specification
The specification
Sets different alignments for rows and columns..
The alignment to apply to grid rows and columns.
The alignment to apply to grid rows and columns. The supported string values are "all" (the default), "each", and "none".
- For "none", a flow layout will be used, in which adjacent subviews are simply placed one after the other. - For "each", subviews will be aligned into a clean grid structure, but each row or column may be of variable size. - For "all", subviews will be aligned and each row or column will be sized identically based on the maximum observed size. String values for this property will be applied to both grid rows and columns.
Sets the overall size of the visualization.
Sets the overall size of the visualization. The total size of a Vega-Lite visualization may be determined by multiple factors: specified width, height, and padding values, as well as content such as axes, legends, and titles.
A boolean flag indicating if autosize layout should be re-calculated on every view update.
Determines how size calculation should be performed, one of "content" or "padding". The default setting ("content") interprets the width and height settings as the data rectangle (plotting) dimensions, to which padding is then added. In contrast, the "padding" setting includes the padding within the view size calculations, such that the width and height settings indicate the total intended size of the view.
CSS color property to use as the background of the entire view.
CSS color property to use as the background of the entire view.
The bounds calculation method to use for determining the extent of a sub-plot.
The bounds calculation method to use for determining the extent of a sub-plot. One of full (the default) or flush.
- If set to full, the entire calculated bounds (including axes, title, and legend) will be used. - If set to 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.
Sets different spacing values for rows and columns..
Boolean flag indicating if subviews should be centered relative to their respective rows or columns.
Sets Vega-Lite configuration object that lists configuration properties of a visualization for creating a consistent theme.
Sets Vega-Lite configuration object that lists configuration properties of a visualization for creating a consistent theme. This property can only be defined at the top-level of a specification.
Sets the url of the data source.
Sets the url of the data source.
An URL from which to load the data set.
Type of input data: "json", "csv", "tsv", "dsv". Default value: The default format type is determined by the extension of the file URL. If no extension is detected, "json" will be used by default.
Sets a data frame describing the data source.
Sets a data frame describing the data source.
Sets an array of objects describing the data source.
Sets an array of objects describing the data source.
Sets a JSON array describing the data source.
Sets a JSON array describing the data source. Set to null to ignore the parent’s data source. If no data is set, it is derived from the parent.
Sets the description of this mark for commenting purpose.
Sets the description of this mark for commenting purpose.
Returns the HTML of plot specification with Vega Embed.
Returns the HTML of plot specification with Vega Embed.
Returns the HTML wrapped in an iframe to render in notebooks.
Returns the HTML wrapped in an iframe to render in notebooks.
the iframe HTML id.
Sets the name of the visualization for later reference.
Sets the name of the visualization for later reference.
Specifies padding for each side.
Specifies padding for each side. The visualization padding, in pixels, is from the edge of the visualization canvas to the data rectangle.
Specifies padding for all sides.
Specifies padding for all sides. The visualization padding, in pixels, is from the edge of the visualization canvas to the data rectangle.
Axis resolutions.
Axis resolutions. For axes, resolutions can be defined for x and y (positional channels).
Legend resolutions.
Legend resolutions. For legends, resolutions can be defined for color, opacity, shape, and size (non-positional channels).
Scale resolutions.
Scale resolutions. For scales, resolution can be specified for every channel.
Sets different spacing values for rows and columns..
The spacing in pixels between sub-views of the composition operator.
Sets a descriptive title to a chart.
Sets a descriptive title to a chart.
An array of data transformations such as filter and new field calculation.
An array of data transformations such as filter and new field calculation. Data transformations in Vega-Lite are described via either view-level transforms (the transform property) or field transforms inside encoding (bin, timeUnit, aggregate, sort, and stack).
When both types of transforms are specified, the view-level transforms are executed first based on the order in the array. Then the inline transforms are executed in this order: bin, timeUnit, aggregate, sort, and stack.
An array of data transformations such as filter and new field calculation.
An array of data transformations such as filter and new field calculation. Data transformations in Vega-Lite are described via either view-level transforms (the transform property) or field transforms inside encoding (bin, timeUnit, aggregate, sort, and stack).
When both types of transforms are specified, the view-level transforms are executed first based on the order in the array. Then the inline transforms are executed in this order: bin, timeUnit, aggregate, sort, and stack.
Optional metadata that will be passed to Vega.
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.
all view layout composition (facet, concat, and repeat) can have the following layout properties: align, bounds, center, spacing.