From: etimberg Date: Thu, 19 Nov 2015 02:24:49 +0000 (-0500) Subject: fix pie & doughnut legend X-Git-Tag: 2.0.0-beta1~18^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=673e5d59a515c0dcfb5ce0ab550e04394d8a85c8;p=thirdparty%2FChart.js.git fix pie & doughnut legend --- diff --git a/src/charts/Chart.Doughnut.js b/src/charts/Chart.Doughnut.js index 05a9764bd..74c917323 100644 --- a/src/charts/Chart.Doughnut.js +++ b/src/charts/Chart.Doughnut.js @@ -7,7 +7,23 @@ var defaultConfig = { aspectRatio: 1, - legendTemplate: "", + legendCallback: function(chart) { + var text = []; + text.push(''); + return text.join(""); + } }; Chart.Doughnut = function(context, config) {