GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components.Renderers
PieChartRenderer Class
PieChartRenderer allows you to create a pie chart for each feature in the layer. The value and color of each pie slice is specified in the attributes property. You can vary the size of each pie based on data with any other field value or Arcade expression using visualVariables.
ArcGIS Maps SDK for JavaScript
public class PieChartRenderer : dymaptic.GeoBlazor.Core.Components.Renderers.Renderer
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 dymaptic.GeoBlazor.Core.Components.Layers.LayerObject 🡒 dymaptic.GeoBlazor.Core.Components.Renderers.Renderer 🡒 PieChartRenderer
Properties
PieChartRenderer.Attributes Property
Defines the variable(s) to include in the pie charts. This is an array of objects, each of which references a numeric field value or Arcade expression used to drive the width of each sector. You must also set a color corresponding to each value.
This property is limited to no more than 10 attributes.
public System.Collections.Generic.IReadOnlyCollection<dymaptic.GeoBlazor.Pro.Components.Renderers.AttributeColorInfo>? Attributes { get; set; }
Property Value
System.Collections.Generic.IReadOnlyCollection<AttributeColorInfo>
PieChartRenderer.AuthoringInfo Property
Authoring metadata only included in renderers generated from one of the Smart Mapping creator methods, such as sizeRendererCreator.createContinuousRenderer() or colorRendererCreator.createContinuousRenderer(). This includes information from UI elements such as sliders and selected classification methods and themes. This allows the authoring clients to save specific overridable settings so that next time it is accessed via the UI, their selections can be remembered.
public dymaptic.GeoBlazor.Pro.Objects.AuthoringInfo? AuthoringInfo { get; set; }
Property Value
PieChartRenderer.BackgroundFillSymbol Property
The symbol used to render polygons behind the pie symbols. Only applicable to polygon layers.
public dymaptic.GeoBlazor.Core.Components.Symbols.SimpleFillSymbol? BackgroundFillSymbol { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.Symbols.SimpleFillSymbol
PieChartRenderer.DefaultColor Property
The color used to visualize features whose attributes all have null or empty values. By default, this is a transparent color, so no chart displays. You should set this value if you would like to show areas with features, but no data associated with it.
Default Value:new MapColor(0, 0, 0, 0)
public dymaptic.GeoBlazor.Core.Objects.MapColor? DefaultColor { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Objects.MapColor
PieChartRenderer.DefaultLabel Property
Describes the defaultColor in the Legend.
public string? DefaultLabel { get; set; }
Property Value
PieChartRenderer.HolePercentage Property
Use this property to create a donut chart. Defines the size of the hole to cut from the center of the chart as a percentage of the entire pie chart. Accepted values are between 0 and 1. For example, a hole percentage of 0 will render a full pie chart. A ratio of 0.5 will remove 50% of the center of the pie, creating a donut.
Default Value:0
public System.Nullable<double> HolePercentage { get; set; }
Property Value
System.Nullable<System.Double>
PieChartRenderer.LegendOptions Property
An object providing options for describing the renderer in the Legend.
public dymaptic.GeoBlazor.Pro.Components.Renderers.PieChartLegendOptions? LegendOptions { get; set; }
Property Value
PieChartRenderer.OthersCategory Property
Defines the rules for how to aggregate small categories to a generic “others” category.
public dymaptic.GeoBlazor.Pro.Components.Renderers.PieChartOthersCategory? OthersCategory { get; set; }
Property Value
PieChartRenderer.Outline Property
Defines the outline of the pie chart. The outline width and color is applied to the outer outline of the pie (and inner outline in the case of donut charts).
public dymaptic.GeoBlazor.Core.Components.Symbols.Outline? Outline { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.Symbols.Outline
PieChartRenderer.RendererType Property
The subclass Renderer type
public override dymaptic.GeoBlazor.Core.Components.Renderers.RendererType RendererType { get; }
Property Value
dymaptic.GeoBlazor.Core.Components.Renderers.RendererType
PieChartRenderer.Size Property
Defines the size of each pie chart in points. This value may be autocast with a string expressing size in points or pixels (e.g. 12px).
Default Value:12
public string? Size { get; set; }
Property Value
PieChartRenderer.VisualVariables Property
An array of Size Visual Variable objects. Typically, this is used to vary the size of each pie chart based on the sum of all categories included in the pie.
public System.Collections.Generic.IReadOnlyCollection<dymaptic.GeoBlazor.Core.Components.Layers.SizeVariable>? VisualVariables { get; set; }
Property Value
System.Collections.Generic.IReadOnlyCollection<dymaptic.GeoBlazor.Core.Components.Layers.SizeVariable>
Methods
PieChartRenderer.RegisterChildComponent(MapComponent) Method
Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync to “Register” the current component with it’s parent.
public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
dymaptic.GeoBlazor.Core.Components.MapComponent
The calling, child component to register
Returns
Exceptions
dymaptic.GeoBlazor.Core.Exceptions.InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method. If you see no other way to register a child component, please open an issue on GitHub.
PieChartRenderer.UnregisterChildComponent(MapComponent) Method
Undoes the “Registration” of a child with its parent.
public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
dymaptic.GeoBlazor.Core.Components.MapComponent
The child to unregister
Returns
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method.