From 05bdf41ba806aa7938d6dc24a46a5c67a3b7a9f6 Mon Sep 17 00:00:00 2001 From: rahul Date: Fri, 15 Nov 2024 15:40:09 +0530 Subject: [PATCH 1/2] update fallback title formatter to be consistent with default title formatter --- src/modules/tooltip/Labels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/tooltip/Labels.js b/src/modules/tooltip/Labels.js index 8d87a1e91..288f9e652 100644 --- a/src/modules/tooltip/Labels.js +++ b/src/modules/tooltip/Labels.js @@ -237,7 +237,7 @@ export default class Labels { if (typeof yLbTitleFormatter !== 'function') { yLbTitleFormatter = function (label) { - return label + return label ? label + ': ' : '' } } From 9987f371c29520bbb9c9f0a93b369c8397ae16c8 Mon Sep 17 00:00:00 2001 From: rahul Date: Fri, 15 Nov 2024 16:02:17 +0530 Subject: [PATCH 2/2] add comment --- src/modules/tooltip/Labels.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/tooltip/Labels.js b/src/modules/tooltip/Labels.js index 288f9e652..303a947b8 100644 --- a/src/modules/tooltip/Labels.js +++ b/src/modules/tooltip/Labels.js @@ -237,6 +237,7 @@ export default class Labels { if (typeof yLbTitleFormatter !== 'function') { yLbTitleFormatter = function (label) { + // refrence used from line: 966 in Options.js return label ? label + ': ' : '' } }