Skip to content

Commit d77e39e

Browse files
author
Joseph Damiba
authored
Merge pull request #1668 from plotly/update-modebar
update modebar docs
2 parents 3b8c0d1 + 3b876d7 commit d77e39e

17 files changed

+118
-76
lines changed

_posts/plotly_js/fundamentals/config-options/2015-09-24-config-locale.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
name: Change the Default Locale
3-
plot_url: https://codepen.io/plotly/embed/rqrgEQ/?height=600&theme-id=15263&default-tab=result
43
language: plotly_js
54
suite: configuration
65
order: 7.5
@@ -36,5 +35,4 @@
3635

3736
var config = {locale: 'fr'};
3837

39-
Plotly.newPlot('myDiv', data, layout, config);
40-
38+
Plotly.newPlot('myDiv', data, layout, config);

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

Lines changed: 0 additions & 24 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
name: Hide the Plotly Logo on the Modebar
3-
plot_url: https://codepen.io/plotly/embed/EVgeWb/?height=450&theme-id=15263&default-tab=result
43
language: plotly_js
54
suite: configuration
65
order: 8

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
2-
name: Hide the Modebar
3-
plot_url: https://codepen.io/plotly/embed/YyGOLg/?height=450&theme-id=15263&default-tab=result
2+
name: Never Display The Modebar
43
language: plotly_js
54
suite: configuration
65
order: 5
76
sitemap: false
87
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`.
912
---
1013
var trace1 = {
1114
x:['Zebras', 'Lions', 'Pelicans'],
Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
---
2-
name: Modify the "Edit Chart" Link Text
3-
plot_url: https://codepen.io/plotly/embed/WQGgbe/?height=600&theme-id=15263&default-tab=result
2+
name: Customize The `Edit Chart` Link Text
43
language: plotly_js
54
suite: configuration
65
order: 7
76
sitemap: false
87
arrangement: horizontal
98
---
10-
var trace1 = {
11-
z: [[0, 1, 2, 3, 4, 5, 6], [1, 9, 4, 7, 5, 2, 4], [2, 4, 2, 1, 6, 9, 3]],
12-
type: 'heatmap'
13-
};
9+
var data = [{
10+
z: [[0, 1, 2, 3, 4, 5, 6],
11+
[1, 9, 4, 7, 5, 2, 4],
12+
[2, 4, 2, 1, 6, 9, 3]],
13+
type: 'heatmap'}]
1414

15-
var data = [trace1];
16-
17-
var layout = {
18-
title: 'Change the Link Text'
19-
};
20-
21-
Plotly.newPlot('myDiv', data, layout, {linkText: 'Change this text'});
15+
var layout = {title: 'Customize The Edit Chart Link Text'}
16+
Plotly.newPlot('myDiv', data, layout, {showLink: true, linkText: 'This text is custom!'})

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
name: Scroll and Zoom
3-
plot_url: https://codepen.io/plotly/embed/QjKZbg/?height=450&theme-id=15263&default-tab=result
43
language: plotly_js
54
suite: configuration
65
order: 1

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
2-
name: Display the "Edit Chart" Link
3-
plot_url: https://codepen.io/plotly/embed/epdjem/?height=600&theme-id=15263&default-tab=result
2+
name: Display the `Edit Chart` Link
43
language: plotly_js
54
suite: configuration
65
order: 6
@@ -18,7 +17,9 @@
1817
};
1918

2019
var data = [trace1];
20+
2121
var layout = {
2222
title: 'Display the Edit Chart Link'
2323
};
24+
2425
Plotly.newPlot('myDiv', data, layout, {showLink: true});

_posts/plotly_js/fundamentals/config-options/2015-09-24-config-opt-static-plot.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
name: Making a Static Chart
3-
plot_url: https://codepen.io/plotly/embed/YyGjda/?height=450&theme-id=15263&default-tab=result
43
language: plotly_js
54
suite: configuration
65
order: 3

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
name: Customize Download Plot Options
3-
plot_url: https://codepen.io/plotly/embed/MZjYRB/?height=450&theme-id=15263&default-tab=result
43
language: plotly_js
54
suite: configuration
65
order: 3.1

_posts/plotly_js/fundamentals/config-options/2015-09-24-config-showSendToCloud.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
name: Display Edit in Chart Studio Button
3-
plot_url: https://codepen.io/plotly/embed/aPpzzw/?height=600&theme-id=15263&default-tab=result
43
language: plotly_js
54
suite: configuration
65
order: 7.1

0 commit comments

Comments
 (0)