# ChartHistogramAggregation

Specifies the quantity represented by the observations in each histogram interval.

 Enum  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartHistogramAggregation.cs:4](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartHistogramAggregation.cs#L4)

**Base**

`Enum`

**Implements**

 `IComparable` `ISpanFormattable` `IFormattable` `IConvertible` 

**Modifiers**

sealed

Specifies the quantity represented by the observations in each histogram interval.

## Inheritance

- Enum
- ChartHistogramAggregation

## Usage

 Explore 7 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 5

- Field [ChartHistogramAggregation.Count](/api/chartforgex-core-charthistogramaggregation/#field-count)
- Field [ChartHistogramAggregation.Mean](/api/chartforgex-core-charthistogramaggregation/#field-mean)
- Field [ChartHistogramAggregation.Sum](/api/chartforgex-core-charthistogramaggregation/#field-sum)
- Field [ChartHistogramAggregation.WeightedMean](/api/chartforgex-core-charthistogramaggregation/#field-weightedmean)
- Property [ChartSeries.HistogramAggregation](/api/chartforgex-core-chartseries/#property-histogramaggregation)

### Accepted by parameters 2

- Method [Chart.AddHistogram](/api/chartforgex-core-chart/#method-addhistogram-string-collections-generic-ienumerable-chartforgex-primitives-chartpoint-chartforgex-core-charthistogrambinlayout-chartforgex-core-charthistogramaggregation-chartforgex-core-charthistogramencoding-nullable-chartforgex-primitives-chartcolor) parameter `aggregation`
- Method [ChartSeries.CreateHistogram](/api/chartforgex-core-chartseries/#method-createhistogram-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-chartforgex-core-charthistogramobservation-chartforgex-core-charthistogrambinlayout-chartforgex-core-charthistogramaggregation-chartforgex-core-charthistogramencoding-nullable-chartforgex-primitives-chartcolor) parameter `aggregation`

 Filter members   

    Show inherited   

 

## Inherited Methods

 `public int CompareTo(object? target)` [#](#method-compareto-object) 

Inherited from Enum

Parameters

**target object? required**

Returns

 `int` 

 `public override bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from Enum

Parameters

**obj object? required**

Returns

 `bool` 

 `public override int GetHashCode()` [#](#method-gethashcode) 

Inherited from Enum

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public TypeCode GetTypeCode()` [#](#method-gettypecode) 

Inherited from Enum

Returns

 `TypeCode` 

 `public bool HasFlag(Enum flag)` [#](#method-hasflag-enum) 

Inherited from Enum

Parameters

**flag Enum required**

Returns

 `bool` 

 ToString 4 overloads 

 `public override string ToString()` [#](#method-tostring) 

Inherited from Enum

Returns

 `string` 

 `public string ToString(string? format)` [#](#method-tostring-string) 

Inherited from Enum

Parameters

**format string? required**

Returns

 `string` 

 `public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString() instead.")` 

Parameters

**provider IFormatProvider? required**

Returns

 `string` 

 `public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString(String) instead.")` 

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

 `string` 

## Values

 `public const ChartHistogramAggregation Count` [#](#field-count) 

[ChartHistogramAggregation.cs:6](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartHistogramAggregation.cs#L6)

Counts observations, ignoring their quantities.

Value: `0`

 `public const ChartHistogramAggregation Sum` [#](#field-sum) 

[ChartHistogramAggregation.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartHistogramAggregation.cs#L8)

Sums the signed quantities of the observations.

Value: `1`

 `public const ChartHistogramAggregation Mean` [#](#field-mean) 

[ChartHistogramAggregation.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartHistogramAggregation.cs#L10)

Computes the arithmetic mean of quantities; an empty bin has no aggregate.

Value: `2`

 `public const ChartHistogramAggregation WeightedMean` [#](#field-weightedmean) 

[ChartHistogramAggregation.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartHistogramAggregation.cs#L12)

Computes the quantity mean using nonnegative observation weights; a bin with no positive weight has no aggregate.

Value: `3`

<!-- PowerForge markdown artifact sha256:2F076E0AE10F7373F380B4068C97DF9D9274EB62BE8AA7842EE55392716538F7 -->
