-
Notifications
You must be signed in to change notification settings - Fork 6
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
MeterChart value gets cut off when using description label #98
Comments
@AHijner thank you very much for your issue! I think it s is a bug. Let me take time to have a look. |
@AHijner I have tried to reproduce the issue but I cannot. Can you share here the code you are using (chart implementation and its config)? |
After further investigation, I think the issue is related to auto font size calculation with is checking the width of the label to draw but not the height. I'll do additional tests. it could be helpful to have the size (width and height of the chart) in order to reproduce the issue |
My apologies for the late reply! I was busy with some unrelated things and this fully slipped my mind We don't set any specific height/widht, they are responsive and making them bigger/smaller doesn't seem to have much of an effect. My usual config results in a width/height of 144px. The relevant code:
In case it is relevant, the widget containers each have a css styling, they are contained by another flex container:
I hope this will be enough so you can reproduce the issue, if not, let me know and I can provide more of our gwt-code etc. for context! |
@AHijner thank you very much!! Really appreciated! I'll come back as soon as I'll have time to fix it (I know where it is). I'm very busy as well. |
Great! No rush of course :) |
Hi!
We've been using the metercharts, and have noticed that when displaying the description label, and the maximum-value is <1000, the value can get cut off a bit at the top:
If the maximum value >=1000 there seems to be no problem,
If we do not use a description label, there seems to be no problem:
We do have a good workaround, setting the value-format-callback:
meterChart.getValueLabel().setFormatCallback(context -> " " + context.getValue() + " ");
We were just wondering if this is a small bug? Or if there is a way for us to adjust this ourselves by adding some padding or something (I've not been able to find a setting for this)?
As we do currently have a decent workaround there is no need for a quick response, of course!
The text was updated successfully, but these errors were encountered: