GeoBlazor Pro


layout: pro title: PieChartCreator parent: Pro Classes grand_parent: GeoBlazor Pro —

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Model

PieChartCreator Class

This object contains a helper method for generating a pie chart for every feature.
For example, suppose you have a layer of U.S. counties with fields containing the total sales of various crops: wheat, soybeans, corn, cotton, and vegetables. You can use the createRenderer() method in this module to generate a chart for each feature visualizing the proportion of each crop type for every county.
ArcGIS Maps SDK for JavaScript

public class PieChartCreator : dymaptic.GeoBlazor.Pro.Model.ProLogicComponent

Inheritance System.Object 🡒 dymaptic.GeoBlazor.Core.Model.LogicComponent 🡒 ProLogicComponent 🡒 PieChartCreator

Constructors

PieChartCreator(IJSRuntime, AuthenticationManager, IAppValidator) Constructor

Constructor for use by Dependency Injection. Use AddGeoBlazorPro(this IServiceCollection, IConfiguration) in your startup code.

public PieChartCreator(Microsoft.JSInterop.IJSRuntime jsRuntime, dymaptic.GeoBlazor.Core.Model.AuthenticationManager authenticationManager, dymaptic.GeoBlazor.Core.IAppValidator appValidator);

Parameters

jsRuntime Microsoft.JSInterop.IJSRuntime

authenticationManager dymaptic.GeoBlazor.Core.Model.AuthenticationManager

appValidator dymaptic.GeoBlazor.Core.IAppValidator

Methods

PieChartCreator.CreateRenderer(PieChartRendererParams) Method

Generates a PieChartRenderer based on a set of numeric fields.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.PieChartRendererResult> CreateRenderer(dymaptic.GeoBlazor.Pro.Model.PieChartRendererParams options);

Parameters

options PieChartRendererParams

Returns

System.Threading.Tasks.Task<PieChartRendererResult>

PieChartCreator.CreateRendererForClustering(PieChartClusterRendererParams) Method

Generates a PieChartRenderer to use for a FeatureReductionCluster visualization based off an input layer’s UniqueValueRenderer or ClassBreaksRenderer. This method also generates aggregate fields that must be provided to the FeatureReductionCluster object to properly render.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.PieChartClusterRendererResult> CreateRendererForClustering(dymaptic.GeoBlazor.Pro.Model.PieChartClusterRendererParams options);

Parameters

options PieChartClusterRendererParams

Returns

System.Threading.Tasks.Task<PieChartClusterRendererResult>