added daily_chart method and unittest