Color scales conditional formatting in R Shiny datatable

It's pretty simple, but I haven't found a simple solution for this yet. I'm trying to have the "Value" column in this R Shiny Datatable to be conditionally formatted with 0 being white and the highest value being dark green:

The following is the current output section for this datatable:

output$bet_values <- DT::renderDataTable({
    datatable(value_data(),
              options = list(lengthMenu = c(25, 50, 100), pageLength = 25)) %>% 
        formatPercentage("Value", 1)
})

Any help is appreciated - let me know if anything else would be helpful to know!

You could try reactable.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.