# ChartPictorialItem

Represents one labeled value in a pictorial chart.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartPictorialItem.cs:32](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartPictorialItem.cs#L32)

**Base**

`ValueType`

**Modifiers**

sealed

Represents one labeled value in a pictorial chart.

## Inheritance

- ValueType
- ChartPictorialItem

## Usage

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

### Accepted by parameters 1

- Method [Chart.AddPictorial](/api/chartforgex-core-chart/#method-addpictorial-string-collections-generic-ienumerable-chartforgex-core-chartpictorialitem-chartforgex-core-chartpictorialshape-nullable-chartforgex-primitives-chartcolor) parameter `items`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartPictorialItem(string label, double value, ChartColor? color = null)` [#](#constructor-ctor-string-double-nullable-chartforgex-primitives-chartcolor) 

[ChartPictorialItem.cs:32](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartPictorialItem.cs#L32)

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

Parameters

**label string required**

The item label.

**value double required**

The item value. Negative values are not allowed.

**color ChartForgeX.Primitives.ChartColor? = null optional**

An optional color for this item.

## 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?` 

## Fields

 `public readonly string Label` [#](#field-label) 

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

Gets the item label.

 `public readonly double Value` [#](#field-value) 

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

Gets the item value.

 `public readonly ChartColor? Color` [#](#field-color) 

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

Gets the optional item color.

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