Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gauge Chart fill #44

Open
Keza91 opened this issue Nov 6, 2022 · 0 comments
Open

Gauge Chart fill #44

Keza91 opened this issue Nov 6, 2022 · 0 comments

Comments

@Keza91
Copy link

Keza91 commented Nov 6, 2022

Im having issues with the color fill of reactablefmtr::gauge_chart using the following R code.

HIT.Accels = colDef(name = "HIT Accels",
align = "center",
maxWidth = 55,
aggregate = "mean", format = colFormat(digits = 0),
cell = reactablefmtr::gauge_chart(
data = .,
fill_color = c("#DB7911A5", "#DB934691","white", "#4CBBC7A1", "#00AFBFA1"),
background = "white",
show_min_max = TRUE,
number_fmt = scales::comma,
bold_text = TRUE,
opacity = 0.5
),
footer = function(values) sprintf("%.1f", mean(values))
),

The above causes the fill colors of the gauge to "spill out" toward the upper edges of each cell (picture below).

Any help would be appreciated.

gauge spill

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

No branches or pull requests

1 participant