Skip to main content

PyramidDataItem Class

Definition​

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts

Represents a data item for a pyramid chart, typically used for population pyramids showing age distribution by gender.

public class PyramidDataItem

Inheritance: object -> PyramidDataItem

Implements: IEquatable<PyramidDataItem>

Constructors​

NameDescription
PyramidDataItemRepresents a data item for a pyramid chart, typically used for population pyramids showing age distribution by gender.

PyramidDataItem Constructor​

Represents a data item for a pyramid chart, typically used for population pyramids showing age distribution by gender.

public PyramidDataItem(string AgeLabel, double MaleValue, double FemaleValue)

Parameters​

AgeLabel string

The age group or category label (e.g., "0-4", "5-9").

MaleValue double

The value for the male population in this age group.

FemaleValue double

The value for the female population in this age group.

Methods​

NameDescription
<Clone>$No summary available.
DeconstructNo summary available.
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

<Clone>$ Method​

public Avalonia.Controls.Charts.PyramidDataItem <Clone>$()

Returns​

Avalonia.Controls.Charts.PyramidDataItem

Deconstruct Method​

public void Deconstruct(string& AgeLabel, double& MaleValue, double& FemaleValue)

Parameters​

AgeLabel string&

MaleValue double&

FemaleValue double&

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Controls.Charts.PyramidDataItem other)
Parameters​

other Avalonia.Controls.Charts.PyramidDataItem

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
AgeLabelThe age group or category label (e.g., "0-4", "5-9").
FemaleValueThe value for the female population in this age group.
MaleValueThe value for the male population in this age group.

AgeLabel Property​

The age group or category label (e.g., "0-4", "5-9").

public string AgeLabel { get; set; }

FemaleValue Property​

The value for the female population in this age group.

public double FemaleValue { get; set; }

MaleValue Property​

The value for the male population in this age group.

public double MaleValue { get; set; }