Skip to content

Commit 1b6bd01

Browse files
committed
update examples to use title.text
1 parent 85766a6 commit 1b6bd01

File tree

81 files changed

+531
-275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+531
-275
lines changed

_posts/plotly_js/basic/sankey/2024-01-05-align-example.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
var data = [data];
2828

2929
var layout = {
30-
title: "Align Nodes (Right)",
30+
title: {
31+
text: "Align Nodes (Right)"
32+
},
3133
font: {
3234
size: 10,
3335
},

_posts/plotly_js/basic/table/2017-11-01-from-a-csv.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
}]
5353

5454
var layout = {
55-
title: "Bitcoin mining stats for 180 days"
55+
title: {
56+
text: "Bitcoin mining stats for 180 days"
57+
}
5658
}
5759

5860
Plotly.newPlot('myDiv', data, layout);

_posts/plotly_js/chart-events/events/2017-01-01-order6_selected_event.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
name: 'y coord dist.',
5151
marker: {color: colorY}
5252
}], {
53-
title: 'Lasso around the scatter points to see sub-distributions',
53+
title: {
54+
text: 'Lasso around the scatter points to see sub-distributions'
55+
},
5456
dragmode: 'lasso',
5557
xaxis: {
5658
zeroline: false,

_posts/plotly_js/chart-events/hover/2019-05-15-advanced-hovertemplate.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,23 @@
4444
}
4545
],
4646
layout: {
47-
title: "Higher Risk of Job Automation in Lower Paying Jobs",
47+
title: {
48+
text: "Higher Risk of Job Automation in Lower Paying Jobs"
49+
},
4850
hovermode: "closest",
4951
hoverlabel: { bgcolor: "#FFF" },
50-
legend: {orientation: 'h', y: -0.3},
52+
legend: { orientation: 'h', y: -0.3 },
5153
xaxis: {
5254
tickformat: ".0%",
53-
title: "Automation Probability",
55+
title: {
56+
text: "Automation Probability"
57+
},
5458
zeroline: false
5559
},
5660
yaxis: {
57-
title: "Income",
61+
title: {
62+
text: "Income"
63+
},
5864
zeroline: false
5965
}
6066
},

_posts/plotly_js/chart-events/hover/2019-05-15-basic-hovertemplate.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
];
2929

3030
var layout = {
31-
title: "Set hover text with hovertemplate",
31+
title: {
32+
text: "Set hover text with hovertemplate"
33+
},
3234
};
3335

3436
Plotly.newPlot('myDiv', data, layout);

_posts/plotly_js/chart-events/zoom-disable/2015-12-12-zoom-unbind-both-axis.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@
3232
}];
3333

3434
var layout = {
35-
title: 'Plotting CSV data from AJAX call',
35+
title: {
36+
text: 'Plotting CSV data from AJAX call'
37+
},
3638
yaxis: {fixedrange: true},
37-
xaxis : {fixedrange: true}
39+
xaxis: {fixedrange: true}
3840
};
3941

4042
Plotly.newPlot('myDiv', traces, layout);

_posts/plotly_js/chart-events/zoom-disable/2015-12-12-zoom-unbind-x-axis.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@
3434
}];
3535

3636
var layout = {
37-
title: 'Plotting CSV data from AJAX call',
38-
xaxis: {fixedrange: true}
37+
title: {
38+
text: 'Plotting CSV data from AJAX call'
39+
},
40+
xaxis: {
41+
fixedrange: true
42+
}
3943
};
4044

4145
Plotly.newPlot('myDiv', traces, layout);

_posts/plotly_js/controls/callbacks-buttons/2018-10-16-button-update.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,11 @@
141141
]
142142

143143
var layout = {
144-
title: 'Yahoo',
145-
updatemenus: updatemenus,
146-
showlegend: false
144+
title: {
145+
text: 'Yahoo'
146+
},
147+
updatemenus: updatemenus,
148+
showlegend: false
147149
}
148150

149151

_posts/plotly_js/controls/lasso/2016-01-27-lasso-selection.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
name: 'y coord dist.',
4949
marker: {color: colorY}
5050
}], {
51-
title: 'Lasso around the scatter points to see sub-distributions',
51+
title: {
52+
text: 'Lasso around the scatter points to see sub-distributions'
53+
},
5254
dragmode: 'lasso',
5355
xaxis: {
5456
zeroline: false,

_posts/plotly_js/controls/range-slider/2016-04-04-range-slider-time-series.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343

4444
var data = prepData(rawData);
4545
var layout = {
46-
title: 'Time series with range slider and selectors',
46+
title: {
47+
text: 'Time series with range slider and selectors'
48+
},
4749
xaxis: {
4850
rangeselector: selectorOptions,
4951
rangeslider: {}

0 commit comments

Comments
 (0)