# HtmlChartDataAssets

The scripts for chart width sets that carry data (HtmlWidthSetOptions): the reader, which only adds CfxEnhance.data, and the hover runtime, which adds…

 Class  

`ChartForgeX.Interactivity.Html`

**Namespace**

`ChartForgeX.Interactivity.Html`

**Assembly**

`ChartForgeX.Interactivity.Html`

**Source**

[HtmlChartDataAssets.cs:45](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDataAssets.cs#L45)

**Modifiers**

static

The scripts for chart width sets that carry data ([HtmlWidthSetOptions](/api/chartforgex-html-htmlwidthsetoptions/)): the reader, which only adds CfxEnhance.data, and the hover runtime, which adds CfxEnhance.mount. Both are fixed texts; nothing is written per chart.

## Inheritance

- object
- HtmlChartDataAssets

## Remarks

A page that only builds tables loads [HtmlChartDataAssets.ReaderScriptFile](/api/chartforgex-interactivity-html-htmlchartdataassets/). A page with hover values loads [HtmlChartDataAssets.Files](/api/chartforgex-interactivity-html-htmlchartdataassets/). The enhance runtime ([HtmlEnhanceAssets](/api/chartforgex-interactivity-html-htmlenhanceassets/)) isn't needed, and all of them can be on one page in any order. See docs/enhance.md.

 Filter members   

    Show inherited   

 

## Methods

 `public static IReadOnlyList<HtmlAssetFile> Files(bool hover = true)` [#](#method-files-boolean) 

[HtmlChartDataAssets.cs:45](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDataAssets.cs#L45)

Returns the files a bundle writes with [HtmlInteractiveAssetFiles.WriteTo](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/), in load order.

Parameters

**hover bool = true optional**

Whether the pages also show hover values.

Returns

 `IReadOnlyList<HtmlAssetFile>` The reader, or the stylesheet, the reader and the hover script. 

 `public static string InlineMarkup(string? nonce = null, bool hover = true)` [#](#method-inlinemarkup-string-boolean) 

[HtmlChartDataAssets.cs:52](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDataAssets.cs#L52)

Returns the inline elements. Emit them once per document.

Parameters

**nonce string? = null optional**

An optional CSP nonce for every element.

**hover bool = true optional**

Whether the page also shows hover values.

Returns

 `string` HTML markup. 

 `public static string ReferenceMarkup(HtmlAssetReferences assets, string? nonce = null, bool hover = true)` [#](#method-referencemarkup-chartforgex-interactivity-html-htmlassetreferences-string-boolean) 

[HtmlChartDataAssets.cs:63](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDataAssets.cs#L63)

Returns the elements that reference the shared files.

Parameters

**assets ChartForgeX.Interactivity.Html.HtmlAssetReferences required**

Where the bundle's asset files are served from.

**nonce string? = null optional**

An optional CSP nonce for the script elements.

**hover bool = true optional**

Whether the page also shows hover values.

Returns

 `string` HTML markup. 

## 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 static string ReaderScript { get; }` [#](#property-readerscript) 

[HtmlChartDataAssets.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDataAssets.cs#L24)

Gets the reader script, which adds CfxEnhance.data(element).

 `public static string HoverScript { get; }` [#](#property-hoverscript) 

[HtmlChartDataAssets.cs:27](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDataAssets.cs#L27)

Gets the hover script, which adds CfxEnhance.mount(scope) and CfxEnhance.unmount(scope). It also needs the reader.

 `public static string HoverStyleSheet { get; }` [#](#property-hoverstylesheet) 

[HtmlChartDataAssets.cs:30](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDataAssets.cs#L30)

Gets the hover stylesheet. The reader needs none.

 `public static HtmlAssetFile ReaderScriptFile { get; }` [#](#property-readerscriptfile) 

[HtmlChartDataAssets.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDataAssets.cs#L33)

Gets the reader script as a content-addressed shared file.

 `public static HtmlAssetFile HoverScriptFile { get; }` [#](#property-hoverscriptfile) 

[HtmlChartDataAssets.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDataAssets.cs#L36)

Gets the hover script as a content-addressed shared file.

 `public static HtmlAssetFile HoverStyleSheetFile { get; }` [#](#property-hoverstylesheetfile) 

[HtmlChartDataAssets.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDataAssets.cs#L39)

Gets the hover stylesheet as a content-addressed shared file.

<!-- PowerForge markdown artifact sha256:6470733E87ABA78C524CD447A3B4BB6A740E2AB6D739BDE680506C74122BF436 -->
