fixed issue with proximity and power daily graphs code