Dynamically change colour from a dataset

We have a dataset where the data is presented on a screen. We would like to change dynamically the colour.The screen consists of multiple tables.So we have for example
Physics which is the tableheader
“and underneath the tablerow shows Room 1:’'Newton” 9:00-11:00.
We want the room Newton to get the colour red as a background.
The same happens for other rooms underneath where each room is assigned a different colour.
How is it possible to do this on Javascript?
Does anyone have a hint?

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