review analysis view layout, add title with info

This commit is contained in:
Christoph Kluge
2025-11-14 11:28:48 +01:00
parent e8d2a45afb
commit 591cd9fd66
2 changed files with 13 additions and 5 deletions

View File

@@ -34,7 +34,7 @@
const paddingLeft = 40;
const paddingRight = 10;
const paddingTop = 10;
const paddingBottom = 5;
const paddingBottom = 40;
/* Var Init */
let timeoutId = null;
@@ -124,7 +124,7 @@
if (data.xLabel) {
ctx.font = `${labelFontSize}px ${fontFamily}`
let textWidth = ctx.measureText(data.xLabel).width
ctx.fillText(data.xLabel, Math.floor((width / 2) - (textWidth / 2)), height - 20)
ctx.fillText(data.xLabel, Math.floor((width / 2) - (textWidth / 2)), height - paddingBottom + 30)
}
ctx.textAlign = 'center'