Your search did not match any results.

Charts - Pyramid Chart

The DevExtreme JavaScript Pyramid Chart is often used to visualize an organizational structure. In this demo, the pyramid displays a team’s composition, reflecting both subordination and strength. In code, the pyramid is created using the Funnel component with the algorithm property set to «dynamicHeight» and inverted property set to true.

Backend API
<div id="pyramid-demo"> @(Html.DevExtreme().Funnel() .ID("pyramid") .Palette(VizPalette.HarmonyLight) .ValueField("Count") .ArgumentField("Level") .Legend(l => l .Visible(true) ) .Title(t => t .Text("Team Composition") .Margin(m => m.Bottom(30)) ) .Tooltip(t => t .Enabled(true) ) .Inverted(true) .Algorithm(FunnelAlgorithm.DynamicHeight) .Item(i => i .Border(b => b .Visible(true) ) ) .Label(l => l .Visible(true) .HorizontalAlignment(HorizontalEdge.Left) .BackgroundColor("none") .Font(f => f .Size(16) ) ) .SortData(false) .DataSource(new[] { new { Level = "Junior Engineer", Count = 75 }, new { Level = "Mid-Level Engineer", Count = 95 }, new { Level = "Senior Engineer", Count = 53 }, new { Level = "Lead Engineer", Count = 23 }, new { Level = "Architect", Count = 18 } }) ) </div>
using DevExtreme.AspNet.Data; using DevExtreme.AspNet.Mvc; using DevExtreme.MVC.Demos.Models.SampleData; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; namespace DevExtreme.MVC.Demos.Controllers { public class ChartsController : Controller { public ActionResult PyramidChart() { return View(); } } }
#pyramid { height: 440px; }