Your search did not match any results.
Documentation

The DevExtreme HTML5 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 widget with the algorithm option set to «dynamicHeight» and inverted option set to true.

Copy to CodePen
Apply
Reset
$(function() { $("#pyramid").dxFunnel({ dataSource: dataSource, valueField: "count", argumentField: "level", title: { text: "Team Composition", margin: 30 }, tooltip: { enabled: true }, inverted: true, algorithm: "dynamicHeight", item: { border: { visible: true } }, legend: { visible: true }, label: { visible: true, backgroundColor: "none", horizontalAlignment: "left", font: { size: 16 } }, palette: 'Harmony light', sortData: false }); });
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>DevExtreme Demo</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script>window.jQuery || document.write(decodeURIComponent('%3Cscript src="js/jquery-3.1.0.min.js"%3E%3C/script%3E'))</script> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/18.1.3/css/dx.spa.css" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/18.1.3/css/dx.common.css" /> <link rel="dx-theme" data-theme="generic.light" href="https://cdn3.devexpress.com/jslib/18.1.3/css/dx.light.css" /> <script src="https://cdn3.devexpress.com/jslib/18.1.3/js/dx.all.js"></script> <script src="data.js"></script> <link rel="stylesheet" type="text/css" href="styles.css" /> <script src="index.js"></script> </head> <body class="dx-viewport"> <div class="demo-container"> <div id="pyramid"></div> </div> </body> </html>
#pyramid { height: 440px; }
var dataSource = [{ count: 75, level: "Junior Engineer" }, { count: 95, level: "Mid-Level Engineer" }, { count: 53, level: "Senior Engineer" }, { count: 23, level: "Lead Engineer" }, { count: 18, level: "Architect" }];