Skip to content

Commit

Permalink
Mofified the font of the legend labels to match the Karla themed chart.
Browse files Browse the repository at this point in the history
  • Loading branch information
aymennasri committed Nov 24, 2024
1 parent 42ecd30 commit b68c70a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/xg_chart.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ xg_chart <- function(match_id, home_team_color, away_team_color,
fontWeight = "normal"),
y = -5)
) %>%
hc_legend(enabled = TRUE, style = list(fontFamily = "Karla")) %>%
hc_legend(enabled = TRUE,
itemStyle = list(fontFamily = "Karla", fontWeight = "normal", fontSize = "16px"),
style = list(fontFamily = "Karla")) %>%
hc_credits(
enabled = TRUE,
text = "Data: Understat",
Expand Down

0 comments on commit b68c70a

Please sign in to comment.