Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix hover label exponent hiding or gl3d log hover #1949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 15, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add test for log hover
  • Loading branch information
rreusser committed Aug 11, 2017
commit 709b0581c9173b87b73bfc223b92befb39fde14e
20 changes: 20 additions & 0 deletions 20 test/jasmine/tests/hover_label_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,26 @@ describe('hover info', function() {
});
});

describe('hover info y on log axis', function() {
var mockCopy = Lib.extendDeep({}, mock);

mockCopy.data[0].hoverinfo = 'y';

beforeEach(function(done) {
for(var i = 0; i < mockCopy.data[0].y.length; i++) {
mockCopy.data[0].y[i] *= 1e9;
}

Plotly.plot(createGraphDiv(), mockCopy.data, mockCopy.layout).then(done);
});

it('responds to hover y+text', function() {
Fx.hover('graph', evt, 'xy');

expect(d3.selectAll('g.hovertext').selectAll('text.nums').node().innerHTML).toEqual('1e+9');
});
});

describe('hover info y+text', function() {
var mockCopy = Lib.extendDeep({}, mock);

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.