# VisNetworkMigration

Translates a vis-network document (the nodes, edges and options JSON that HtmlForgeX 2.x and other vis-network hosts emit, plus their clustering calls)…

 Class  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Source**

[VisNetworkMigration.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/VisNetworkMigration.cs#L22)

**Modifiers**

static

Translates a vis-network document (the nodes, edges and options JSON that HtmlForgeX 2.x and other vis-network hosts emit, plus their clustering calls) into a [GraphScene](/api/chartforgex-interactivity-graphscene/). Every option it reads gets a diagnostic saying whether it was mapped, approximated, not needed or unsupported, so a migration never drops a setting silently.

## Inheritance

- object
- VisNetworkMigration

 Filter members   

    Show inherited   

 

## Methods

 `public static VisNetworkMigrationResult Translate(string id, string title, VisNetworkMigrationInput input)` [#](#method-translate-string-string-chartforgex-interactivity-visnetworkmigrationinput) 

[VisNetworkMigration.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/VisNetworkMigration.cs#L22)

Translates a vis-network document into a graph scene.

Parameters

**id string required**

The scene id.

**title string required**

The scene title.

**input ChartForgeX.Interactivity.VisNetworkMigrationInput required**

The vis-network JSON and clustering calls.

Returns

 `VisNetworkMigrationResult` The scene and diagnostics grouped by option path, outcome and message. 

Exceptions

- `FormatException` – A JSON document is not valid JSON, for example because it holds a JavaScript function.

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

<!-- PowerForge markdown artifact sha256:71FA2C6EA1CA072DC260577488D29BB5D7B484FEEC82AF6265E9CF39E9A4866F -->
