GeoBlazor Pro

layout: pro title: PieChartRenderer parent: Pro Classes grand_parent: GeoBlazor Pro β€”



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


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.IReadOnlyList<dymaptic.GeoBlazor.Pro.Components.Renderers.AttributeColorInfo>? Attributes { get; set; }

Property Value


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


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


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


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


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 dymaptic.GeoBlazor.Core.Objects.Dimension? 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