Skip to content

Commit 00dda5b

Browse files
authored
Merge pull request #326 from plotly/docs-updates-for-3-0
Remove deprecated attributes from docs
2 parents 11d44e8 + c6dc673 commit 00dda5b

14 files changed

+98
-62
lines changed

_posts/plotly_js/basic/bar/2015-07-08-colored-and-styled-bar-chart.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232
color: 'rgb(107, 107, 107)'
3333
}},
3434
yaxis: {
35-
title: 'USD (millions)',
36-
titlefont: {
37-
size: 16,
38-
color: 'rgb(107, 107, 107)'
35+
title: {
36+
text: 'USD (millions)',
37+
font: {
38+
size: 16,
39+
color: 'rgb(107, 107, 107)'
40+
}
3941
},
4042
tickfont: {
4143
size: 14,

_posts/plotly_js/basic/dot/2015-08-11-categorical-dot-plot.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@
4848
var data = [trace1, trace2];
4949

5050
var layout = {
51-
title: 'Votes cast for ten lowest voting age population in OECD countries',
51+
title: {
52+
text: 'Votes cast for ten lowest voting age population in OECD countries',
53+
font: {
54+
color: 'rgb(204, 204, 204)'
55+
}
56+
},
5257
xaxis: {
5358
showgrid: false,
5459
showline: true,
5560
linecolor: 'rgb(102, 102, 102)',
56-
titlefont: {
57-
font: {
58-
color: 'rgb(204, 204, 204)'
59-
}
60-
},
6161
tickfont: {
6262
font: {
6363
color: 'rgb(102, 102, 102)'

_posts/plotly_js/fundamentals/axes/2015-04-09-axes-labels.html

+15-11
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@
3030
var data = [trace];
3131

3232
var layout = {
33-
title: 'Volume of Apple Shares Traded',
33+
title: {text: 'Volume of Apple Shares Traded'},
3434
xaxis: {
35-
title: 'AXIS TITLE',
36-
titlefont: {
37-
family: 'Arial, sans-serif',
38-
size: 18,
39-
color: 'lightgrey'
35+
title: {
36+
text: 'AXIS TITLE',
37+
font: {
38+
family: 'Arial, sans-serif',
39+
size: 18,
40+
color: 'lightgrey'
41+
}
4042
},
4143
showticklabels: true,
4244
tickangle: 'auto',
@@ -49,11 +51,13 @@
4951
showexponent: 'all'
5052
},
5153
yaxis: {
52-
title: 'AXIS TITLE',
53-
titlefont: {
54-
family: 'Arial, sans-serif',
55-
size: 18,
56-
color: 'lightgrey'
54+
title: {
55+
text: 'AXIS TITLE',
56+
font: {
57+
family: 'Arial, sans-serif',
58+
size: 18,
59+
color: 'lightgrey'
60+
}
5761
},
5862
showticklabels: true,
5963
tickangle: 45,

_posts/plotly_js/fundamentals/sizing/2018-10-08-automargin.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
width: 500,
2121
height: 500,
2222
yaxis: {
23-
title: 'Y-axis Title',
23+
title: {
24+
text: 'Y-axis Title',
25+
font: { size: 30 }
26+
},
2427
ticktext: ['long label','Very long label','3','label'],
2528
tickvals: [1, 2, 3, 4],
2629
tickmode: 'array',
2730
automargin: true,
28-
titlefont: { size:30 },
2931
},
3032
paper_bgcolor: '#7f7f7f',
3133
plot_bgcolor: '#c7c7c7'

_posts/plotly_js/maps/scatter-plot-on-maps/2015-07-11-canadian-cities.html

+6-7
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@
3939
}];
4040

4141
var layout = {
42-
title: 'Canadian cities',
43-
font: {
44-
family: 'Droid Serif, serif',
45-
size: 6
46-
},
47-
titlefont: {
48-
size: 16
42+
title: {
43+
text: 'Canadian cities',
44+
font: {
45+
family: 'Droid Serif, serif',
46+
size: 16
47+
}
4948
},
5049
geo: {
5150
scope: 'north america',

_posts/plotly_js/maps/scatter-plot-on-maps/2015-08-15-north-america-percipitation-map.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
size: 2,
3030
colorbar:{
3131
thickness: 10,
32-
titleside: 'right',
32+
title: {side:
33+
'right'
34+
},
3335
outlinecolor: 'rgba(68,68,68,0)',
3436
ticks: 'outside',
3537
ticklen: 3,

_posts/plotly_js/maps/scattermapbox/2017-08-01-scattermapbox_colorscale.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
size: 3,
3131
colorbar:{
3232
thickness: 10,
33-
titleside: 'right',
33+
title: {side:
34+
'right'
35+
},
3436
outlinecolor: 'rgba(68,68,68,0)',
3537
ticks: 'outside',
3638
ticklen: 3,

_posts/plotly_js/scientific/carpet-contour/2017-05-16-mulitple_contourcarpet.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
colorbar: {
5050
y: 0,
5151
yanchor: "bottom",
52-
titleside: "right",
52+
title: {side:
53+
'right'
54+
},
5355
len: 0.75,
5456
title: "Pressure coefficient, c<sub>p</sub>"
5557
},

_posts/plotly_js/scientific/contour/2015-08-12-color-bar-title.html

+7-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
[0, 0.625, 2.5, 5.625, 10]],
1515
type: 'contour',
1616
colorbar:{
17-
title: 'Color Bar Title',
18-
titleside: 'right',
19-
titlefont: {
20-
size: 14,
21-
family: 'Arial, sans-serif'
17+
title: {
18+
text: 'Color Bar Title',
19+
side: 'right',
20+
font: {
21+
size: 14,
22+
family: 'Arial, sans-serif'
23+
}
2224
}
2325
}
2426
}];

_posts/plotly_js/scientific/ternary-plots/2016-04-13-basic-ternary-plot.html

+14-8
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,19 @@
5555

5656
function makeAxis(title, tickangle) {
5757
return {
58-
title: title,
59-
titlefont: { size: 20 },
60-
tickangle: tickangle,
61-
tickfont: { size: 15 },
62-
tickcolor: 'rgba(0,0,0,0)',
63-
ticklen: 5,
64-
showline: true,
65-
showgrid: true
58+
title: {
59+
text: title,
60+
font: {
61+
size: 20
62+
}
63+
},
64+
tickangle: tickangle,
65+
tickfont: {
66+
size: 15
67+
},
68+
tickcolor: 'rgba(0,0,0,0)',
69+
ticklen: 5,
70+
showline: true,
71+
showgrid: true
6672
};
6773
}

_posts/plotly_js/statistical/error-bar/2015-04-09-error-bar-style.html

-2
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,13 @@
3131
color: '#85144B',
3232
thickness: 1.5,
3333
width: 3,
34-
opacity: 1
3534
},
3635
error_x: {
3736
type: 'constant',
3837
value: 0.2,
3938
color: '#85144B',
4039
thickness: 1.5,
4140
width: 3,
42-
opacity: 1
4341
},
4442
marker: {
4543
color: '#85144B',

_posts/plotly_js/statistical/splom/2018-05-23-diabetes.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
gridcolor:'#ffff',
3838
ticklen:2,
3939
tickfont:{size:10},
40-
titlefont:{size:12}
40+
title:{font:{size:12}}
4141
})
4242

4343
var data = [{

_posts/plotly_js/subplot/multiple-axes/2015-04-09-multiple-axes-double.html

+10-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,17 @@
2424
var data = [trace1, trace2];
2525

2626
var layout = {
27-
title: 'Double Y Axis Example',
28-
yaxis: {title: 'yaxis title'},
27+
title: {text: 'Double Y Axis Example'},
28+
yaxis: {
29+
title: {
30+
text: 'yaxis title'
31+
}
32+
},
2933
yaxis2: {
30-
title: 'yaxis2 title',
31-
titlefont: {color: 'rgb(148, 103, 189)'},
34+
title: {
35+
text: 'yaxis2 title',
36+
font: {color: 'rgb(148, 103, 189)'}
37+
},
3238
tickfont: {color: 'rgb(148, 103, 189)'},
3339
overlaying: 'y',
3440
side: 'right'

_posts/plotly_js/subplot/multiple-axes/2015-04-09-multiple-axes-multiple.html

+20-9
Original file line numberDiff line numberDiff line change
@@ -40,34 +40,45 @@
4040
var data = [trace1, trace2, trace3, trace4];
4141

4242
var layout = {
43-
title: 'multiple y-axes example',
43+
title: {
44+
text: 'multiple y-axes example',
45+
font: {color: '#1f77b4'}
46+
},
4447
width: 800,
4548
xaxis: {domain: [0.3, 0.7]},
4649
yaxis: {
47-
title: 'yaxis title',
48-
titlefont: {color: '#1f77b4'},
50+
title: {
51+
text: 'yaxis title',
52+
font: {color: '#1f77b4'}
53+
},
4954
tickfont: {color: '#1f77b4'}
5055
},
5156
yaxis2: {
52-
title: 'yaxis2 title',
53-
titlefont: {color: '#ff7f0e'},
57+
title: {
58+
text: 'yaxis2 title',
59+
font: {color: '#ff7f0e'}
60+
},
5461
tickfont: {color: '#ff7f0e'},
5562
anchor: 'free',
5663
overlaying: 'y',
5764
side: 'left',
5865
position: 0.15
5966
},
6067
yaxis3: {
61-
title: 'yaxis4 title',
62-
titlefont: {color: '#d62728'},
68+
title: {
69+
text: 'yaxis4 title',
70+
font: {color: '#d62728'}
71+
},
6372
tickfont: {color: '#d62728'},
6473
anchor: 'x',
6574
overlaying: 'y',
6675
side: 'right'
6776
},
6877
yaxis4: {
69-
title: 'yaxis5 title',
70-
titlefont: {color: '#9467bd'},
78+
title: {
79+
text: 'yaxis5 title',
80+
font: {color: '#9467bd'}
81+
},
7182
tickfont: {color: '#9467bd'},
7283
anchor: 'free',
7384
overlaying: 'y',

0 commit comments

Comments
 (0)