Skip to content

Conversation

@rossellhayes
Copy link

This PR adds a font_size argument to gt_plt_sparkline() to allow setting a custom font size for numeric labels. Closes #154.

mtcars %>%
    dplyr::group_by(cyl) %>%
    dplyr::summarize(mpg_data = list(mpg), .groups = "drop") %>%
    gt() %>%
    gt_plt_sparkline(mpg_data, font_size = 2)
Screenshot 2025-09-25 at 17 23 05
mtcars %>%
    dplyr::group_by(cyl) %>%
    dplyr::summarize(mpg_data = list(mpg), .groups = "drop") %>%
    gt() %>%
    gt_plt_sparkline(mpg_data, font_size = 5)
Screenshot 2025-09-25 at 17 23 58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow customizing font size in gt_plt_sparkline()

1 participant