Skip to content

Commit 373ff66

Browse files
committed
fixed contour defaults
1 parent 0ac20bd commit 373ff66

File tree

3 files changed

+10430
-1
lines changed

3 files changed

+10430
-1
lines changed

src/traces/contour/defaults.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
3535
coerce('hoverongaps');
3636
coerce('hovertemplate');
3737

38+
coerce('tooltip');
39+
coerce('tooltiptemplate');
40+
3841
var isConstraint = (coerce('contours.type') === 'constraint');
3942
coerce('connectgaps', Lib.isArray1D(traceOut.z));
4043

test/image/mocks/tooltip_tooltiptemplate_heatmap.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type":"heatmap",
77
"colorscale":"Viridis",
88
"tooltip":{"bgcolor":"rgba(255, 255, 255, 0.2)"},
9-
"tooltiptemplate": "x: %{x}<br>y: %{y}<br>amplitude: %{x}"
9+
"tooltiptemplate": "x: %{x}<br>y: %{y}<br>amplitude: %{z}"
1010
}
1111
],
1212
"config": {

0 commit comments

Comments
 (0)