-
Notifications
You must be signed in to change notification settings - Fork 378
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
Tooltip doesn't follow guidline on scroll #638
Comments
Sorry for the very late response. I hope you've been using
To fix this I have two solutions:
|
@oxy-code
And it did work, but .position must be adjusted, could you please provide some ideas? |
try
or Kindly replicate your issue in the jsfiddle or some other, So that i can look through it. Thanks. |
I found a bug regarding tooltip scrolling in the current version 1.8.6-dev, may apply to this. |
I have found the same issue. Even when there is a single graph on the page, if there is scrolling involved the tool tip position will be off by the amount scrolled. I tried changing the chartContainer, but it seems that this function is deprecated. In addition, I tried adding the window.scrollY and it also didn't work. I also tried the change to the interactive layer css, but the interactive layer tag, no longer seems to be included in the css file. I believe there is a bug somewhere in the code that doesn't recalculate the data points based on the scroll. |
Any progress on this? Really frustrated with nv.d3 so far. Seems super awesome, but it also seems out dated and full of unaddressed bugs. |
@Exavior If the issue is the one I ran into, just use the version from this pull request here which has the fix: They apparently still haven't pulled it into the main branch, but this variant works for me. I wonder if the guy who owns this project died or something. |
I am using:
"angular-nvd3": "1.0.9"
"d3": "3.5.17",
"nvd3": "1.8.1",
"angular": "1.5.8",
and Fuse admin template.
Problem appears when there are many charts in one page. If you scroll down page, then tooltips doesn't follow guideline. See picture below.
If I would scroll further down, then tooltip isn't visible at all.
Inspecting in Chrome Developer tools, checking this on third, forth, fifth (and so on) chart- The tooltip shows only on last (2nd) chart where tooltip was working.
<div class="nvtooltip xy-tooltip nv-pointer-events-none" id="nvtooltip-45529" style="top: 0px; left: 0px; opacity: 0; transform: translate(279px, 826px) !important;">
The text was updated successfully, but these errors were encountered: