-
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
Custom grid lines should be optionally positioned above the chart #462
Comments
Is this possible, to promote optional grid lines above a chart? I also need this with an area chart. |
I tried this as a quick proof of concept, works with jQuery:
|
Hi, I think @alwerner is right, but it seems reasonable to add an option to control the z-stack of the grids. So, I introduced |
The grid.lines.front option is working as described. Thank you! |
Updated fiddle, seems to work. Thanks! |
So I'll close this issue. Thanks! |
I'd like to change this property after I was trying to set I also tried to implement a d3 version of the JQuery option proposed by @alwerner, would anyone have any idea how I could acheive this ? Any help appreciated, thanks in advance : ) |
Even though grid lines are technically grids, they are mostly used as comparisons, in most cases also with labels on them. However, they are drawn together with the actual grids, which are positioned at the bottom of the z-stack. Therefore, labels and actual lines more often than not cannot be read. See fiddle for an example. In that fiddle, moving
.c3-ygrid-lines
manually to be a direct following sibling of.c3-axis-y2
places that guide at the visually correct position.Putting those guides above the chart should be possible with a direct graph configuration.
The text was updated successfully, but these errors were encountered: