Your search did not match any results.

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.



<script type="text/javascript"> $(function () { $("#diagram").dxDiagram({ nodes: { dataSource: new{ key: "this", data: orgItems, paginate: false }) }, edges: { dataSource: new{ key: "this", data: orgLinks, paginate: false }) }, layout: "tree" }); }); </script> <div id="diagram"></div> <script src="~/data/orgItems.js"></script>
using Microsoft.AspNetCore.Mvc; namespace DevExtreme.NETCore.Demos.Controllers { public class DiagramController : Controller { public IActionResult NodesAndEdgesArrays() { return View(); } } }
#diagram { height: 500px; }