fixed code in daily graph