Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document enabling predefined hidden modebar buttons via config.modeBarButtonsToAdd #5658

Merged
merged 2 commits into from
May 14, 2021
Merged
Changes from 1 commit
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
8 changes: 7 additions & 1 deletion src/plot_api/plot_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,13 @@ var configAttributes = {
dflt: [],
description: [
'Add mode bar button using config objects',
'See ./components/modebar/buttons.js for list of arguments.'
'See ./components/modebar/buttons.js for list of arguments.',
'To enable predefined modebar buttons e.g. shape drawing, hover and spikelines,',
'simply provide their string name(s). This could include:',
'*v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*,',
'*drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect* and *eraseshape*.',
'Please note that these predefined button(s) may not show up in case of being incompatible',
'with all the plot types used in a graph.'
].join(' ')
},
modeBarButtons: {
Expand Down