Getting started:
1. Install from NuGet:
Install the NuGet package: VisNetwork.Blazor.
Install using the Package Manager in your IDE or using the command line:
dotnet add package VisNetwork.Blazor
2. Register library:
- Add the following to the relevant sections of
Program.cs.
using VisNetwork.Blazor;
builder.Services.AddVisNetwork();
- Add the following using directives to your root
_Imports.razorfile, or any other .razor file where you want to use vis-network.
@using VisNetwork.Blazor
3. Basic usage:
- Add a
Networkcomponent in your.razorfile and configure it as you need. See Sample-app for example usage.
<Network Id="my-id" Data="@data" />