From 047e78b97d0b4fbdf7bbeb95228c5bb6fd007436 Mon Sep 17 00:00:00 2001 From: roiLeo Date: Mon, 2 Dec 2019 14:55:42 +0100 Subject: [PATCH] Fix Stacked Bar chart label overlapping When using Stacked Bar Chart the labels (100% and 0%) are overlapping. --- src/chartjs-plugin-labels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chartjs-plugin-labels.js b/src/chartjs-plugin-labels.js index 7a646d7..b3d66c8 100644 --- a/src/chartjs-plugin-labels.js +++ b/src/chartjs-plugin-labels.js @@ -212,7 +212,7 @@ break; case 'percentage': default: - label = this.getPercentage(dataset, element, index) + '%'; + label = this.getPercentage(dataset, element, index) ? this.getPercentage(dataset, element, index) + '%' : ''; break; } }