-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Labels cut off in chart #219
Comments
I had the same problem: Simply add
to your chart config.
|
Thanks. That solved my problem. This library is great -- but you should probably add some kind of auto calculation of the padding in future releases. This is exactly the kind of step you should automate away so that users don't have to think about it anymore. |
Hi, I agree. This issue is related to #129 and I'll fix this later. Thanks! |
Hi @AbeHandler , I think the issue for automatic padding has been fixed in the latest version 0.1.38. Please try this version. |
I think there is something fizzy going on with the padding calculation on mobile devices. If you go to http://c3js.org/ and in Google Chrome Developer Tools -> Toggle Device Mode -> iPhone 3GS (other will do) and press F5. Y-axis values are cut off. Any ideas how to fix it? |
Sorry, c3js.org is not working correctly. I'm planing the fixed version |
in demo page this problem still exist |
in demo page http://c3js.org/samples/axes_x_tick_format.html
|
Ah. Yes indeed, still seems to be an issue with longer titles. |
This issue seems still not solved. This is annoying :/ . Anyone knows how it should be done in a proper way ? Computing padding from total length of labels is still the better solution or is there any better methods ? |
Any update here? |
I'm still seeing this issue when setting a custom tick count. The last tick is being cut off. |
@inlinecoder maybe rotating your labels may solve your issue: |
Of course, we can find some kind of a workaround, but that doesn't solve the global issue. Atm, I've managed to overcome overlapping and cropping, at least for now. What I did is just moved nested styles and made them global. I guess, C3 tries to find matching styles and perform some calculations with it; and if some specific style is nested, C3 can't find it, and basically can't perform a proper calculation. |
Any update in this issue ? I am still getting this. |
@mervinva can you attach an exact issue you're having, so it's easier to think how to handle it? |
Same issue like the image commented by lepolt above. |
Same issue for me... Date/Year labels get truncated. Same issue as lepolt above. |
Still having this issue. Any fix? |
It woks for me .c3 .c3-axis-x .tick:last-of-type text {
transform: translate(-8px, 0)!important;
} |
@roremeol, that's not a good solution, even if it works. |
@inlinecoder, for now until they fix it, it's the best that i have |
Another way. However it probably may cause side effects
|
Having the same problem, anything new? |
In the instance of y-axis labels getting cut off, is C3 calculating the width of the outer axis section by the first text length in the data set? To prevent this, it seems like the library should perform the calculation (similar to @gopeter's solution above) for the longest label and base the width on that. |
I have a bar chart with rotated axes. The labels are a little long and are getting cut off. Here is a live demo:
https://dl.dropboxusercontent.com/spa/juxddtvfvlf51yv/Sample/test.html
Here is the code:
The text was updated successfully, but these errors were encountered: