FieldAnalysis.withDiscreteFieldFunction constructor

FieldAnalysis.withDiscreteFieldFunction({
  1. required DiscreteFieldFunction function,
  2. required ColormapRenderer renderer,
})

Creates a FieldAnalysis with a DiscreteFieldFunction and a ColormapRenderer.

If the renderer is created with an empty or null colormap, the whole analysis is transparent.

If the color map does not contain a color mapped to any of the values in the function result, the displayed result is transparent.

Regions where the function result has no data are transparent.

Parameters: