Skip to content

Commit 85766a6

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

8 files changed

+24
-8
lines changed

_posts/plotly_js/basic/pie/2015-08-10-donut-chart.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: 'Global Emissions 1990-2011',
31+
title: {
32+
text: 'Global Emissions 1990-2011'
33+
},
3234
annotations: [
3335
{
3436
font: {

_posts/plotly_js/basic/pointcloud/2017-06-15-advanced-pointcloud.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
}
5959
],
6060
layout: {
61-
title: 'Point Cloud - updating 1 million points in every single frame',
61+
title: {
62+
text: 'Point Cloud - updating 1 million points in every single frame'
63+
},
6264
autosize: false,
6365
width: 1000,
6466
height: 600,

_posts/plotly_js/basic/pointcloud/2017-06-15-styled-pointcloud.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
var data = [trace1, trace2,trace3];
5959

6060
var layout = {
61-
title: "Basic Point Cloud",
61+
title: {
62+
text: "Basic Point Cloud"
63+
},
6264
xaxis: {
6365
type: "linear",
6466
range: [

_posts/plotly_js/basic/sankey/2017-05-22-add_links.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
var data = [data]
4242

4343
var layout = {
44-
title: "Energy forecast for 2050<br>Source: Department of Energy & Climate Change, Tom Counsell via <a href='https://bost.ocks.org/mike/sankey/'>Mike Bostock</a>",
44+
title: {
45+
text: "Energy forecast for 2050<br>Source: Department of Energy & Climate Change, Tom Counsell via <a href='https://bost.ocks.org/mike/sankey/'>Mike Bostock</a>"
46+
},
4547
width: 1118,
4648
height: 772,
4749
font: {

_posts/plotly_js/basic/sankey/2017-05-22-add_nodes.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
var data = [data]
3636

3737
var layout = {
38-
title: "Energy forecast for 2050<br>Source: Department of Energy & Climate Change, Tom Counsell via <a href='https://bost.ocks.org/mike/sankey/'>Mike Bostock</a>",
38+
title: {
39+
text: "Energy forecast for 2050<br>Source: Department of Energy & Climate Change, Tom Counsell via <a href='https://bost.ocks.org/mike/sankey/'>Mike Bostock</a>"
40+
},
3941
width: 1118,
4042
height: 772,
4143
font: {

_posts/plotly_js/basic/sankey/2017-05-22-basic.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
var data = [data]
2323

2424
var layout = {
25-
title: "Energy forecast for 2050<br>Source: Department of Energy & Climate Change, Tom Counsell via <a href='https://bost.ocks.org/mike/sankey/'>Mike Bostock</a>",
25+
title: {
26+
text: "Energy forecast for 2050<br>Source: Department of Energy & Climate Change, Tom Counsell via <a href='https://bost.ocks.org/mike/sankey/'>Mike Bostock</a>"
27+
},
2628
width: 1118,
2729
height: 772,
2830
font: {

_posts/plotly_js/basic/sankey/2017-05-22-style_sankey.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
var data = [data]
4141

4242
var layout = {
43-
title: "Energy forecast for 2050<br>Source: Department of Energy & Climate Change, Tom Counsell via <a href='https://bost.ocks.org/mike/sankey/'>Mike Bostock</a>",
43+
title: {
44+
text: "Energy forecast for 2050<br>Source: Department of Energy & Climate Change, Tom Counsell via <a href='https://bost.ocks.org/mike/sankey/'>Mike Bostock</a>"
45+
},
4446
width: 1118,
4547
height: 772,
4648
font: {

_posts/plotly_js/basic/sankey/2018-03-13-basic-example.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
var data = [data]
3333

3434
var layout = {
35-
title: "Basic Sankey",
35+
title: {
36+
text: "Basic Sankey"
37+
},
3638
font: {
3739
size: 10
3840
}

0 commit comments

Comments
 (0)