Skip to content

Commit bc6652e

Browse files
committed
fixed bar attributes
1 parent b139c07 commit bc6652e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/traces/bar/attributes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ module.exports = {
220220
editType: 'style'
221221
},
222222

223-
tooltip: {
224-
type: 'object',
223+
tooltip: {annotationAttrs,
224+
valType: 'any',
225225
description: 'Accepts any properties typically used in annotations. This flexible structure allows for customization according to specific needs.',
226-
editType: 'plot'
226+
editType: 'calc'
227227
},
228228
tooltiptemplate: tooltiptemplateAttrs({}, {
229229
keys: constants.eventDataKeys

src/traces/bar/defaults.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ function supplyDefaults(traceIn, traceOut, defaultColor, layout) {
4040
coerce('hovertext');
4141
coerce('hovertemplate');
4242

43+
coerce('tooltip');
44+
coerce('tooltiptemplate');
45+
4346
var textposition = coerce('textposition');
4447
handleText(traceIn, traceOut, layout, coerce, textposition, {
4548
moduleHasSelected: true,

0 commit comments

Comments
 (0)