Skip to content

Commit 8229e62

Browse files
committed
fix histogram 'text' description
1 parent 5522b91 commit 8229e62

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/traces/histogram/attributes.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var barAttrs = require('../bar/attributes');
1212
var hovertemplateAttrs = require('../../components/fx/hovertemplate_attributes');
1313
var makeBinAttrs = require('./bin_attributes');
1414
var constants = require('./constants');
15+
var extendFlat = require('../../lib/extend').extendFlat;
1516

1617
module.exports = {
1718
x: {
@@ -29,7 +30,14 @@ module.exports = {
2930
].join(' ')
3031
},
3132

32-
text: barAttrs.text,
33+
text: extendFlat({}, barAttrs.text, {
34+
description: [
35+
'Sets hover text elements associated with each bar.',
36+
'If a single string, the same string appears over all bars.',
37+
'If an array of string, the items are mapped in order to the',
38+
'this trace\'s coordinates.'
39+
].join(' ')
40+
}),
3341
orientation: barAttrs.orientation,
3442

3543
histfunc: {

0 commit comments

Comments
 (0)