blog text updated,now refactoring chart js code