Skip to content

[FEATURE]: Draw scales on top (in front) of chart #3957

Closed
@jakezatecky

Description

@jakezatecky

Expected Behavior

Be able to arrange grid lines in front of charts, instead of behind them.

Grid in front

Current Behavior

Scales/grid lines are always drawn before a dataset, and are thus always behind it.

Grid in back

Possible Solution

Add an option either on a scale level or a more global level to be a to render the scale(s) after datasets. Something like scalesInFront on a global basis.

Context

For some visualizations, particularly stacked area charts, it would be particularly useful to be able to see the grid lines more clearly. Obviously, you can make a background have some alpha transparency, but that limits us to what the background of these visualizations can be.

Other charting libraries already provide this option (e.g. Highcharts).

...

Forgive me if this is a duplicate, but I did not find any other issue describing this. I am willing to take a stab at this if I could be pointed in the right direction, but I do not know how many assumptions are based on grid lines always being drawn behind charts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions