Skip to content
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

[BUG] Line chart tooltip is not fully visible when dataset count is too many #4208

Closed
yusufozturk opened this issue May 2, 2017 · 4 comments

Comments

@yusufozturk
Copy link

yusufozturk commented May 2, 2017

Expected Behavior

When a line chart has many datasets, all dataset elements should be visible on tooltip.

Current Behavior

Some part of tooltip is hidden under Chartjs area, not all datasets elements are visible.

image

Steps to Reproduce

  1. Open following codepen: https://codepen.io/yusufozturk/pen/oWwBaR
  2. See tooltips

Context

Our customers can monitor servers with 690 different performance counters on same chart with using Chartjs. If customer wants to see all servers on one chart, they are not able to see some of the datasets on tooltip.

Environment

  • Chart.js version: 2.5.0
  • Browser name and version: Chrome 58.0.3029.81

Production View

image

@etimberg
Copy link
Member

etimberg commented May 2, 2017

Is this a duplicate of #1731? One solution is to use an HTML tooltip that doesn't draw on the canvas so that it's not affected by this kind of thing

@yusufozturk
Copy link
Author

@etimberg I think it's same issue Evert. I can try this quickly. I think mentioning as HTML tooltip, do you mean following sample for custom tooltip?
https://github.com/chartjs/Chart.js/blob/master/samples/tooltips/custom-line.html

@yusufozturk
Copy link
Author

Hi Evert,
Yes, it's solving the issue here. I updated my codepen if anyone search and find this in future: https://codepen.io/yusufozturk/pen/oWwBaR
Thanks.

@jgverzosa
Copy link

Hi yusufozturk,

Great solution! But how do you prevent the tooltip from disappearing once you initiate a scroll down?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants