updates chart