Skip to content

Commit 70befe3

Browse files
committed
describe hovertemplate variables for scatter(gl)
1 parent 43a4cd9 commit 70befe3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/traces/scatter/attributes.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ module.exports = {
204204
'or text, then the default is *fills*, otherwise it is *points*.'
205205
].join(' ')
206206
},
207-
hovertemplate: hovertemplateAttrs(),
207+
hovertemplate: hovertemplateAttrs({}, {
208+
keys: ['marker.size', 'marker.color']
209+
}),
208210
line: {
209211
color: {
210212
valType: 'color',

src/traces/scattergl/attributes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ var attrs = module.exports = overrideAll({
9898
}, 'calc', 'nested');
9999

100100
attrs.x.editType = attrs.y.editType = attrs.x0.editType = attrs.y0.editType = 'calc+clearAxisTypes';
101-
attrs.hovertemplate = hovertemplateAttrs();
101+
attrs.hovertemplate = scatterAttrs.hovertemplate;

0 commit comments

Comments
 (0)