Skip to content

Commit 4e74db1

Browse files
committed
fixed ohlc attributes (bug on master)
1 parent d727a1c commit 4e74db1

File tree

3 files changed

+1002
-3
lines changed

3 files changed

+1002
-3
lines changed

src/traces/ohlc/attributes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ module.exports = {
136136
}
137137
}),
138138

139-
tooltip: {
140-
type: 'object',
139+
tooltip: {annotationAttrs,
140+
valType: 'any',
141141
description: 'Accepts any properties typically used in annotations. This flexible structure allows for customization according to specific needs.',
142-
editType: 'plot'
142+
editType: 'calc'
143143
},
144144
tooltiptemplate: tooltiptemplateAttrs(),
145145

src/traces/ohlc/defaults.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
3030
coerce('hovertext');
3131
coerce('tickwidth');
3232

33+
coerce('tooltip');
34+
coerce('tooltiptemplate');
35+
3336
layout._requestRangeslider[traceOut.xaxis] = true;
3437

3538
coerce('zorder');

0 commit comments

Comments
 (0)