# ChartBubble

Represents one bubble point with an x value, y value, and positive size value.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartBubble.cs:34](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartBubble.cs#L34)

**Base**

`ValueType`

**Modifiers**

sealed

Represents one bubble point with an x value, y value, and positive size value.

## Inheritance

- ValueType
- ChartBubble

## Usage

 Explore 9 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 3

- Method [ChartBubble.WithColorValue](/api/chartforgex-core-chartbubble/#method-withcolorvalue-nullable-system-double)
- Method [ChartBubbles.FromXYSize](/api/chartforgex-core-chartbubbles/#method-fromxysize-collections-generic-ienumerable-system-double-collections-generic-ienumerable-system-double-collections-generic-ienumerable-system-double)
- Property [ChartSeries.Bubbles](/api/chartforgex-core-chartseries/#property-bubbles)

### Accepted by parameters 6

- Method [Chart.AddBubble](/api/chartforgex-core-chart/#method-addbubble-string-collections-generic-ienumerable-chartforgex-core-chartbubble-nullable-chartforgex-primitives-chartcolor) parameter `bubbles`
- Method [Chart.AddBubble``1](/api/chartforgex-core-chart/#method-addbubble-string-collections-generic-ienumerable-func-chartforgex-core-chartbubble-nullable-chartforgex-primitives-chartcolor) parameter `observation`
- Method [ChartSeries.ApplyBubbleChanges](/api/chartforgex-core-chartseries/#method-applybubblechanges-collections-generic-ienumerable-chartforgex-core-chartobservationchange-chartforgex-core-chartbubble-nullable-system-int32-int32-threading-cancellationtoken) parameter `changes`
- Method [ChartSeries.CreateBubble](/api/chartforgex-core-chartseries/#method-createbubble-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-chartforgex-core-chartbubble-nullable-chartforgex-primitives-chartcolor) parameter `values`
- Method [ChartSeries.ReplaceBubbles](/api/chartforgex-core-chartseries/#method-replacebubbles-collections-generic-ienumerable-chartforgex-core-chartbubble) parameter `values`
- Method [ChartSeries.UpdateBubble](/api/chartforgex-core-chartseries/#method-updatebubble-int32-chartforgex-core-chartbubble) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 ChartBubble 2 overloads 

 `public ChartBubble(double x, double y, double size)` [#](#constructor-ctor-double-double-double) 

[ChartBubble.cs:34](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartBubble.cs#L34)

Initializes a new instance of the [ChartBubble](/api/chartforgex-core-chartbubble/) struct.

Parameters

**x double required**

The horizontal coordinate.

**y double required**

The vertical coordinate.

**size double required**

The positive size value.

 `public ChartBubble(DateTime x, double y, double size)` [#](#constructor-ctor-datetime-double-double) 

[ChartBubble.cs:54](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartBubble.cs#L54)

Initializes a new instance of the [ChartBubble](/api/chartforgex-core-chartbubble/) struct from a date/time x value.

Parameters

**x System.DateTime required**

The date/time x value.

**y double required**

The vertical coordinate.

**size double required**

The positive size value.

## Methods

 `public ChartBubble WithColorValue(double? value)` [#](#method-withcolorvalue-nullable-system-double) 

[ChartBubble.cs:60](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartBubble.cs#L60)

Returns an independent bubble with the same coordinates and size and a replacement color measurement.

Parameters

**value double? required**

The finite numeric color measurement, or null to clear it.

Returns

 `ChartBubble` A new bubble. The current bubble is unchanged. 

## Inherited Methods

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

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from ValueType

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

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

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public double? ColorValue { get; }` [#](#property-colorvalue) 

[ChartBubble.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartBubble.cs#L26)

Gets the independent numeric color measurement, or null when no measurement is supplied.

## Fields

 `public readonly double X` [#](#field-x) 

[ChartBubble.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartBubble.cs#L13)

Gets the horizontal coordinate.

 `public readonly double Y` [#](#field-y) 

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

Gets the vertical coordinate.

 `public readonly double Size` [#](#field-size) 

[ChartBubble.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartBubble.cs#L23)

Gets the positive source value mapped to a logical marker radius by [ChartOptions.Bubble](/api/chartforgex-core-chartoptions/).

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