Plotting a commercial pyramid chart
A pyramid chart is the inverse of a funnel chart, but in a pyramid shape, generally used for representing a top-down hierarchical ordering of data. Since this is a part of the funnel chart module, funnel.js
is required.
The default order for data entries is that the last entry in the series data array is shown at the top of the pyramid. This can be corrected by switching the reverse
option to false. Let's take a real-life example for this exercise. The following is a picture of the Global Wealth Pyramid chart taken from the Credit Suisse Global Wealth Databook 2013:
As we can see, it looks stylish with data labels along each side as well as in the middle. Let's make an initial attempt to reproduce the chart:
title: { text: "The global wealth pyramid", align: 'left', x: 0, style: { fontSize: '13px', fontWeight: 'bold' } }, credits: { ...