Skip to content

Commit b0e7fa3

Browse files
committed
fixed candlestick attributes
1 parent f65a4db commit b0e7fa3

File tree

3 files changed

+1994
-3
lines changed

3 files changed

+1994
-3
lines changed

src/traces/candlestick/attributes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ module.exports = {
5656

5757
hoverlabel: OHLCattrs.hoverlabel,
5858

59-
tooltip: {
60-
type: 'object',
59+
tooltip: {annotationAttrs,
60+
valType: 'any',
6161
description: 'Accepts any properties typically used in annotations. This flexible structure allows for customization according to specific needs.',
62-
editType: 'plot'
62+
editType: 'calc'
6363
},
6464
tooltiptemplate: tooltiptemplateAttrs(),
6565

src/traces/candlestick/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('whiskerwidth');
3232

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

0 commit comments

Comments
 (0)