Skip to content

Commit c04ae71

Browse files
committed
fixed heatmat attributes
1 parent 40607a8 commit c04ae71

File tree

3 files changed

+8700
-7215
lines changed

3 files changed

+8700
-7215
lines changed

src/traces/heatmap/attributes.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ module.exports = extendFlat({
136136

137137
showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false}),
138138

139-
tooltip: {
140-
type: 'object',
141-
description: 'Accepts any properties typically used in annotations. This flexible structure allows for customization according to specific needs.',
142-
editType: 'plot'
139+
tooltip: {annotationAttrs,
140+
valType: 'any',
141+
description: 'Accepts any properties typically used in annotations. This flexible structure allows for customization according to specific needs.',
142+
editType: 'calc'
143143
},
144144
tooltiptemplate: extendFlat({}, tooltiptemplateAttrs(), {dflt: 'x: %{x:.4~g}<br>y: %{y:.4~g}<br>z: %{z:.4~g}'}),
145145

src/traces/heatmap/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
2929
coerce('hovertext');
3030
coerce('hovertemplate');
3131

32-
// coerce('tooltip');
32+
coerce('tooltip');
3333
coerce('tooltiptemplate');
3434

3535
handleHeatmapLabelDefaults(coerce, layout);

0 commit comments

Comments
 (0)