Skip to content
ChartForgeX
Class

VisNetworkMigration

ChartForgeX.Interactivity

Namespace
ChartForgeX.Interactivity
Assembly
ChartForgeX.Interactivity
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. 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

Methods

public static VisNetworkMigrationResult Translate(string id, string title, VisNetworkMigrationInput input) #

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.