We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26f9099 commit 709b058Copy full SHA for 709b058
test/jasmine/tests/hover_label_test.js
@@ -199,6 +199,26 @@ describe('hover info', function() {
199
});
200
201
202
+ describe('hover info y on log axis', function() {
203
+ var mockCopy = Lib.extendDeep({}, mock);
204
+
205
+ mockCopy.data[0].hoverinfo = 'y';
206
207
+ beforeEach(function(done) {
208
+ for(var i = 0; i < mockCopy.data[0].y.length; i++) {
209
+ mockCopy.data[0].y[i] *= 1e9;
210
+ }
211
212
+ Plotly.plot(createGraphDiv(), mockCopy.data, mockCopy.layout).then(done);
213
+ });
214
215
+ it('responds to hover y+text', function() {
216
+ Fx.hover('graph', evt, 'xy');
217
218
+ expect(d3.selectAll('g.hovertext').selectAll('text.nums').node().innerHTML).toEqual('1e+9');
219
220
221
222
describe('hover info y+text', function() {
223
var mockCopy = Lib.extendDeep({}, mock);
224
0 commit comments