From a0b54e4ded8bf99b30f0e0de48a6b92a4a42f12f Mon Sep 17 00:00:00 2001 From: stockiNail Date: Wed, 14 Aug 2019 13:28:08 +0200 Subject: [PATCH 1/2] Added PLUGIN ID because missing Added PLUGIN ID 'annotation" in order to register into Chart.js as required like best practise. In this way you could disable in some chart instances, if you want --- src/annotation.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/annotation.js b/src/annotation.js index 763962f0d..cb30fbbcf 100644 --- a/src/annotation.js +++ b/src/annotation.js @@ -39,6 +39,8 @@ module.exports = function(Chart) { } return { + id: 'annotation', + beforeInit: function(chartInstance) { var chartOptions = chartInstance.options; From 0cdcc342eddcefa3d1781c7d5c4f3d83c8e221b4 Mon Sep 17 00:00:00 2001 From: stockiNail Date: Wed, 14 Aug 2019 13:42:54 +0200 Subject: [PATCH 2/2] remove empty row remove empty row --- src/annotation.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/annotation.js b/src/annotation.js index cb30fbbcf..9605227ed 100644 --- a/src/annotation.js +++ b/src/annotation.js @@ -40,7 +40,6 @@ module.exports = function(Chart) { return { id: 'annotation', - beforeInit: function(chartInstance) { var chartOptions = chartInstance.options;