Skip to main content Link Menu Expand (external link) Document Search Copy Copied

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Popups

ChartMediaInfoValue Class

The ChartMediaInfoValue class contains information for popups regarding how charts should be constructed.

ArcGIS
  
JS API

</a>

public class ChartMediaInfoValue : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 ChartMediaInfoValue

Properties

ChartMediaInfoValue.Fields Property

An array of strings, with each string containing the name of a field to display in the chart.

public System.Collections.Generic.IEnumerable<string> Fields { get; set; }

Property Value

System.Collections.Generic.IEnumerable<System.String>

Remarks

In order to work with related fields within a chart, the fields must either be set as a fields element in the
PopupTemplate’s content or as popupTemplate.fieldInfos property outside of the PopupTemplate’s content.
Set the popupTemplate.fieldInfos property for any fields that need to have number formatting for chart/text
elements.

ChartMediaInfoValue.NormalizeField Property

A string containing the name of a field. The values of all fields in the chart will be normalized (divided) by the
value of this field.

public string? NormalizeField { get; set; }

Property Value

System.String

ChartMediaInfoValue.Series Property

An array of ChartMediaInfoValueSeries objects which provide information of x/y data that is plotted in a chart.

public System.Collections.Generic.HashSet<dymaptic.GeoBlazor.Core.Components.Popups.ChartMediaInfoValueSeries>? Series { get; set; }

Property Value

System.Collections.Generic.HashSet<ChartMediaInfoValueSeries>

ChartMediaInfoValue.TooltipField Property

String value indicating the tooltip for a chart specified from another field. It is used for showing tooltips from
another field in the same layer or related layer/table.

public string? TooltipField { get; set; }

Property Value

System.String

Methods

ChartMediaInfoValue.RegisterChildComponent(MapComponent) Method

Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnAfterRenderAsync(System.Boolean) to “Register” the current component with it’s parent.

public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The calling, child component to register

Returns

System.Threading.Tasks.Task

Exceptions

InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.

ChartMediaInfoValue.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 MapComponent

The child to unregister

Returns

System.Threading.Tasks.Task

ChartMediaInfoValue.ValidateRequiredChildren() Method

When a MapView is prepared to render, this will check to make sure that all properties with the
RequiredPropertyAttribute are provided.

public override void ValidateRequiredChildren();

Exceptions

MissingRequiredChildElementException
The consumer needs to provide the missing child component

MissingRequiredOptionsChildElementException
The consumer needs to provide ONE of the options of child components