web: fix form for charts not matching the rest

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-06 12:40:20 +02:00
parent 0032f535da
commit f399b32135
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ export abstract class AKChart<T> extends LitElement {
const height = chart.height || 0; const height = chart.height || 0;
const fontSize = (height / 114).toFixed(2); const fontSize = (height / 114).toFixed(2);
chart.ctx.font = fontSize + "em Overpass, overpass, helvetica, arial, sans-serif"; chart.ctx.font = `${fontSize}em Overpass`;
chart.ctx.textBaseline = "middle"; chart.ctx.textBaseline = "middle";
chart.ctx.fillStyle = this.fontColour; chart.ctx.fillStyle = this.fontColour;