shlogg · Early preview
James Moberg @gamesover

Visualizing Table Data With Color: A ColdFusion UDF Solution

Visualizing table data with color: use jquery-heatcolor library for webpages or ColdFusion UDF for PDFs. Source code shared on Github.

When displaying values in a table, I like to use color to visually indicate whether the number is high or low.  When displaying data on a webpage, it was trivial for us to use the jquery-heatcolor library to dynamically add color on-the-fly. This is an older library and the project's webpage disappeared and only the JS scripts were migrated to Github. I reported the lack of demo/documentation back in 2020 and finally scraped it from Archive.org, cleaned it up and shared it as a GIST.
When generating a PDF, a non-JS approach is required so I converted the JS library to a ColdFusion UDF (back in...