plotly.js
Version:
The open source javascript graphing library that powers plotly
39 lines (31 loc) • 1.05 kB
JavaScript
/**
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
;
module.exports = {
moduleType: 'trace',
name: 'treemap',
basePlotModule: require('./base_plot'),
categories: [],
animatable: true,
attributes: require('./attributes'),
layoutAttributes: require('./layout_attributes'),
supplyDefaults: require('./defaults'),
supplyLayoutDefaults: require('./layout_defaults'),
calc: require('./calc').calc,
crossTraceCalc: require('./calc').crossTraceCalc,
plot: require('./plot'),
style: require('./style').style,
colorbar: require('../scatter/marker_colorbar'),
meta: {
description: [
'Visualize hierarchal data from leaves (and/or outer branches) towards root',
'with rectangles. The treemap sectors are determined by the entries in',
'*labels* or *ids* and in *parents*.'
].join(' ')
}
};