From 9a42c5815d57b5123de3683dcd60850b1478ca9e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 14 Oct 2021 12:50:52 +0200 Subject: [PATCH] web/admin: add fallback font for doughnut charts Signed-off-by: Jens Langhammer --- web/src/elements/charts/Chart.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/elements/charts/Chart.ts b/web/src/elements/charts/Chart.ts index 980d673d5..b3e4852bc 100644 --- a/web/src/elements/charts/Chart.ts +++ b/web/src/elements/charts/Chart.ts @@ -99,7 +99,7 @@ export abstract class AKChart extends LitElement { const height = chart.height || 0; const fontSize = (height / 114).toFixed(2); - chart.ctx.font = `${fontSize}em Overpass`; + chart.ctx.font = `${fontSize}em Overpass, Arial, sans-serif`; chart.ctx.textBaseline = "middle"; chart.ctx.fillStyle = this.fontColour;