make charts update when new data arrives