-
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
Tick for subchart #2626
Comments
Using .c3-axis-x:last-child .tick {
visibility: collapse;
display: none !important;
} BTW: I think the subchart should have different classes or at least a parent container class to differentiate the selectors. |
I withdraw what I have said, the space remains also when you use I second the request to be able to hide subchart axis ticks. Here's an attached jsfiddle: https://jsfiddle.net/g06n2fsw/13/ IMHO, this feature is very useful because often the labels are very long and you just want to see them in the main chart. At the very least, could it be possible to add some argument to the callbacks (e.g. the axis.tick.x.format), in order to distinguish if the call has been done while drawing the main chart or the sub-chart ? Thanks a lot for your efforts on this library |
Added a PR restoring (and documenting) the parameter Note that when /* make the x-axis line visible again */
.c3-axis-x:last-child {
visibility: visible !important;
}
/* hide the ticks labels*/
.c3-axis-x:last-child .tick {
visibility: hidden !important;
display: none !important;
} |
c3 0.7.1
d3 5.0.0
Tick opt has rotate = 35 and height = 170
Also i have subchart - but i want to hide tick for subchart.
I found next solve:
But then I have empty space at the bottom
The text was updated successfully, but these errors were encountered: