# ChartDataBin<T>

Represents one numeric interval in a shared layout and its source rows.

 Class  

`ChartForgeX.Data`

**Namespace**

`ChartForgeX.Data`

**Assembly**

`ChartForgeX`

**Source**

[ChartDataBin.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Data/ChartDataBin.cs#L18)

**Modifiers**

sealed

Represents one numeric interval in a shared layout and its source rows.

## Inheritance

- object
- ChartDataBin<T>

## Usage

 Explore 2 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 1

- Method [ChartDataset<T>.Bin](/api/chartforgex-data-chartdataset/#method-bin-func-system-double-int32)

### Accepted by parameters 1

- Method [Chart.AddHistogram``1](/api/chartforgex-core-chart/#method-addhistogram-string-chartforgex-data-chartdataset-chartforgex-data-chartdatabin-nullable-chartforgex-primitives-chartcolor) parameter `bins`

## Type Parameters

**T**

 Filter members   

    Show inherited   

 

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from object

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

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

Inherited from object

Returns

 `string?` 

## Properties

 `public ChartHistogramBinLayout Layout { get; }` [#](#property-layout) 

[ChartDataBin.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Data/ChartDataBin.cs#L18)

Gets the immutable measurement layout shared by every bin of the source dataset.

 `public int Index { get; }` [#](#property-index) 

[ChartDataBin.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Data/ChartDataBin.cs#L21)

Gets the interval index in the shared layout.

 `public double LowerBound { get; }` [#](#property-lowerbound) 

[ChartDataBin.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Data/ChartDataBin.cs#L24)

Gets the inclusive lower bound.

 `public double UpperBound { get; }` [#](#property-upperbound) 

[ChartDataBin.cs:27](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Data/ChartDataBin.cs#L27)

Gets the upper bound. The final bin includes its upper bound.

 `public double Center { get; }` [#](#property-center) 

[ChartDataBin.cs:30](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Data/ChartDataBin.cs#L30)

Gets the midpoint used for chart coordinates.

 `public double Width { get; }` [#](#property-width) 

[ChartDataBin.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Data/ChartDataBin.cs#L33)

Gets the actual measurement width.

 `public int Count { get; }` [#](#property-count) 

[ChartDataBin.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Data/ChartDataBin.cs#L36)

Gets the number of source rows in the bin.

 `public ChartDataset<T?> Dataset { get; }` [#](#property-dataset) 

[ChartDataBin.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Data/ChartDataBin.cs#L39)

Gets the source rows in the bin.

 `public IReadOnlyList<int> SourceIndices { get; }` [#](#property-sourceindices) 

[ChartDataBin.cs:42](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Data/ChartDataBin.cs#L42)

Gets the indices of the rows in the dataset before binning, in source order.

<!-- PowerForge markdown artifact sha256:C085794110F5401493B0FE21517EA2E4A14030279AF57515B3829EBA69EA912A -->
