plotly.js
Version:
The open source javascript graphing library that powers plotly
40 lines (37 loc) • 1.37 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 = {
treemapcolorway: {
valType: 'colorlist',
role: 'style',
editType: 'calc',
description: [
'Sets the default treemap slice colors. Defaults to the main',
'`colorway` used for trace colors. If you specify a new',
'list here it can still be extended with lighter and darker',
'colors, see `extendtreemapcolors`.'
].join(' ')
},
extendtreemapcolors: {
valType: 'boolean',
dflt: true,
role: 'style',
editType: 'calc',
description: [
'If `true`, the treemap slice colors (whether given by `treemapcolorway` or',
'inherited from `colorway`) will be extended to three times its',
'original length by first repeating every color 20% lighter then',
'each color 20% darker. This is intended to reduce the likelihood',
'of reusing the same color when you have many slices, but you can',
'set `false` to disable.',
'Colors provided in the trace, using `marker.colors`, are never',
'extended.'
].join(' ')
}
};