8000 unified hover: default to spikemode "dot" for spikeline · Franciraldo/plotly.js@419db44 · GitHub
[go: up one dir, main page]

Skip to content

Commit 419db44

Browse files
committed
unified hover: default to spikemode "dot" for spikeline
1 parent f4b95c6 commit 419db44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/layout_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {
253253
var unifiedSpike = unifiedHover && axLetter === layoutIn.hovermode.charAt(0);
254254
var spikecolor = coerce2('spikecolor');
255255
var spikethickness = coerce2('spikethickness', unifiedHover ? 1 : undefined);
256-
var spikedash = coerce2('spikedash');
256+
var spikedash = coerce2('spikedash', unifiedHover ? 'dot' : undefined);
257257
var spikemode = coerce2('spikemode', unifiedHover ? 'across' : undefined);
258258
var spikesnap = coerce2('spikesnap');
259259
var showSpikes = coerce('showspikes', unifiedSpike || !!spikecolor || !!spikethickness || !!spikedash || !!spikemode || !!spikesnap);

0 commit comments

Comments
 (0)
0