layout: default title: ChartMediaInfoValue parent: Core Classes —
dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Popups
ChartMediaInfoValue Class
The ChartMediaInfoValue class contains information for popups regarding how charts should be constructed.
ArcGIS Maps SDK for JavaScript
public class ChartMediaInfoValue : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 ChartMediaInfoValue
Constructors
ChartMediaInfoValue() Constructor
Parameterless constructor for use as a razor component.
public ChartMediaInfoValue();
ChartMediaInfoValue(IReadOnlyCollection, string, string, IReadOnlyList) Constructor
Constructor for building a ChartMediaInfoValue in code.
public ChartMediaInfoValue(System.Collections.Generic.IReadOnlyCollection<string>? fields=null, string? normalizeField=null, string? tooltipField=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Popups.ChartMediaInfoValueSeries>? series=null);
Parameters
fields
System.Collections.Generic.IReadOnlyCollection<System.String>
An array of strings, with each string containing the name of a field to display in the chart.
normalizeField
System.String
A string containing the name of a field. The values of all fields in the chart will be normalized (divided) by the
tooltipField
System.String
String value indicating the tooltip for a chart specified from another field. It is used for showing tooltips from
series
System.Collections.Generic.IReadOnlyList<ChartMediaInfoValueSeries>
An array of ChartMediaInfoValueSeries objects which provide information of x/y data that is plotted in a chart.
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
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.IList<dymaptic.GeoBlazor.Core.Components.Popups.ChartMediaInfoValueSeries>? Series { get; set; }
Property Value
System.Collections.Generic.IList<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
Methods
ChartMediaInfoValue.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
MapComponent
The calling, child component to register
Returns
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.
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
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.