Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1103926

Browse files
author
Joseph Damiba
committed
update hide/show modebar doc
1 parent 22c0923 commit 1103926

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

_posts/plotly_js/fundamentals/config-options/2015-09-24-config-opt-hide-modebar.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
---
2-
name: Hide the Modebar
2+
name: Never Display The Modebar
33
language: plotly_js
44
suite: configuration
55
order: 5
66
sitemap: false
77
arrangement: horizontal
8+
markdown_content: |
9+
When users hover over a figure generated with `plotly.js`, a `modebar` appears in the top-right of the figure. This presents users with several options for interacting with the figure.
10+
11+
By default, the `modebar` is only visible while the user is hovering over the chart. If you would like the `modebar` to never be visible, then set the `displayModeBar` attribute in the `config` of your figure to `false`.
812
---
913
var trace1 = {
1014
x:['Zebras', 'Lions', 'Pelicans'],

_posts/plotly_js/fundamentals/config-options/2020-01-24-display-modebar.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
2-
name: Always Display the Modebar
2+
name: Prevent The Modebar From Disappearing
33
language: plotly_js
44
suite: configuration
55
order: 4
66
sitemap: false
77
arrangement: horizontal
88
markdown_content: |
9-
When you hover over the top right of a figure generated with `plotly.js`, a bar appears which we call a `modeBar`. To display or hide this modebar set the `displayModeBar` attribute in the `config` of your figure to `true` or `false`, respectively.
9+
When users hover over a figure generated with `plotly.js`, a `modebar` appears in the top-right of the figure. This presents users with several options for interacting with the figure.
10+
11+
By default, the `modebar` is only visible while the user is hovering over the chart. If you would like the `modebar` to always be visible regardless of whether or not the user is currently hovering over the figure, set the `displayModeBar` attribute in the `config` of your figure to `true`.
1012
---
1113
var trace1 = {
1214
y:['Marc', 'Henrietta', 'Jean', 'Claude', 'Jeffrey', 'Jonathan', 'Jennifer', 'Zacharias'],

0 commit comments

Comments
 (0)