Skip to content

Commit bf38db8

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

File tree

42 files changed

+48
-48
lines changed

Some content is hidden

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

42 files changed

+48
-48
lines changed

_posts/plotly_js/basic/area/2015-04-09-stacked-area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
{x: [1,2,3], y: [3,0,2], stackgroup: 'one'}
1414
];
1515

16-
Plotly.newPlot('myDiv', traces, {title: 'stacked and filled line chart'});
16+
Plotly.newPlot('myDiv', traces, {title: {text: 'stacked and filled line chart'}});

_posts/plotly_js/basic/area/2018-09-18-normalized-stacked-area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
{x: [1,2,3], y: [3,0,2], stackgroup: 'one'}
1414
];
1515

16-
Plotly.newPlot('myDiv', traces, {title: 'Normalized stacked and filled line chart'});
16+
Plotly.newPlot('myDiv', traces, {title: {text: 'Normalized stacked and filled line chart'}});
1717

_posts/plotly_js/basic/line-plots/2015-08-07-adding-names-to-line-and-scatter-plot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
var data = [ trace1, trace2, trace3 ];
3232

3333
var layout = {
34-
title:'Adding Names to Line and Scatter Plot'
34+
title: {text: 'Adding Names to Line and Scatter Plot'}
3535
};
3636

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

_posts/plotly_js/basic/line-plots/2015-08-07-line-and-scatter-plot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
var data = [ trace1, trace2, trace3 ];
2929

3030
var layout = {
31-
title:'Line and Scatter Plot'
31+
title: {text: 'Line and Scatter Plot'}
3232
};
3333

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

_posts/plotly_js/basic/line_and_scatter/2015-08-10-data-label-hover.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
yaxis: {
3636
range: [0, 8]
3737
},
38-
title:'Data Labels Hover'
38+
title: {text: 'Data Labels Hover'}
3939
};
4040

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

_posts/plotly_js/basic/line_and_scatter/2015-08-11-data-label-on-the-plot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
color: 'grey',
5353
}
5454
},
55-
title:'Data Labels on the Plot'
55+
title: {text: 'Data Labels on the Plot'}
5656
};
5757

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

_posts/plotly_js/chart-events/callbacks-click/2015-04-09-click-annotation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
data = [ trace1, trace2, trace3 ],
2121
layout = {
2222
hovermode:'closest',
23-
title:'Click on Points to add an Annotation on it'
23+
title: {text: 'Click on Points to add an Annotation on it'}
2424
};
2525

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

_posts/plotly_js/chart-events/callbacks-click/2015-04-09-click.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
mode:'markers', marker:{size:16} } ],
1616
layout = {
1717
hovermode:'closest',
18-
title:'Click on Points'
18+
title: {text: 'Click on Points'}
1919
};
2020

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

_posts/plotly_js/chart-events/callbacks-hover/2015-04-09-hover-bind.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
mode:'markers', marker:{size:16} } ];
2020
layout = {
2121
hovermode:'closest',
22-
title:'Hover on Points'
22+
title: {text: 'Hover on Points'}
2323
};
2424

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

_posts/plotly_js/chart-events/callbacks-hover/2015-04-09-hover-manual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
mode:'markers', marker:{size:16} } ];
2020
layout = {
2121
hovermode:'closest',
22-
title:'Click "Go" button to trigger hover'
22+
title: {text: 'Click "Go" button to trigger hover'}
2323
};
2424

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

0 commit comments

Comments
 (0)