-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Square alignement issue in tooltip with custom font family #3838
Comments
Interesting. I wonder how much we can do on this given that no browsers fully implement the |
http://jsfiddle.net/b2jt3a84/8/ The render on chrome and firefox is different An other little thing, there is a thin line in the square probably between the backgroundColor and the borderColor, the render depend of borderWidth |
That's really weird. It looks like the stroke isn't lining up exactly with the fill. Not sure why, but we can look into this while we look at the alignment issue |
Check the render with a high borderWidth: The height and width option can be valid for legend to. Any idea? |
Yup, we need to handle this appropriately. I don't think there is currently any special code to handle large border widths. I know we recently had changes to handle this for regular bars, we can extend the same code to the legend and tooltip. I agree that all the boxes should be the same size at the end (your suggestions 2 & 3). I also agree that we should have some configurable padding for the space between the box and the text. |
Sorry, I probably wasn't clear enough about the 1), it was not relative to space between box and text (for that, you can override tootltip callback and add some spaces, not perfect but works), but between parts of the pie chart itself. |
Oh, ok. You want to some blank space between the actual pie chart segments. I think it would be possible to add a setting for this, I'm not sure how hard the changes would be to make. Would probably need to change https://github.com/chartjs/Chart.js/blob/master/src/controllers/controller.doughnut.js#L277-L283 and https://github.com/chartjs/Chart.js/blob/master/src/controllers/controller.doughnut.js#L240-L248 |
Hello sir, I have some problem with pie chart for display with the different description for each pie chart when we hover. How can I do that sir? I need your help with coding. |
We might be able to make progress on this. More recent versions of Chrome & Firefox support |
There is no problem with the native default font but if you have a custom default font (in my case, "Noto sans"), square and label are not aligned in tooltip
The text was updated successfully, but these errors were encountered: