Skip to content

Commit 0e144b6

Browse files
committed
Transition gl2d plot type to new title attr structure [882]
1 parent ddf9c0b commit 0e144b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/plots/gl2d/convert.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ proto.merge = function(options) {
113113
// '_name' is e.g. xaxis, xaxis2, yaxis, yaxis4 ...
114114
ax = options[this.scene[axisName]._name];
115115

116-
axTitle = ax.title === this.scene.fullLayout._dfltTitle[axisLetter] ? '' : ax.title;
116+
axTitle = ax.title.text === this.scene.fullLayout._dfltTitle[axisLetter] ? '' : ax.title.text;
117117

118118
for(j = 0; j <= 2; j += 2) {
119119
this.labelEnable[i + j] = false;
120120
this.labels[i + j] = axTitle;
121-
this.labelColor[i + j] = str2RGBArray(ax.titlefont.color);
122-
this.labelFont[i + j] = ax.titlefont.family;
123-
this.labelSize[i + j] = ax.titlefont.size;
121+
this.labelColor[i + j] = str2RGBArray(ax.title.font.color);
122+
this.labelFont[i + j] = ax.title.font.family;
123+
this.labelSize[i + j] = ax.title.font.size;
124124
this.labelPad[i + j] = this.getLabelPad(axisName, ax);
125125

126126
this.tickEnable[i + j] = false;
@@ -208,7 +208,7 @@ proto.hasAxisInAltrPos = function(axisName, ax) {
208208

209209
proto.getLabelPad = function(axisName, ax) {
210210
var offsetBase = 1.5,
211-
fontSize = ax.titlefont.size,
211+
fontSize = ax.title.font.size,
212212
showticklabels = ax.showticklabels;
213213

214214
if(axisName === 'xaxis') {

0 commit comments

Comments
 (0)