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:
Stef Louwers 2018-11-27 15:14:41 +01:00 committed by Simon Brunel
parent 0351a88a63
commit 08447e9e19

View File

@ -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);
}
}
}
});