Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions draftlogs/7981_change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Correct the `showspikes` axis attribute description: spikes are not limited to *closest* hovermode, they also render in *x*, *y*, and unified hovermodes [[#7981](https://github.com/plotly/plotly.js/pull/7981)]
4 changes: 3 additions & 1 deletion src/plots/cartesian/layout_attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,9 @@ module.exports = {
editType: 'modebar',
description: [
'Determines whether or not spikes (aka droplines) are drawn for this axis.',
'Note: This only takes affect when hovermode = closest'
'In *closest* hovermode, spikes are only drawn when hovering near a data point.',
'In *x*, *y*, *x unified*, and *y unified* hovermodes, spikes are also',
'drawn at the current cursor position on the axis.'
].join(' ')
},
spikecolor: {
Expand Down
4 changes: 2 additions & 2 deletions test/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14562,7 +14562,7 @@
"valType": "boolean"
},
"showspikes": {
"description": "Determines whether or not spikes (aka droplines) are drawn for this axis. Note: This only takes affect when hovermode = closest",
"description": "Determines whether or not spikes (aka droplines) are drawn for this axis. In *closest* hovermode, spikes are only drawn when hovering near a data point. In *x*, *y*, *x unified*, and *y unified* hovermodes, spikes are also drawn at the current cursor position on the axis.",
"dflt": false,
"editType": "modebar",
"valType": "boolean"
Expand Down Expand Up @@ -15841,7 +15841,7 @@
"valType": "boolean"
},
"showspikes": {
"description": "Determines whether or not spikes (aka droplines) are drawn for this axis. Note: This only takes affect when hovermode = closest",
"description": "Determines whether or not spikes (aka droplines) are drawn for this axis. In *closest* hovermode, spikes are only drawn when hovering near a data point. In *x*, *y*, *x unified*, and *y unified* hovermodes, spikes are also drawn at the current cursor position on the axis.",
"dflt": false,
"editType": "modebar",
"valType": "boolean"
Expand Down
Loading