refactoring

This commit is contained in:
frankknoll
2023-06-09 22:19:32 +02:00
parent b99be84c47
commit 39d4e47314
6 changed files with 62 additions and 242 deletions

View File

@@ -26,14 +26,14 @@ class UIUtils {
}
static getYLabelWithPercent(context) {
return UIUtils._getLabelWithPercent(context, context.parsed.y);
return UIUtils.#getLabelWithPercent(context, context.parsed.y);
}
static getXLabelWithPercent(context) {
return UIUtils._getLabelWithPercent(context, context.parsed.x);
return UIUtils.#getLabelWithPercent(context, context.parsed.x);
}
static _getLabelWithPercent(context, value) {
static #getLabelWithPercent(context, value) {
let label = context.dataset.label || '';
if (label) {