# ChartDescriptionFacts

The facts behind one automatic accessible sentence: the chart description (the SVG desc element), the accessible name of a calendar or map group…

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartDescriptionFacts.cs:83](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L83)

**Modifiers**

sealed

The facts behind one automatic accessible sentence: the chart description (the SVG desc element), the accessible name of a calendar or map group, or the description of a topology diagram. [ChartLabels.AccessibleTextFormatter](/api/chartforgex-core-chartlabels/) and [TopologyLabels.AccessibleTextFormatter](/api/chartforgex-topology-topologylabels/) receive them so hosts can write the sentence in their own language, including its plural forms.

## Inheritance

- object
- ChartDescriptionFacts

## Usage

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

- Property [ChartLabels.AccessibleTextFormatter](/api/chartforgex-core-chartlabels/#property-accessibletextformatter)
- Property [TopologyLabels.AccessibleTextFormatter](/api/chartforgex-topology-topologylabels/#property-accessibletextformatter)

### Accepted by parameters 4

- Extension method [ChartLabels.AccessibleTextBy](/api/chartforgex-core-chartlabels/#extension-accessibletextby-chartforgex-core-chartlabels-func-chartforgex-core-chartdescriptionfacts-system-string) parameter `value`
- Method [ChartLabelsFluent.AccessibleTextBy](/api/chartforgex-core-chartlabelsfluent/#method-accessibletextby-chartforgex-core-chartlabels-func-chartforgex-core-chartdescriptionfacts-system-string) parameter `value`
- Extension method [TopologyLabels.AccessibleTextBy](/api/chartforgex-topology-topologylabels/#extension-accessibletextby-chartforgex-topology-topologylabels-func-chartforgex-core-chartdescriptionfacts-system-string) parameter `value`
- Method [TopologyLabelsFluent.AccessibleTextBy](/api/chartforgex-topology-topologylabelsfluent/#method-accessibletextby-chartforgex-topology-topologylabels-func-chartforgex-core-chartdescriptionfacts-system-string) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartDescriptionFacts(ChartDescriptionKind kind, string? title, IEnumerable<string> seriesNames, int count, int missingCount = 0, DateTime? firstDate = null, DateTime? lastDate = null, string? mapName = null, int groupCount = 0, int edgeCount = 0, int zeroCount = 0, IEnumerable<string>? plotRegionLabels = null)` [#](#member-28d86c7bd15f813f23a0b886) 

[ChartDescriptionFacts.cs:83](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L83)

Initializes the facts of one sentence, for example to test a formatter.

Parameters

**kind ChartForgeX.Core.ChartDescriptionKind required**

Which sentence is described.

**title string? required**

The chart title; null or white space when the chart has none.

**seriesNames System.Collections.Generic.IEnumerable<string> required**

The described series names.

**count int required**

The main count (see [ChartDescriptionFacts.Count](/api/chartforgex-core-chartdescriptionfacts/)); zero or greater.

**missingCount int = 0 optional**

The number of days, regions, or tiles without a value; zero or greater.

**firstDate System.DateTime? = null optional**

The first day, for calendar sentences.

**lastDate System.DateTime? = null optional**

The last day, for calendar sentences.

**mapName string? = null optional**

The name of the region or tile map definition.

**groupCount int = 0 optional**

The number of groups, for topology descriptions; zero or greater.

**edgeCount int = 0 optional**

The number of edges, for topology descriptions; zero or greater.

**zeroCount int = 0 optional**

The number of calendar days at zero, for calendar sentences; zero or greater.

**plotRegionLabels System.Collections.Generic.IEnumerable<string>? = null optional**

The authored Cartesian plot region captions, including regions without points.

## 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 ChartDescriptionKind Kind { get; }` [#](#property-kind) 

[ChartDescriptionFacts.cs:110](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L110)

Gets which sentence is described.

 `public string? Title { get; }` [#](#property-title) 

[ChartDescriptionFacts.cs:113](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L113)

Gets the chart title, or null when the chart has none.

 `public IReadOnlyList<string> SeriesNames { get; }` [#](#property-seriesnames) 

[ChartDescriptionFacts.cs:116](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L116)

Gets the described series names: every series with source data, or the one calendar or map series.

 `public IReadOnlyList<string> PlotRegionLabels { get; }` [#](#property-plotregionlabels) 

[ChartDescriptionFacts.cs:119](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L119)

Gets authored Cartesian plot region captions for automatic and host-localized descriptions.

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

[ChartDescriptionFacts.cs:127](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L127)

Gets the main count: described series, calendar days with a value, highlighted map points, filled map regions, or topology nodes, depending on [ChartDescriptionFacts.Kind](/api/chartforgex-core-chartdescriptionfacts/). A calendar day at zero is drawn neutral and counts in [ChartDescriptionFacts.ZeroCount](/api/chartforgex-core-chartdescriptionfacts/), not here, so a sentence can tell days with changes ([ChartDescriptionFacts.Count](/api/chartforgex-core-chartdescriptionfacts/)) from days in the data ([ChartDescriptionFacts.Count](/api/chartforgex-core-chartdescriptionfacts/) plus [ChartDescriptionFacts.ZeroCount](/api/chartforgex-core-chartdescriptionfacts/)).

 `public int MissingCount { get; }` [#](#property-missingcount) 

[ChartDescriptionFacts.cs:130](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L130)

Gets the number of calendar days without data, or of map regions without a value; zero for other kinds.

 `public int ZeroCount { get; }` [#](#property-zerocount) 

[ChartDescriptionFacts.cs:136](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L136)

Gets the number of calendar days whose value is zero (days without changes, drawn neutral unless the day has a colour of its own); zero for other kinds.

 `public DateTime? FirstDate { get; }` [#](#property-firstdate) 

[ChartDescriptionFacts.cs:139](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L139)

Gets the first day of a calendar sentence.

 `public DateTime? LastDate { get; }` [#](#property-lastdate) 

[ChartDescriptionFacts.cs:142](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L142)

Gets the last day of a calendar sentence.

 `public string? MapName { get; }` [#](#property-mapname) 

[ChartDescriptionFacts.cs:145](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L145)

Gets the name of the region or tile map definition, when there is one.

 `public int GroupCount { get; }` [#](#property-groupcount) 

[ChartDescriptionFacts.cs:148](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L148)

Gets the number of groups of a topology diagram; zero for other kinds.

 `public int EdgeCount { get; }` [#](#property-edgecount) 

[ChartDescriptionFacts.cs:151](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L151)

Gets the number of edges of a topology diagram; zero for other kinds.

 `public string EnglishText { get; }` [#](#property-englishtext) 

[ChartDescriptionFacts.cs:156](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDescriptionFacts.cs#L156)

Gets the English sentence ChartForgeX writes when no formatter is set.

<!-- PowerForge markdown artifact sha256:81AC0D8D6744F76DFBC10E8BCCE0AE24D4AC7A475F0664BE64E7E4F746742510 -->
