Is there a gem in Ruby which can write to an Excel file, with dynamic background coloring based on condition (need to set the color using HEX code)?
I need to write different colors to different cells dynamically based on condition (ex: status filed of a record)
Any help is greatly appreciated.
You can set the cell backgrounds dynamically using the Conditional Formating feature of the write_xlsx gem.
Here is an example from the gemfile:
The output file will look like this: