Function query for Temp Values range change color in Svg id

how tointegrate the object path id of svg with temperature range values using colors