From: Stef Louwers Date: Tue, 27 Nov 2018 14:14:41 +0000 (+0100) Subject: Draw radial scale angle lines before tick labels (#5855) X-Git-Tag: v2.8.0-rc.1~106 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08447e9e19a7535b24b4c8888aaf24d013204ea1;p=thirdparty%2FChart.js.git 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. --- diff --git a/src/scales/scale.radialLinear.js b/src/scales/scale.radialLinear.js index 90ac22f0d..ffd76dd43 100644 --- a/src/scales/scale.radialLinear.js +++ b/src/scales/scale.radialLinear.js @@ -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); - } } } });