Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7d8969

Browse files
committed
a couple more "don't require Plotly"
1 parent 3042ccb commit b7d8969

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/plots/cartesian/graph_interact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ function hover(gd, evt, subplot) {
447447
else yvalArray = p2c(yaArray, ypx);
448448

449449
if(!isNumeric(xvalArray[0]) || !isNumeric(yvalArray[0])) {
450-
Lib.warn('Plotly.Fx.hover failed', evt, gd);
450+
Lib.warn('Fx.hover failed', evt, gd);
451451
return dragElement.unhoverRaw(gd, evt);
452452
}
453453
}

src/plots/layout_attributes.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88

99
'use strict';
1010

11-
var Plotly = require('../plotly');
12-
1311
var fontAttrs = require('./font_attributes');
1412
var colorAttrs = require('../components/color/attributes');
1513

16-
var extendFlat = Plotly.Lib.extendFlat;
14+
var Lib = require('../lib');
15+
var extendFlat = Lib.extendFlat;
1716

1817

1918
module.exports = {

src/traces/bar/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = function style(gd) {
7070
});
7171
// TODO: text markers on bars, either extra text or just bar values
7272
// d3.select(this).selectAll('text')
73-
// .call(Plotly.Drawing.textPointStyle,d.t||d[0].t);
73+
// .call(Drawing.textPointStyle,d.t||d[0].t);
7474
});
7575

7676
s.call(ErrorBars.style);

0 commit comments

Comments
 (0)