From 6702713eb6a930616cc745a32c525ad9d12e2239 Mon Sep 17 00:00:00 2001 From: archmoj Date: Fri, 14 May 2021 11:46:04 -0400 Subject: [PATCH 1/2] provide info about predefined hidden modebar buttons --- src/plot_api/plot_config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plot_api/plot_config.js b/src/plot_api/plot_config.js index e79eabe8ff6..0ef57d2dc96 100644 --- a/src/plot_api/plot_config.js +++ b/src/plot_api/plot_config.js @@ -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: { From faa9cdd656b5337b64f3f4ad772d20447195fe4e Mon Sep 17 00:00:00 2001 From: Mojtaba Samimi <33888540+archmoj@users.noreply.github.com> Date: Fri, 14 May 2021 12:05:40 -0400 Subject: [PATCH 2/2] Update src/plot_api/plot_config.js Co-authored-by: Alex Johnson --- src/plot_api/plot_config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plot_api/plot_config.js b/src/plot_api/plot_config.js index 0ef57d2dc96..23968c4e0b3 100644 --- a/src/plot_api/plot_config.js +++ b/src/plot_api/plot_config.js @@ -292,8 +292,8 @@ var configAttributes = { '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.' + 'Please note that these predefined buttons will only be shown if they are compatible', + 'with all trace types used in a graph.' ].join(' ') }, modeBarButtons: {