Parameters can be initialized using thevalue
property.
value
can be set to any valid JSON primitive type including booleans, numbers, or string.value
should specify mappings betweenprojected channels or field names to initial values.In the example below, we initalize the"CylYr"
selection with two values by setting the values for the"Cylinders"
and"Years"
fields.
Similarly, we initialize the"brush"
selection to the extent of the brush for thex
andy
encoding channels. The values specify the start and end of the interval selection.