OptionalcolorsAn array of colors that define the color ramp. Either colors or stops must be specified to construct the color ramp.
A string value indicating the name of the feature attribute field that contains the data value to render.
OptionallegendOptions available for the legend. See https://developers.arcgis.com/web-map-specification/objects/legendOptions/ https://developers.arcgis.com/web-scene-specification/objects/legendOptions/.
OptionalshowIndicates whether to show color/size ramp in the legend.
Optionaltitle?: stringThe title of the legend.
OptionalmaxThe maximum data value.
OptionalminThe minimum data value.
OptionalnormalizationString value indicating the name of the attribute field used to normalize the data.
OptionalstopsAn array of stop objects.
The type of the VisualVariable.
The colorInfo visual variable defines how a continuous color ramp is applied to features based on the values of a numeric field attribute. The minimum and maximum values of the data should be indicated along with their respective color values. You must specify either colors or stops to construct the color ramp.
See https://developers.arcgis.com/web-map-specification/objects/colorInfo_visualVariable/ https://developers.arcgis.com/web-scene-specification/objects/colorInfo_visualVariable/.