Legend

Legend properties are automatically inferred for the color and size channels but the resulting properties can be overridden for customization using the properties below. To remove the legend, simply specify "none" as the legend value.

Example

Below is an example with the input vis specs without any legend specs parameters - DXR automatically infers default settings.

Some parameters of the legend can be customized, e.g., title, and position, as shown in the modified example below where the legend's title and y position are changed.

Toggle Filter

A toggle filter, shown below, can be added into the legend by setting the filter parameter to true (this is set to false by default). Currently, this only works for color channel with ordinal and nominal data types.