Skip to content

Variable: treemap ​

ts
const treemap: ExpressFunction<HierarchyOptions>;

A treemap (px.treemap): one treemap trace of nested rectangles, with the options of sunburst.

Example ​

ts
const figure = treemap(rows, { path: ['continent', 'country'], values: 'pop', color: 'continent' });

Released under the MIT License.