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
Setting color of grid lines changes color of the other axis #8809
Comments
@JasperHorn I believe you are seeing the axis border. |
@etimberg Ah yes, that does look like a good solution for my use-case. I would still say that the border color depending on the color of the last grid line (which could actually change when the a dataset is added and the scale changes) is a bug. |
The border color only defaults to the grid line color when Perhaps we should default border color differently. @kurkle thoughts? |
(as it turns out, removing the border was not a solution for me because the horizontal lines go on top of the vertical ones, like shown in this example: https://codepen.io/GreatMagicalHat/pen/zYNweEy, but luckily for me, I could just use the border styling options because my borders and axes are the same) The border color doesn't actually default to the grid line color. It defaults to whatever color was used for the last grid line, which isn't quite the same if the grid line color is a scripted property (see examples 2 & 3 in original codepen). |
It might be unexpected that when scriptable, its resolved as I think we could fix couple of things as bugs:
|
I think both of those make sense |
Expected Behavior
Changing the color of the x-axis grid lines should not change the color of the y-axis and vice versa.
Current Behavior
The 0-line of the x-axis gets the color of the last line of the y-axis and vice versa. For the x-axis, this even means its own color is overwritten.
Steps to Reproduce
https://codepen.io/GreatMagicalHat/pen/wvgdNaz
Context
I was trying to color the axes separately from the grid. I found an old option on SO, found a minimal reference to how it had been removed in 3.x in the migration guide, and when I tried it, found that it is broken to the point where it doesn't even work for that basic use case.
Environment
The text was updated successfully, but these errors were encountered: