Got MongoDB data into visualization successfully. Also created a global function to convert numerical data to color