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

Formatting y tick #974

Open
skinnybrit51 opened this issue Feb 3, 2015 · 7 comments
Open

Formatting y tick #974

skinnybrit51 opened this issue Feb 3, 2015 · 7 comments
Labels
C-bug Category: This is a bug resolved maybe

Comments

@skinnybrit51
Copy link

When formatting the y tick the sizing of the chart is not correct. At the moment the tick label is cut off. Notice how the dollar sign is cut off.
axisyformat

@ttamminen
Copy link

This might be related with #982

We have exactly same issue. Manually setting the padding doesn't work because the font size changes between breakpoints.

@masayuki0812
Copy link
Member

Sorry for this issue, it's a bug. I think this was fixed by this commit 4140ceb and it's been released as v0.4.10-rc3. Can you try this version?
Btw, 0.4.10 is almost ready to release, so I'll let you know when it's released.

@masayuki0812 masayuki0812 added C-bug Category: This is a bug resolved maybe labels Mar 8, 2015
@skinnybrit51
Copy link
Author

This is still an issue for me. Would overriding the fonts in css cause an issue?

image

@masayuki0812
Copy link
Member

I don't think so. I tried larger font size, but it seems working.
Btw, I tested with 0.4.10-rc5, so can you try again with this version? And can you give me a fiddle for your issue?

@skinnybrit51
Copy link
Author

Tested with rc5 and same issue. Here's the fiddle. http://jsfiddle.net/qqqptmdx/2/

I also noticed you are doing your own calculation code for tick text and exploding it out over multiple tspan if you believe it will not fit. I am sure this is not an uncommon problem, so you might want to explore the idea of using independent open source piece of code.

@masayuki0812
Copy link
Member

Thanks for the detail. As I investigated, .c3 svg in c3.css seems the cause. If I removed this selector, it works as expected. I think .c3 svg is not needed because you're specifying #chart svg, or please use only .c3 svg. Anyway, it seems css matter.

@skinnybrit51
Copy link
Author

OK. I can live with making that change in my css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug resolved maybe
Projects
None yet
Development

No branches or pull requests

3 participants