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

How can I change multiline for c3js bar chart x axis tick text #2848

Open
tinlinnnsoe opened this issue Aug 11, 2021 · 0 comments
Open

How can I change multiline for c3js bar chart x axis tick text #2848

tinlinnnsoe opened this issue Aug 11, 2021 · 0 comments

Comments

@tinlinnnsoe
Copy link

tinlinnnsoe commented Aug 11, 2021

How can I change the multiline for c3js bar chart x axis tick text in normal horizontal mode?

in normal horizontal mode, multiline is not working and how can I fix?
As I noticed if included > rotate: 90, multiline is not working. but not okay to show without rotate because most of the tick values are long.

data: { x: 'x', columns: columns, type: 'bar', labels: true }, axis: { x: { type: 'category', tick: { rotate: 90, multiline: true } , height: heightForX },
image

multiline is correctly displayed in vertical mode.
axis: { rotated: true, x: { type: 'category', label: { text: labelY, position: 'outer-middle' } , tick: { multiline: true, } } },
image

but cs3j sample, multiline is working with rotate mode
https://c3js.org/samples/axes_x_tick_rotate.html

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant