GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components
AttributeColorInfo Class
Defines colors for dots in a DotDensityRenderer,
or colors for pie chart slices in a PieChartRenderer.
ArcGIS Maps SDK for JavaScript
public class AttributeColorInfo : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 AttributeColorInfo
Constructors
AttributeColorInfo() Constructor
Parameterless constructor for use as a Razor Component.
public AttributeColorInfo();
AttributeColorInfo(MapColor, string, string, string, string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public AttributeColorInfo(dymaptic.GeoBlazor.Core.Model.MapColor? color=null, string? field=null, string? label=null, string? valueExpression=null, string? valueExpressionTitle=null);
Parameters
color
dymaptic.GeoBlazor.Core.Model.MapColor
The color used to render dots representing the given field in a DotDensityRenderer or
the color used to represent a pie chart slice in a PieChartRenderer.
ArcGIS Maps SDK for JavaScript
field
System.String
The name of the numeric attribute field represented by the given color.
ArcGIS Maps SDK for JavaScript
label
System.String
The label used to describe the field or attribute in the
Legend widget.
ArcGIS Maps SDK for JavaScript
valueExpression
System.String
An Arcade expression following the specification
defined by the Arcade Visualization Profile.
ArcGIS Maps SDK for JavaScript
valueExpressionTitle
System.String
The title identifying and describing the associated
Arcade expression as defined in the valueExpression property.
ArcGIS Maps SDK for JavaScript
Properties
AttributeColorInfo.Color Property
The color used to render dots representing the given field in a DotDensityRenderer or the color used to represent a pie chart slice in a PieChartRenderer.
public dymaptic.GeoBlazor.Core.Model.MapColor? Color { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Model.MapColor
AttributeColorInfo.Field Property
The name of the numeric attribute field represented by the given color.
public string? Field { get; set; }
Property Value
AttributeColorInfo.Label Property
The label used to describe the field or attribute in the Legend widget.
public string? Label { get; set; }
Property Value
AttributeColorInfo.ValueExpression Property
An Arcade expression following the specification defined by the Arcade Visualization Profile. Expressions in DotDensityRenderer may reference field values using the $feature profile variable and must return a number equal to the number of units represented by each dot. Expressions in PieChartRenderer must return a number representing the size of the pie chart slice.
This takes precedence over field. Therefore, this property is typically used as an alternative to field.
public string? ValueExpression { get; set; }
Property Value
AttributeColorInfo.ValueExpressionTitle Property
The title identifying and describing the associated Arcade expression as defined in the valueExpression property. This is displayed as the label of the attribute in the Legend in the absence of one provided in the label property.
public string? ValueExpressionTitle { get; set; }
Property Value
Methods
AttributeColorInfo.GetColor() Method
Asynchronously retrieve the current value of the Color property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.MapColor?> GetColor();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.MapColor>
AttributeColorInfo.GetField() Method
Asynchronously retrieve the current value of the Field property.
public System.Threading.Tasks.Task<string?> GetField();
Returns
System.Threading.Tasks.Task<System.String>
AttributeColorInfo.GetLabel() Method
Asynchronously retrieve the current value of the Label property.
public System.Threading.Tasks.Task<string?> GetLabel();
Returns
System.Threading.Tasks.Task<System.String>
AttributeColorInfo.GetValueExpression() Method
Asynchronously retrieve the current value of the ValueExpression property.
public System.Threading.Tasks.Task<string?> GetValueExpression();
Returns
System.Threading.Tasks.Task<System.String>
AttributeColorInfo.GetValueExpressionTitle() Method
Asynchronously retrieve the current value of the ValueExpressionTitle property.
public System.Threading.Tasks.Task<string?> GetValueExpressionTitle();
Returns
System.Threading.Tasks.Task<System.String>
AttributeColorInfo.SetColor(MapColor) Method
Asynchronously set the value of the Color property after render.
public System.Threading.Tasks.Task SetColor(dymaptic.GeoBlazor.Core.Model.MapColor? value);
Parameters
value
dymaptic.GeoBlazor.Core.Model.MapColor
The value to set.
Returns
AttributeColorInfo.SetField(string) Method
Asynchronously set the value of the Field property after render.
public System.Threading.Tasks.Task SetField(string? value);
Parameters
value
System.String
The value to set.
Returns
AttributeColorInfo.SetLabel(string) Method
Asynchronously set the value of the Label property after render.
public System.Threading.Tasks.Task SetLabel(string? value);
Parameters
value
System.String
The value to set.
Returns
AttributeColorInfo.SetValueExpression(string) Method
Asynchronously set the value of the ValueExpression property after render.
public System.Threading.Tasks.Task SetValueExpression(string? value);
Parameters
value
System.String
The value to set.
Returns
AttributeColorInfo.SetValueExpressionTitle(string) Method
Asynchronously set the value of the ValueExpressionTitle property after render.
public System.Threading.Tasks.Task SetValueExpressionTitle(string? value);
Parameters
value
System.String
The value to set.