mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-02-01 17:47:09 +00:00
Draw radial scale angle lines before tick labels (#5855)
Moved drawing of radial lines before drawing the tick labels, such that the radial lines are not drawn on top of the tick labels and their backdrop.
This commit is contained in:
parent
0351a88a63
commit
08447e9e19
@ -497,6 +497,10 @@ module.exports = function(Chart) {
|
||||
var tickFontFamily = valueOrDefault(tickOpts.fontFamily, globalDefaults.defaultFontFamily);
|
||||
var tickLabelFont = helpers.fontString(tickFontSize, tickFontStyle, tickFontFamily);
|
||||
|
||||
if (opts.angleLines.display || opts.pointLabels.display) {
|
||||
drawPointLabels(me);
|
||||
}
|
||||
|
||||
helpers.each(me.ticks, function(label, index) {
|
||||
// Don't draw a centre value (if it is minimum)
|
||||
if (index > 0 || tickOpts.reverse) {
|
||||
@ -534,10 +538,6 @@ module.exports = function(Chart) {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (opts.angleLines.display || opts.pointLabels.display) {
|
||||
drawPointLabels(me);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user