Skip to content

Commit d20d344

Browse files
authored
Merge pull request #2257 from plotly/new-text-loc
localize "new text"
2 parents 70f3f70 + d2122d9 commit d20d344

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/annotations/common_defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayo
2424
var borderWidth = coerce('borderwidth');
2525
var showArrow = coerce('showarrow');
2626

27-
coerce('text', showArrow ? ' ' : 'new text');
27+
coerce('text', showArrow ? ' ' : fullLayout._dfltTitle.annotation);
2828
coerce('textangle');
2929
Lib.coerceFont(coerce, 'font', fullLayout.font);
3030

src/plots/plots.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ plots.supplyDefaults = function(gd) {
300300
plot: _(gd, 'Click to enter Plot title'),
301301
x: _(gd, 'Click to enter X axis title'),
302302
y: _(gd, 'Click to enter Y axis title'),
303-
colorbar: _(gd, 'Click to enter Colorscale title')
303+
colorbar: _(gd, 'Click to enter Colorscale title'),
304+
annotation: _(gd, 'new text')
304305
};
305306
newFullLayout._traceWord = _(gd, 'trace');
306307

0 commit comments

Comments
 (0)