Closed ghost closed 6 years ago
There's conditional formatting built into Google Sheets if you weren't aware. Pretty cool the way you did it though. I haven't shared my actual template, but the work so far was just meant to populate a sheet to use in another sheet. I'll definitely keep it in mind though.
I have mine set up for conditional formatting as well. Don't think it would be a good idea to try to make the sheet from the script as saitei said.
Thank you for the feedback I will also switch to the conditional formatting in GS.
I think it would be a good option when I get around to auto generating the presentation layer. It could be a toggle. I'd want to interface directly with the conditional formatting though instead of manually setting backgrounds.
Looks like you can do it via Sheets.newConditionValue()
and Sheets.newCellFormat()
https://developers.google.com/sheets/api/guides/conditional-format
I thought it would be nice if the changes in percentage(%) would be auto colored(if it went down red, green if it went up and white if it stayed the same.) So I made a function for it myself. I call this method in the getData method.
Feel free to use it or dismiss this issue.