Your search did not match any results.
Diagram

Node and Edge Arrays

Note that the Diagram widget is in the community technology preview (CTP) development stage.

This demo shows the Diagram widget's capability to load an external tree or a graph structure from two data sources: an array of shapes and an array of shape connectors. The connector is specified by the shape's ID attributes. The Diagram transforms information from the data sources into a tree layout view.

The layout option specifies an auto-layout algorithm (using a sugiyama or tree layout) that the widget uses to build a diagram.

jQuery

ASP.NET Core

<link rel="stylesheet" type="text/css" href="https://unpkg.com/devexpress-diagram@0.0.21/dx.diagram.css" /> <script type="text/javascript"> $(function () { $("#diagram").dxDiagram({ nodes: { dataSource: orgItems }, edges: { dataSource: orgLinks }, layout: "tree" }); }); </script> <div id="diagram"></div> <script src="~/data/orgItems.js"></script> <script src="https://unpkg.com/devexpress-diagram@0.0.21/dx.diagram.js"></script>
using Microsoft.AspNetCore.Mvc; namespace DevExtreme.NETCore.Demos.Controllers { public class DiagramController : Controller { public IActionResult NodesAndEdgesArrays() { return View(); } } }