DevExtreme v26.1 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Your search did not match any results.

Vue Charts - Pyramid Chart

DevExtreme Funnel can display data/information as a pyramid chart. To generate pyramid visualizations, set the algorithm property to "dynamicHeight" and invert the Funnel.

Backend API
<template> <DxFunnel id="pyramid" :data-source="dataSource" :sort-data="false" :inverted="true" algorithm="dynamicHeight" palette="Harmony Light" argument-field="level" value-field="count" > <DxTitle text="Team Composition"> <DxMargin :bottom="30"/> </DxTitle> <DxTooltip :enabled="true"/> <DxItem> <DxBorder :visible="true"/> </DxItem> <DxLegend :visible="true"/> <DxLabel :visible="true" horizontal-alignment="left" background-color="none" > <DxFont :size="16"/> </DxLabel> </DxFunnel> </template> <script setup lang="ts"> import DxFunnel, { DxTitle, DxMargin, DxTooltip, DxItem, DxBorder, DxLegend, DxLabel, DxFont, } from 'devextreme-vue/funnel'; import { dataSource } from './data.ts'; </script> <style> #pyramid { height: 440px; } </style>
export const 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' }, ];
import { createApp } from 'vue'; import App from './App.vue'; createApp(App).mount('#app');
<!DOCTYPE html> <html lang="en"> <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=5.0" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/26.1.5/css/dx.light.css" /> <link rel="stylesheet" type="text/css" href="./bundle.css" /> </head> <body class="dx-viewport"> <div class="demo-container"> <div id="app"> </div> </div> <script src="bundles/vendor/vue.vendor.js"></script> <script src="./bundle.js"></script> </body> </html>

This demo configures the following objects:

  • title
    Specifies component title.
  • tooltip
    Specifies item tooltips.
  • item
    Customizes item appearance.
  • legend
    Configures the component legend.
  • label
    Configures item labels.