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

gridlines z(-order/index) callback function for (major/minor) layout #7093

Open
Giseldah opened this issue Feb 12, 2020 · 1 comment
Open

Comments

@Giseldah
Copy link

Feature Proposal

With v3.0, we have now a number of styling options for major/minor gridlines by callback function like:
gridLines: { color: function(context) { return context.tick.major ? (context.tick.value ? 'grey' : 'black') : 'lightgrey'; },
However, these individual styling options can create a problem with z-index in the sense for instance that major gridlines should be drawn on top of minor gridlines.

It would be nice if 'z' worked on individual gridlines and had a callback function option:
z: function(context) { return context.tick.major ? (context.tick.value ? -200 : -100) : -300; },

Feature Use Case

Here is a visual example of a z-index problem with major/minor gridline raster: https://i.imgur.com/onn6lSe.png

Possible Implementation

@mgalindo
Copy link

  • 1 for this feature request

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

No branches or pull requests

2 participants