Returns a field definition.
Returns a field definition. To encode a particular field in the data set with an encoding channel, the channel’s field definition must describe the field name and its data type.
A string defining the name of the field from which to pull a data value or an object defining iterated values from the repeat operator. field is not required if aggregate is count.
A flag for binning a quantitative field.
Time unit (e.g., year, yearmonth, month, hours) for a temporal field, or a temporal field that gets casted as ordinal.
Aggregation function for the field (e.g., "mean", "sum", "median", "min", "max", "count").
A title for the field. If null, the title will be removed. The default value is derived from the field’s name and transformation function (aggregate, bin and timeUnit).
Returns a mark property field Definition.
Returns a mark property field Definition. x and y position channels determine the position of the marks, or width/height of horizontal/vertical "area" and "bar". In addition, x2 and y2 can specify the span of ranged area, bar, rect, and rule.
A string defining the name of the field from which to pull a data value or an object defining iterated values from the repeat operator. field is not required if aggregate is count
A flag for binning a quantitative field.
Time unit (e.g., year, yearmonth, month, hours) for a temporal field, or a temporal field that gets casted as ordinal.
Aggregation function for the field (e.g., "mean", "sum", "median", "min", "max", "count").
An object defining properties of the channel’s scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. If null, the scale will be disabled and the data value will be directly encoded. If undefined, default scale properties are applied.
An object defining properties of the legend. If null, the legend for the encoding channel will be removed.
One or more value definition(s) with a selection or a test predicate. Note: A field definition’s condition property can only contain conditional value definitions since Vega-Lite only allows at most one encoded field per encoding channel.
Returns a polar field definition.
Returns a polar field definition. theta and radius position channels determine the position or interval on polar coordindates for arc and text marks.
A string defining the name of the field from which to pull a data value or an object defining iterated values from the repeat operator. field is not required if aggregate is count
A flag for binning a quantitative field.
Time unit (e.g., year, yearmonth, month, hours) for a temporal field, or a temporal field that gets casted as ordinal.
Aggregation function for the field (e.g., "mean", "sum", "median", "min", "max", "count").
A title for the field. If null, the title will be removed. The default value is derived from the field’s name and transformation function (aggregate, bin and timeUnit).
An object defining properties of the channel’s scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. If null, the scale will be disabled and the data value will be directly encoded. If undefined, default scale properties are applied.
Sort order for the encoded field. For continuous fields (quantitative or temporal), sort can be either "ascending" or "descending". For discrete fields, sort can be one of the following:
Type of stacking offset if the field should be stacked. stack is only applicable for x, y, theta, and radius channels with continuous domains. For example, stack of y can be used to customize stacking for a vertical bar chart. stack can be one of the following values:
Returns a position field definition.
Returns a position field definition. x and y position channels determine the position of the marks, or width/height of horizontal/vertical "area" and "bar". In addition, x2 and y2 can specify the span of ranged area, bar, rect, and rule.
A string defining the name of the field from which to pull a data value or an object defining iterated values from the repeat operator. field is not required if aggregate is count
A flag for binning a quantitative field.
Time unit (e.g., year, yearmonth, month, hours) for a temporal field, or a temporal field that gets casted as ordinal.
Aggregation function for the field (e.g., "mean", "sum", "median", "min", "max", "count").
A title for the field. If null, the title will be removed. The default value is derived from the field’s name and transformation function (aggregate, bin and timeUnit).
An object defining properties of the channel’s scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. If null, the scale will be disabled and the data value will be directly encoded. If undefined, default scale properties are applied.
An object defining properties of axis’s gridlines, ticks and labels. If null, the axis for the encoding channel will be removed. If undefined, default axis properties are applied.
Sort order for the encoded field. For continuous fields (quantitative or temporal), sort can be either "ascending" or "descending". For discrete fields, sort can be one of the following:
For rect-based marks (rect, bar, and image), mark size relative to bandwidth of band scales or time units. If set to 1, the mark size is set to the bandwidth or the time unit interval. If set to 0.5, the mark size is half of the bandwidth or the time unit interval. For other marks, relative position on a band of a stacked, binned, time unit or band scale. If set to 0, the marks will be positioned at the beginning of the band. If set to 0.5, the marks will be positioned in the middle of the band.
An object defining the properties of the Impute Operation to be applied. The field value of the other positional channel is taken as key of the Impute Operation. The field of the color channel if specified is used as groupby of the Impute Operation.
Type of stacking offset if the field should be stacked. stack is only applicable for x, y, theta, and radius channels with continuous domains. For example, stack of y can be used to customize stacking for a vertical bar chart. stack can be one of the following values: