Skip to content

Commit

Permalink
docs: correct documentation of domain union with
Browse files Browse the repository at this point in the history
Fixes #7022
  • Loading branch information
domoritz committed Nov 4, 2020
1 parent bceec6b commit 52fc7ec
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,17 +429,8 @@ export function isSelectionDomain(domain: Domain): domain is SelectionExtent {

export interface DomainUnionWith {
/**
* Customized domain values to be union with the field's values.
*
* 1) `domain` for _quantitative_ fields can take one of the following forms:
*
* - a two-element array with minimum and maximum values.
* - an array with more than two entries, for [Piecewise quantitative scales](https://vega.github.io/vega-lite/docs/scale.html#piecewise). (Alternatively, the `domainMid` property can be set for a diverging scale.)
* - a string value `"unaggregated"`, if the input field is aggregated, to indicate that the domain should include the raw data values prior to the aggregation.
*
* 2) `domain` for _temporal_ fields can be a two-element array minimum and maximum values, in the form of either timestamps or the [DateTime definition objects](https://vega.github.io/vega-lite/docs/types.html#datetime).
*
* 3) `domain` for _ordinal_ and _nominal_ fields can be an array that lists valid input values.
* Customized domain values to be union with the field's values or explicitly defined domain.
* Should be an array of valid scale domain values.
*/
unionWith: number[] | string[] | boolean[] | DateTime[];
}
Expand Down

0 comments on commit 52fc7ec

Please sign in to comment.