# ChartTimeAggregation

Selects how timed values that fall into the same bucket are combined.

 Enum  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

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

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Selects how timed values that fall into the same bucket are combined.

## Inheritance

- Enum
- ChartTimeAggregation

## Usage

 Explore 5 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 4

- Field [ChartTimeAggregation.Count](/api/chartforgex-core-charttimeaggregation/#field-count)
- Field [ChartTimeAggregation.Maximum](/api/chartforgex-core-charttimeaggregation/#field-maximum)
- Field [ChartTimeAggregation.Mean](/api/chartforgex-core-charttimeaggregation/#field-mean)
- Field [ChartTimeAggregation.Sum](/api/chartforgex-core-charttimeaggregation/#field-sum)

### Accepted by parameters 1

- Method [Chart.AddHourWeekdayHeatmap](/api/chartforgex-core-chart/#method-addhourweekdayheatmap-collections-generic-ienumerable-chartforgex-core-charttimedvalue-chartforgex-core-charttimeaggregation-timezoneinfo-dayofweek-nullable-chartforgex-primitives-chartcolor-collections-generic-ireadonlylist-system-string-string) 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 ChartTimeAggregation Count` [#](#field-count) 

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

Counts the values; empty buckets are zero.

Value: `0`

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

[ChartTimeAggregation.cs:9](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTimeAggregation.cs#L9)

Adds the values; empty buckets are zero.

Value: `1`

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

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

Averages the values; empty buckets are masked.

Value: `2`

 `public const ChartTimeAggregation Maximum` [#](#field-maximum) 

[ChartTimeAggregation.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTimeAggregation.cs#L15)

Takes the largest value; empty buckets are masked.

Value: `3`

<!-- PowerForge markdown artifact sha256:5C50DF8CA84CF8895DC180CF71A92A9366746DACFDDA3C696B6ACBF117899B78 -->
