GraphNG: uPlot 1.6.16 (#39260)

This commit is contained in:
Leon Sorokin
2021-09-17 12:33:39 -05:00
committed by GitHub
parent 35e5bfce40
commit 474461ba15
3 changed files with 9 additions and 5 deletions

View File

@@ -234,6 +234,8 @@ export function getConfig(opts: BarsOptions, theme: GrafanaTheme2) {
}
}
u.ctx.save();
u.ctx.fillStyle = theme.colors.text.primary;
u.ctx.font = `${fontSize}px ${theme.typography.fontFamily}`;
@@ -265,6 +267,8 @@ export function getConfig(opts: BarsOptions, theme: GrafanaTheme2) {
);
}
});
u.ctx.restore();
};
// handle hover interaction with quadtree probing