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

Issue tooltips (2.0.0-beta) #2036

Closed
takissp opened this issue Feb 19, 2016 · 5 comments
Closed

Issue tooltips (2.0.0-beta) #2036

takissp opened this issue Feb 19, 2016 · 5 comments

Comments

@takissp
Copy link

takissp commented Feb 19, 2016

Hello,
i have found two issues related with the tooltips:

  1. the alpha on backgroundColor has no effect
  2. the category color (the fill color of the rectangle) is not always correct. it seems that the code use a different color for the category if you mouseover the border of the point or inside the point area.
@etimberg
Copy link
Member

@takissp the first is definitely an issue. In the second I think you are talking about the hover styling when you mouseover a point. You can disable the hover styling by setting the following in your chart config

hover: {
    mode: false
}

@takissp
Copy link
Author

takissp commented Feb 19, 2016

Thanks for the suggestion. But doing that completely remove the hover effect on the points, doesn't solve the issue of the different fill colors. If the hover is enabled the fill color must be always the same.

In attachment the file i use to test the various aspects of chartjs.
graph.zip

@hamalaiv
Copy link
Contributor

I have made a jsfiddle to demonstrate the issues: https://jsfiddle.net/hamalainen/oxfhmby3/

The alpha indeed does not have an effect on the tooltip background. But as you can see the point colors can be changed for the hover effect.

@etimberg
Copy link
Member

@hamalaiv's fiddle show's how to change the hover color. If one is not provided, we default to a version close to the fill color. There is already an open issue to allow globally setting the hover colors.

@etimberg
Copy link
Member

Fixed opacity in #2057

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

No branches or pull requests

3 participants