We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Overview

JavaScript pyramid chart is the form of a triangle with lines dividing it into sections, each section with a different width. Depending on the Y coordinates, this width indicates a level of hierarchy among other categories.


Data label

Show the detail about the data points with the help of data label support. Can place the label inside and outside of the chart. Use the connector line to connect the outside label with charts


Point explode

Data points can be exploded on rendering and on mouse click.


Grouped points

Group the points in a pyramid chart based on certain conditions. The grouped slices can be split into individual points by clicking the slice.


Customization

Customize the look and feel of the pyramid chart using built-in APIs.


Code snippet

import { AccumulationChart, PyramidSeries} from '@syncfusion/ej2-charts';
Chart.Inject(AccumulationChart, PyramidSeries);

let chart: AccumulationChart = new AccumulationChart({
    series:[AccumulationChart = new AccumulationChart({
    series: [{
        type: 'Pyramid',
        dataSource: [
            { x: 'United States', y: 45, text: 'USA', fill: '#00226C' },
            { x: 'Australia', y: 53, text: 'AUS', fill: '#0450C2' },
            { x: 'China', y: 56, text: 'CHN', fill: '#0073DC' },
            { x: 'India', y: 61, text: 'IND', fill: '#0D98FF' },
            { x: 'Japan', y: 13, text: 'JPN', fill: '#9CD9FF' },
            { x: 'United Kingdom', y: 71, text: 'UK', fill: '#0450C2' }
        ],
        xName: 'x', yName: 'y'
    }
],
}, '#Chart');
<!DOCTYPE html>
<html>

<head></head>

<body style = 'overflow: hidden'> 
    <div id="container">
     <div id="Chart"></div>
    </div>

    <style>
        
        #control-container {
            padding: 0px !important;
        }
    </style>
</body>

</html>

Learning Resources

UG

Pyramid Chart User Guide

Learn the available options to customize JavaScript funnel chart.

API

Pyramid Chart API Reference

Explore the JavaScript Pyramid chart APIs.


50+ JAVASCRIPT UI CONTROLS

Scroll up icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon