gradient of color depending on value retrieve with JS, established