send chart data if new is available(hope it works)
remove unused code