This demo visualizes a ranking of world's largest companies according to Financial Times.
layoutoption to choose between rectangular and polygonal treemap layouts.
stackingoption to enable "flattened" view of the treemap. Using the
descriptionGroupMinHeightoptions to configure the size of the parent group description fragment depending on the layout.
groupLabelLayoutDecoratorto draw labels of description groups in bold font.
groupColorDecoratorto draw groups in custom colors. The color palettes are generated using palette.js.
imageDataalong with FileSaver.js and base64.js to save the visualization image as a JPEG image.
onGroupSelectionChangingevents to get information about companies being hovered on and selected, so that their details can be presented in the right-hand side panel.