Skip to content

Commit b6822e8

Browse files
committed
describe hovertemplate variables for histogram
1 parent 70befe3 commit b6822e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/traces/histogram/attributes.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
'use strict';
1010

1111
var barAttrs = require('../bar/attributes');
12+
var hovertemplateAttrs = require('../../components/fx/hovertemplate_attributes');
1213
var makeBinAttrs = require('./bin_attributes');
1314

1415
module.exports = {
@@ -185,7 +186,9 @@ module.exports = {
185186
].join(' ')
186187
},
187188

188-
hovertemplate: barAttrs.hovertemplate,
189+
hovertemplate: hovertemplateAttrs({}, {
190+
keys: ['binNumber']
191+
}),
189192

190193
marker: barAttrs.marker,
191194

0 commit comments

Comments
 (0)