[FEATURE]: Draw scales on top (in front) of chart
See original GitHub issueExpected Behavior
Be able to arrange grid lines in front of charts, instead of behind them.
Current Behavior
Scales/grid lines are always drawn before a dataset, and are thus always behind it.
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.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:15
- Comments:6
No hooks. I just modified the library itself, so the first step was to remove it from the package.json file and manually adding the library to my project.
Then, I modified the Chart.bundle.js file (Chart.js version 2.5.0), and included the given line at the end of the
draw
method forLinearRadialScale
.The modified
draw
method looks like this:is it possible to draw only scale numbers on top of the chart? it would be very useful in radar charts