-
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
v2 beta: tooltips are sometimes truncated #1731
Comments
Closed since #1829 was merged |
@justanotheranonymoususer do you have CSS padding applied to your canvas? |
No, just the simplest canvas element. |
Ok, I can reproduce your second case on my machine. Looking into it now. |
I use |
You'll need to pull the fix and rebuild. |
@justanotheranonymoususer I merged #1840 |
Thanks. If you can provide |
Ok, I'll build it shortly |
I pushed updated built files to the v2.0-dev branch |
I chose chart.js 2.X for my doughnuts charts because of the nice tooltips but they are unusable when moderately long because of this cut off. |
Facing the same issue here too! |
As I'm searching on Github and docs for the solution and see screenshots - all of them focus on text being cut off because it is too wide. In my instance it is too short... Related #622 Current attempt: http://www.chartjs.org/docs/#chart-configuration-tooltip-configuration
UPDATE:
|
Can't the tooltip be allowed to grow in height should its width come to within an amount of the canvas? I guess if you have ridiculously long labels and a small canvas you could still have issues but by that point there's probably not much that could be done from the libraries point of view. |
Really hope we find a fix for this |
+1 I think one of the problems is, that the charts are rendered inside an iFrame? Maybe we could work around this by offering callback functions that display tooltips correctly if the pie chart is wrapped in a parent-div with a specific class/id? |
@apocalyarts the iframe is not used for rendering. it is used to detect when the chart container resizes to trigger the appropriate resize on the chart. We plan to remove this in v2.6 and replace it with a faster method. |
I'm having the same issue with my pie charts |
Anything new on the tooltip-front? |
Did anyone get a fix for this? I'm having issues m=with my tool tip truncating too |
After applying #3998 I am not able to reproduce tooltip truncation any more. |
@kaidohallik will I get that change if I download chartjs from github? I have version 2.5 right now and am still getting the truncation issue |
@blubberbo No, #3998 is not merged, you must manually apply this patch.
|
@kaidohallik thank you - so to apply that manually, I just replace the one |
@blubberbo This is tested with current chart.js git master. You can apply #3998 to current master with following sequence:
If you want to use 2.5.0 only with #3998 then you can try following sequence, maybe it works:
|
@kaidohallik Thanks for the instructions, if I dont use gulp though and have my application locally (in Visual Studio) is there a way for me to apply the patch manually? Thanks! |
@blubberbo If you don't have gulp installed then you can install gulp by:
I try to give also more detailed instruction:
If you don't want to install gulp then I think you should wait while #3998 is merged and new version released after that. |
@kaidohallik Ok great, thank you so much! |
Merging this with an older, identical issue, #622 |
help........ tool tip is cut off on rightmost point............. |
The text was updated successfully, but these errors were encountered: