layout: default title: BarChartMediaInfo parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Popups

BarChartMediaInfo Class

A BarChartMediaInfo is a type of chart media element that represents a bar chart displayed within a popup.
ArcGIS Maps SDK for JavaScript

public class BarChartMediaInfo : dymaptic.GeoBlazor.Core.Components.Popups.MediaInfo

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 MediaInfo 🡒 BarChartMediaInfo

Constructors

BarChartMediaInfo() Constructor

Parameterless constructor for use as a razor component.

public BarChartMediaInfo();

BarChartMediaInfo(string, string, string, ChartMediaInfoValue) Constructor

Constructor for building a BarChartMediaInfo in code.

public BarChartMediaInfo(string? title=null, string? caption=null, string? altText=null, dymaptic.GeoBlazor.Core.Components.Popups.ChartMediaInfoValue? value=null);

Parameters

title System.String

The title of the media element.

caption System.String

Defines a caption for the media.

altText System.String

Provides an alternate text for an image if the image cannot be displayed.

value ChartMediaInfoValue

Defines the chart value.

Properties

BarChartMediaInfo.AltText Property

Provides an alternate text for an image if the image cannot be displayed.

public string? AltText { get; set; }

Property Value

System.String

BarChartMediaInfo.Caption Property

Defines a caption for the media.

public string? Caption { get; set; }

Property Value

System.String

BarChartMediaInfo.Title Property

The title of the media element.

public string? Title { get; set; }

Property Value

System.String

BarChartMediaInfo.Type Property

Indicates the type of media

public override string Type { get; }

Property Value

System.String

BarChartMediaInfo.Value Property

Defines the chart value.

public dymaptic.GeoBlazor.Core.Components.Popups.ChartMediaInfoValue? Value { get; set; }

Property Value

ChartMediaInfoValue

Methods

BarChartMediaInfo.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

System.Threading.Tasks.Task

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.

BarChartMediaInfo.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

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.