Hello,
I'm trying to color rows based on values, in the table these columns are set to "number" but they do load as strings, and it seems that in the coloring condition they read as strings because it doesn't work in any logical way... any ideas about what can I change? Thank you:
That part actually works, the coloring so hex or not that's good...but the condition isn't being met
Sometimes when one value is larger than other it gets the colors and other times when it's lower it gets the color so I assume this is because they read as strings and not numbers? Just a guess
New, did try the source because I wasn't sure what the difference is and it didn't work but I might have changed something else so will give it a go and report back...at a computer in ten
Don't think this is it sadly, see attached screen shot and how the number "Completed assessments" is sometimes higher but also sometimes lower, than "Users" and it gets a color..
Thanks for sharing your issue with the table colors. I understand your concern that certain rows aren't being highlighted correctly based on the "users" and "completed_assignments" values.
While I tried replicating the issue with a similar dataset in a test app, it's entirely possible that the difference lies in our data structures. Here's a screenshot of my test app for your reference:
Let's check the data types of your columns to ensure they're numbers as expected. To do this, can you add the following code snippet to a JS query in your app? Make sure to use the name of your table in place of dataTable, if its different. This will log the data types to the console:
let aType = typeof(dataTable.data[0].completed_assessments);