From: etimberg Date: Thu, 19 Nov 2015 02:30:16 +0000 (-0500) Subject: Fix polar area legends X-Git-Tag: 2.0.0-beta1~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1667%2Fhead;p=thirdparty%2FChart.js.git Fix polar area legends --- diff --git a/src/charts/Chart.PolarArea.js b/src/charts/Chart.PolarArea.js index 20171f7f7..2b44bb9aa 100644 --- a/src/charts/Chart.PolarArea.js +++ b/src/charts/Chart.PolarArea.js @@ -7,7 +7,23 @@ var defaultConfig = { aspectRatio: 1, - legendTemplate: "", + legendCallback: function(chart) { + var text = []; + text.push(''); + return text.join(""); + } }; Chart.PolarArea = function(context, config) {