moved color pallete generation to external file and added data tooltip