Skip to content

Commit

Permalink
Draw radial scale angle lines before tick labels (#5855)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fhp authored and simonbrunel committed Nov 27, 2018
1 parent 0351a88 commit 08447e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scales/scale.radialLinear.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -534,10 +538,6 @@ module.exports = function(Chart) {
}
}
});

if (opts.angleLines.display || opts.pointLabels.display) {
drawPointLabels(me);
}
}
}
});
Expand Down

0 comments on commit 08447e9

Please sign in to comment.