Skip to content

Commit f7efc22

Browse files
committed
show plotly.js version when hover on modebar
1 parent c855015 commit f7efc22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/modebar/modebar.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ var isNumeric = require('fast-isnumeric');
55

66
var Lib = require('../../lib');
77
var Icons = require('../../fonts/ploticon');
8+
var version = require('../../version').version;
9+
810
var Parser = new DOMParser();
911

1012
/**
@@ -292,7 +294,7 @@ proto.getLogo = function() {
292294

293295
a.href = 'https://plotly.com/';
294296
a.target = '_blank';
295-
a.setAttribute('data-title', Lib._(this.graphInfo, 'Produced with Plotly'));
297+
a.setAttribute('data-title', Lib._(this.graphInfo, 'Produced with Plotly') + '.js ' + version);
296298
a.className = 'modebar-btn plotlyjsicon modebar-btn--logo';
297299

298300
a.appendChild(this.createIcon(Icons.newplotlylogo));

0 commit comments

Comments
 (0)