mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-10 14:10:59 +08:00
Keep funbox annotation line transparent (#2784)
This commit is contained in:
parent
020ac5cb24
commit
f06cab2c38
1 changed files with 3 additions and 1 deletions
|
|
@ -770,7 +770,9 @@ export async function updateColors<
|
|||
(chart.options as PluginChartOptions<TType>).plugins.annotation
|
||||
.annotations as AnnotationOptions<"line">[]
|
||||
).forEach((annotation) => {
|
||||
annotation.borderColor = subcolor;
|
||||
if (annotation.id !== "funbox-label") {
|
||||
annotation.borderColor = subcolor;
|
||||
}
|
||||
(annotation.label as LabelOptions).backgroundColor = subcolor;
|
||||
(annotation.label as LabelOptions).color = bgcolor;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue