kcuilla / reactablefmtr

Streamlined Table Styling and Formatting for Reactable
https://kcuilla.github.io/reactablefmtr/
Other
208 stars 27 forks source link

Gauge Chart fill #44

Open Keza91 opened 2 years ago

Keza91 commented 2 years ago

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