Skip to content

Commit

Permalink
localize "new text"
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcjohnson committed Jan 17, 2018
1 parent 70f3f70 commit d2122d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/annotations/common_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayo
var borderWidth = coerce('borderwidth');
var showArrow = coerce('showarrow');

coerce('text', showArrow ? ' ' : 'new text');
coerce('text', showArrow ? ' ' : fullLayout._dfltTitle.annotation);
coerce('textangle');
Lib.coerceFont(coerce, 'font', fullLayout.font);

Expand Down
3 changes: 2 additions & 1 deletion src/plots/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ plots.supplyDefaults = function(gd) {
plot: _(gd, 'Click to enter Plot title'),
x: _(gd, 'Click to enter X axis title'),
y: _(gd, 'Click to enter Y axis title'),
colorbar: _(gd, 'Click to enter Colorscale title')
colorbar: _(gd, 'Click to enter Colorscale title'),
annotation: _(gd, 'new text')
};
newFullLayout._traceWord = _(gd, 'trace');

Expand Down

0 comments on commit d2122d9

Please sign in to comment.