VisNetwork.Blazor 2.2.0

dotnet add package VisNetwork.Blazor --version 2.2.0
NuGet\Install-Package VisNetwork.Blazor -Version 2.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VisNetwork.Blazor" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VisNetwork.Blazor --version 2.2.0
#r "nuget: VisNetwork.Blazor, 2.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install VisNetwork.Blazor as a Cake Addin
#addin nuget:?package=VisNetwork.Blazor&version=2.2.0

// Install VisNetwork.Blazor as a Cake Tool
#tool nuget:?package=VisNetwork.Blazor&version=2.2.0

License: MIT GitHub issues GitHub forks GitHub stars

NuGet Downloads (official NuGet)

VisNetwork.Blazor

Blazor component for vis.js/vis-network.

Demo

You may see a working example here

Get Started

Install the NuGet package: VisNetwork.Blazor

Install using the Package Manager in your IDE or using the command line:

dotnet add package VisNetwork.Blazor
  • Add the following using directives to your root _Imports.razor file, or any other .razor file where you want to use vis-network.
@using VisNetwork.Blazor
  • Add the following to the relevant sections of Program.cs.
using VisNetwork.Blazor;

builder.Services.AddVisNetwork();

vis-network

  • Add a Network component in your .razor file and configure it as you need. See Sample-app for example usage.
<Network Id="my-id" Data="@data" />

Providing custom options

To provide custom options the Options parameter can be used.

<Network Id="my-id" Data="@data" Options="NetworkOptions" />
private NetworkOptions NetworkOptions(Network network)
{
    return new NetworkOptions
    {
        AutoResize = true,
        Nodes = new NodeOption
        {
            BorderWidth = 1
        }
    };
}

Options can also be applied to the Network using the SetOptions API method.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.0 214 3/9/2024
2.1.0 1,047 11/18/2023
2.0.3 890 7/14/2023
2.0.2 1,377 3/4/2023
2.0.1 383 2/2/2023
2.0.0 540 12/30/2022
1.0.2 548 12/30/2022
1.0.1 2,147 12/17/2022
1.0.0 698 11/20/2022
1.0.0-preview.0 91 11/20/2022
0.0.10 625 9/13/2022
0.0.9 398 9/10/2022
0.0.8 2,118 3/2/2022
0.0.7 467 10/15/2021
0.0.6 354 10/6/2021
0.0.5 427 5/21/2021
0.0.4 549 11/25/2020
0.0.3 404 11/23/2020